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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 10258007: Make so in metro mode popups are background tabs (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view.cc (revision 134390)
+++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
@@ -1309,6 +1309,9 @@
GetWidget()->GetNativeView()).size();
return browser::DispositionForPopupBounds(
bounds, window_size.width(), window_size.height());
+#elif defined(OS_WIN)
+ // If we are in windows metro-mode, we can't allow popup windows.
+ return (base::win::GetMetroModule() == NULL) ? NEW_POPUP : NEW_BACKGROUND_TAB;
#else
return NEW_POPUP;
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698