Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.h

Issue 7584024: views omnibox popup: Setup the parent Widget, instead of the parent NativeView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 DECLARE_WND_CLASS(L"Chrome_OmniboxView"); 62 DECLARE_WND_CLASS(L"Chrome_OmniboxView");
63 63
64 OmniboxViewWin(const gfx::Font& font, 64 OmniboxViewWin(const gfx::Font& font,
65 AutocompleteEditController* controller, 65 AutocompleteEditController* controller,
66 ToolbarModel* toolbar_model, 66 ToolbarModel* toolbar_model,
67 LocationBarView* parent_view, 67 LocationBarView* parent_view,
68 HWND hwnd, 68 HWND hwnd,
69 Profile* profile, 69 Profile* profile,
70 CommandUpdater* command_updater, 70 CommandUpdater* command_updater,
71 bool popup_window_mode, 71 bool popup_window_mode,
72 const views::View* location_bar); 72 views::View* location_bar);
73 ~OmniboxViewWin(); 73 ~OmniboxViewWin();
74 74
75 views::View* parent_view() const; 75 views::View* parent_view() const;
76 76
77 // Returns the width in pixels needed to display the text from one character 77 // Returns the width in pixels needed to display the text from one character
78 // before the caret to the end of the string. See comments in 78 // before the caret to the end of the string. See comments in
79 // LocationBarView::Layout as to why this uses -1. 79 // LocationBarView::Layout as to why this uses -1.
80 int WidthOfTextAfterCursor(); 80 int WidthOfTextAfterCursor();
81 81
82 // Returns the font. 82 // Returns the font.
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 // stricken-out when displaying an insecure scheme. 539 // stricken-out when displaying an insecure scheme.
540 url_parse::Component insecure_scheme_component_; 540 url_parse::Component insecure_scheme_component_;
541 541
542 // Instance of accessibility information and handling. 542 // Instance of accessibility information and handling.
543 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; 543 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_;
544 544
545 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); 545 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin);
546 }; 546 };
547 547
548 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 548 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698