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

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: cleanup 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..18cd017329a68548a4d7d63d83b5ef8cdfb66d59 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_views.cc
@@ -18,7 +18,8 @@ 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))
@@ -27,6 +28,6 @@ OmniboxView* CreateOmniboxView(AutocompleteEditController* controller,
#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