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

Unified Diff: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc

Issue 6881107: Rework the way Widget::Init works: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/autocomplete/autocomplete_popup_contents_view.cc
===================================================================
--- chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc (revision 83020)
+++ chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc (working copy)
@@ -332,8 +332,9 @@
views::Widget::CreateParams params(views::Widget::CreateParams::TYPE_POPUP);
params.can_activate = false;
params.transparent = true;
- popup_->SetCreateParams(params);
- popup_->Init(location_bar_->GetWidget()->GetNativeView(), GetPopupBounds());
+ params.parent = location_bar_->GetWidget()->GetNativeView();
+ params.bounds = GetPopupBounds();
+ popup_->GetWidget()->Init(params);
popup_->SetContentsView(this);
popup_->MoveAbove(popup_->GetRelativeWindowForPopup(
edit_view_->GetNativeView()));
« no previous file with comments | « chrome/browser/first_run/try_chrome_dialog_view.cc ('k') | chrome/browser/ui/views/autocomplete/autocomplete_popup_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698