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

Unified Diff: chrome/browser/ui/views/constrained_html_delegate_gtk.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/constrained_html_delegate_gtk.cc
===================================================================
--- chrome/browser/ui/views/constrained_html_delegate_gtk.cc (revision 82649)
+++ chrome/browser/ui/views/constrained_html_delegate_gtk.cc (working copy)
@@ -69,8 +69,7 @@
ConstrainedHtmlDelegateGtk::ConstrainedHtmlDelegateGtk(
Profile* profile,
HtmlDialogUIDelegate* delegate)
- : views::WidgetGtk(views::WidgetGtk::TYPE_CHILD),
- HtmlDialogTabContentsDelegate(profile),
+ : HtmlDialogTabContentsDelegate(profile),
html_tab_contents_(profile, NULL, MSG_ROUTING_NONE, NULL, NULL),
tab_container_(NULL),
html_delegate_(delegate),
@@ -85,7 +84,8 @@
GURL(),
PageTransition::START_PAGE);
- Init(NULL, gfx::Rect());
+ views::Widget::CreateParams params(views::Widget::CreateParams::TYPE_CONTROL);
+ InitNativeWidget(params);
tab_container_ = new TabContentsContainer;
SetContentsView(tab_container_);

Powered by Google App Engine
This is Rietveld 408576698