views: Use DesktopNativeWidgetAura for menu view.
This commit is contained in:
parent
46e765f79b
commit
a318b1c5d1
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ void ViewsDelegate::OnBeforeWidgetInit(
|
|||
return;
|
||||
|
||||
// The native_widget is required when using aura.
|
||||
if (params->parent == NULL && params->context == NULL && !params->child)
|
||||
if (params->type == views::Widget::InitParams::TYPE_MENU ||
|
||||
(params->parent == NULL && params->context == NULL && !params->child))
|
||||
params->native_widget = new views::DesktopNativeWidgetAura(delegate);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue