diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-10 20:43:19 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-10 20:43:19 +0000 |
commit | 1274bdad58253fe4137d29db4975291cf46bcb94 (patch) | |
tree | 50d1b0180e45ce0ee287df4ee3a473a6aa2000d2 /chrome/browser/autocomplete/autocomplete_popup_view.h | |
parent | 8711df994152f2dc72dd7f45da8779d73fe1e558 (diff) | |
download | chromium_src-1274bdad58253fe4137d29db4975291cf46bcb94.zip chromium_src-1274bdad58253fe4137d29db4975291cf46bcb94.tar.gz chromium_src-1274bdad58253fe4137d29db4975291cf46bcb94.tar.bz2 |
Allow a different omnibox popup to be enabled via the command line (--enable-omnibox2).
This will allow a views-based omnibox popup conforming to the new spec (stub provided) to be brought up without disturbing ToT UX.
Also adds new images from Nicholas.
Review URL: http://codereview.chromium.org/67035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13538 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_popup_view.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_popup_view.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view.h b/chrome/browser/autocomplete/autocomplete_popup_view.h index 7c3db76..9690ac0 100644 --- a/chrome/browser/autocomplete/autocomplete_popup_view.h +++ b/chrome/browser/autocomplete/autocomplete_popup_view.h @@ -15,6 +15,12 @@ class AutocompleteEditView; class AutocompletePopupModel; class ChromeFont; +#if defined(OS_WIN) +class AutocompleteEditViewWin; +class AutocompleteEditModel; +class Profile; +#endif + class AutocompletePopupView { public: virtual ~AutocompletePopupView() { } @@ -34,6 +40,19 @@ class AutocompletePopupView { // Paint any pending updates. virtual void PaintUpdatesNow() = 0; + + // Returns the popup's model. + virtual AutocompletePopupModel* GetModel() = 0; + +#if defined(OS_WIN) + // Create a popup view implementation. It may make sense for this to become + // platform independent eventually. + static AutocompletePopupView* CreatePopupView( + const ChromeFont& font, + AutocompleteEditViewWin* edit_view, + AutocompleteEditModel* edit_model, + Profile* profile); +#endif }; #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_H_ |