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

Unified Diff: components/web_modal/web_contents_modal_dialog_manager.h

Issue 1779383002: MacViews: Remove constrained window dependencies for certificate viewer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move out ConstrainedWindowSheet to Cocoa-only, other review comments. Created 4 years, 7 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/web_modal/web_contents_modal_dialog_manager.h
diff --git a/components/web_modal/web_contents_modal_dialog_manager.h b/components/web_modal/web_contents_modal_dialog_manager.h
index 6505301c215f73fa3e250b800f239dd3de988208..9ebfaebf68f51fd129886367383ed5b3eef0bcf9 100644
--- a/components/web_modal/web_contents_modal_dialog_manager.h
+++ b/components/web_modal/web_contents_modal_dialog_manager.h
@@ -37,6 +37,17 @@ class WebContentsModalDialogManager
// WillClose() when it is being destroyed.
void ShowModalDialog(gfx::NativeWindow dialog);
+#if defined(OS_MACOSX)
+ // Like CreateNativeWebModalManager, but creates a manager for a single dialog
+ // parented to an invisible overlay window.
+ static SingleWebContentsDialogManager* CreateNativeWebModalOverlayManager(
+ gfx::NativeWindow dialog,
+ SingleWebContentsDialogManagerDelegate* native_delegate);
+
+ // Like ShowModalDialog, but uses the dialog as an invisible overlay window.
+ void ShowModalDialogWithOverlay(gfx::NativeWindow dialog);
+#endif
+
// Allow clients to supply their own native dialog manager. Suitable for
// bubble clients.
void ShowDialogWithManager(

Powered by Google App Engine
This is Rietveld 408576698