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

Unified Diff: components/constrained_window/show_modal_dialog_cocoa.cc

Issue 2172363002: Created min size for print preview dialog and modified to allow the Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modify tracking of nonclipped state for new code structure. Created 4 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
Index: components/constrained_window/show_modal_dialog_cocoa.cc
diff --git a/components/constrained_window/show_modal_dialog_cocoa.cc b/components/constrained_window/show_modal_dialog_cocoa.cc
index bcb8a5ca4db36daaea169f542cd23c9bc19c8715..baa3b3190b76d17ba17d28f8c0d7a136848f8844 100644
--- a/components/constrained_window/show_modal_dialog_cocoa.cc
+++ b/components/constrained_window/show_modal_dialog_cocoa.cc
@@ -31,4 +31,11 @@ void ShowModalDialog(gfx::NativeWindow dialog,
manager->ShowDialogWithManager(dialog, std::move(dialog_manager));
}
+void ShowNonClippedModalDialog(gfx::NativeWindow dialog,
+ content::WebContents* initiator_web_contents) {
+ // Mac uses sheets, so just call the normal show modal dialog, and the dialog
+ // will not be clipped.
+ ShowModalDialog(dialog, initiator_web_contents);
+}
+
} // namespace constrained_window

Powered by Google App Engine
This is Rietveld 408576698