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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_views.cc

Issue 10580039: Adds ability to render omnibox as a view above the page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/omnibox/omnibox_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_views.cc b/chrome/browser/ui/views/omnibox/omnibox_views.cc
index ec65f0f4f25e39775f933de18df902a057178097..6c6364042f0cfffcbd89c4b4f8daf1143d6e7128 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_views.cc
@@ -18,15 +18,17 @@ OmniboxView* CreateOmniboxView(AutocompleteEditController* controller,
Profile* profile,
CommandUpdater* command_updater,
bool popup_window_mode,
- LocationBarView* location_bar) {
+ LocationBarView* location_bar,
+ views::View* popup_parent_view) {
#if defined(OS_WIN) && !defined(USE_AURA)
CommandLine* command_line = CommandLine::ForCurrentProcess();
if (!command_line->HasSwitch(switches::kEnableViewsTextfield))
return new OmniboxViewWin(controller, toolbar_model, location_bar,
- command_updater, popup_window_mode, location_bar);
+ command_updater, popup_window_mode, location_bar,
+ popup_parent_view);
#endif
OmniboxViewViews* omnibox = new OmniboxViewViews(controller, toolbar_model,
profile, command_updater, popup_window_mode, location_bar);
- omnibox->Init();
+ omnibox->Init(popup_parent_view);
return omnibox;
}

Powered by Google App Engine
This is Rietveld 408576698