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

Unified Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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/chrome_views_delegate.cc
diff --git a/chrome/browser/ui/views/chrome_views_delegate.cc b/chrome/browser/ui/views/chrome_views_delegate.cc
index 60c16e7fe24f28f5aa15e0fcda9364ef8d40fb9c..62573b1ea5a67ef522e83c38a6109b3338dc2393 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -214,8 +214,14 @@ void ChromeViewsDelegate::OnBeforeWidgetInit(
default:
NOTREACHED();
}
+#if defined(OS_WIN) && defined(USE_AURA)
sky 2013/03/14 20:06:37 Why is this windows specific, don't we want it for
scottmg 2013/03/14 22:51:53 I'm not clear on what's possible on Linux. I don't
+ } else if (params->parent &&
+ (params->type == views::Widget::InitParams::TYPE_CONTROL ||
+ params->type == views::Widget::InitParams::TYPE_WINDOW)) {
+#else
} else if (params->parent &&
params->type != views::Widget::InitParams::TYPE_MENU) {
+#endif
params->native_widget = new views::NativeWidgetAura(delegate);
} else if (params->type != views::Widget::InitParams::TYPE_TOOLTIP) {
// TODO(erg): Once we've threaded context to everywhere that needs it, we
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | ui/aura/root_window_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698