views: Use DesktopNativeWidgetAura for menu view.

This commit is contained in:
Cheng Zhao 2014-07-14 15:56:04 +08:00
parent 46e765f79b
commit a318b1c5d1

View file

@ -89,7 +89,8 @@ void ViewsDelegate::OnBeforeWidgetInit(
return; return;
// The native_widget is required when using aura. // 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); params->native_widget = new views::DesktopNativeWidgetAura(delegate);
} }