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

Unified Diff: components/constrained_window/constrained_window_views.cc

Issue 1307533002: [Mac] Enable MacViews bookmark bubble behind --enable-mac-views-dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@modal
Patch Set: Created 5 years, 4 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 | « chrome/chrome_browser_ui.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/constrained_window/constrained_window_views.cc
diff --git a/components/constrained_window/constrained_window_views.cc b/components/constrained_window/constrained_window_views.cc
index d00551385504274b22bd5666e1d1d8496dd99168..8b320dafb277398db50bacae9bd720df42216220 100644
--- a/components/constrained_window/constrained_window_views.cc
+++ b/components/constrained_window/constrained_window_views.cc
@@ -166,6 +166,13 @@ views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog,
: nullptr;
views::Widget* widget =
views::DialogDelegate::CreateDialogWidget(dialog, NULL, parent_view);
+
+#if defined(OS_MACOSX)
+ // On Mac, window modal dialogs are displayed as sheets, so their position is
+ // managed by the parent window.
+ return widget;
tapted 2015/08/21 00:31:52 I know the compiler allows it.. but there's someth
jackhou1 2015/08/21 01:55:58 Replied in https://codereview.chromium.org/1309583
+#endif
+
if (!dialog->UseNewStyleForThisDialog())
return widget;
ModalDialogHost* host = constrained_window_views_client->
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698