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

Unified Diff: chrome/browser/ui/views/dropdown_bar_host.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
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host.h ('k') | chrome/browser/ui/views/dropdown_bar_host_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/dropdown_bar_host.cc
===================================================================
--- chrome/browser/ui/views/dropdown_bar_host.cc (revision 83020)
+++ chrome/browser/ui/views/dropdown_bar_host.cc (working copy)
@@ -54,8 +54,11 @@
view_ = view;
// Initialize the host.
- host_.reset(CreateHost());
- host_->InitWithWidget(browser_view_->GetWidget(), gfx::Rect());
+ host_.reset(views::Widget::CreateWidget());
+ views::Widget::CreateParams params(views::Widget::CreateParams::TYPE_CONTROL);
+ params.delete_on_destroy = false;
+ params.parent_widget = browser_view_->GetWidget();
+ host_->Init(params);
host_->SetContentsView(view_);
// Start listening to focus changes, so we can register and unregister our
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host.h ('k') | chrome/browser/ui/views/dropdown_bar_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698