summaryrefslogtreecommitdiffstats
path: root/views/examples
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 16:12:34 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 16:12:34 +0000
commit3aa90ad5278b3e021dd4477bd0199dce6b2272ea (patch)
treeb4f5f778cb60fe18f88e0491e988a2c1ec6d08ad /views/examples
parentb0ea7a8229abf2401cdfd75024ceeed829038883 (diff)
downloadchromium_src-3aa90ad5278b3e021dd4477bd0199dce6b2272ea.zip
chromium_src-3aa90ad5278b3e021dd4477bd0199dce6b2272ea.tar.gz
chromium_src-3aa90ad5278b3e021dd4477bd0199dce6b2272ea.tar.bz2
Change NativeWidgetViews' constructor to not take a parent View. The embedding environment provides this instead via a new ViewsDelegate method: GetDefaultParentView().
This makes the constructors of NativeWidgetViews compatible with the other platforms and allows all of the existing construction patterns to be preserved (there is not a clear way to wire a desktop view through to all of them). BUG=none TEST=none Review URL: http://codereview.chromium.org/7204041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89832 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/examples')
-rw-r--r--views/examples/native_widget_views_example.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/views/examples/native_widget_views_example.cc b/views/examples/native_widget_views_example.cc
index 8aaf68f..067cf01 100644
--- a/views/examples/native_widget_views_example.cc
+++ b/views/examples/native_widget_views_example.cc
@@ -66,8 +66,7 @@ std::wstring NativeWidgetViewsExample::GetExampleTitle() {
void NativeWidgetViewsExample::CreateExampleView(views::View* container) {
views::Widget* widget = new views::Widget;
- views::NativeWidgetViews* nwv =
- new views::NativeWidgetViews(container, widget);
+ views::NativeWidgetViews* nwv = new views::NativeWidgetViews(widget);
views::Widget::InitParams params(views::Widget::InitParams::TYPE_CONTROL);
params.native_widget = nwv;
widget->Init(params);