Commit f96a01e3 authored by tapted@chromium.org's avatar tapted@chromium.org

MacViews: AppListDialogContentsView creation takes NativeView parent (instead of NativeWindow)

views::Widget::InitParams::parent is a NativeView, so these "parent"
types should match. Otherwise it only works on aura where they are both
aura::Windows.

BUG=390755

Review URL: https://codereview.chromium.org/365243003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283381 0039d316-1c4b-4281-b951-d872f2087c98
parent 65a4cdc4
...@@ -87,7 +87,7 @@ AppListDialogContentsView::~AppListDialogContentsView() { ...@@ -87,7 +87,7 @@ AppListDialogContentsView::~AppListDialogContentsView() {
// static // static
views::Widget* AppListDialogContentsView::CreateDialogWidget( views::Widget* AppListDialogContentsView::CreateDialogWidget(
gfx::NativeWindow parent, gfx::NativeView parent,
const gfx::Rect& bounds, const gfx::Rect& bounds,
AppListDialogContentsView* dialog) { AppListDialogContentsView* dialog) {
views::Widget::InitParams params; views::Widget::InitParams params;
......
...@@ -27,7 +27,7 @@ class AppListDialogContentsView : public views::WidgetDelegateView, ...@@ -27,7 +27,7 @@ class AppListDialogContentsView : public views::WidgetDelegateView,
// Create a |dialog| window Widget with the specified |parent|. The dialog // Create a |dialog| window Widget with the specified |parent|. The dialog
// will be resized to fill the body of the app list. // will be resized to fill the body of the app list.
static views::Widget* CreateDialogWidget(gfx::NativeWindow parent, static views::Widget* CreateDialogWidget(gfx::NativeView parent,
const gfx::Rect& bounds, const gfx::Rect& bounds,
AppListDialogContentsView* dialog); AppListDialogContentsView* dialog);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment