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

Unified Diff: components/constrained_window/constrained_window_views.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/constrained_window/constrained_window_views.h
diff --git a/components/constrained_window/constrained_window_views.h b/components/constrained_window/constrained_window_views.h
index fd44fe77d3a6ddf46780980b4c230fc35e681af3..1db7da2b7665ff899950fd6c3b588580effdab46 100644
--- a/components/constrained_window/constrained_window_views.h
+++ b/components/constrained_window/constrained_window_views.h
@@ -47,6 +47,15 @@ views::Widget* ShowWebModalDialogViews(
views::WidgetDelegate* dialog,
content::WebContents* initiator_web_contents);
+#if defined(OS_MACOSX)
+// Like ShowWebModalDialogViews, but used to show a native dialog "sheet" on
+// Mac. Sheets are always modal to their parent window. To make them tab-modal,
+// this will parent the sheet off an invisible window that is tab-modal.
+views::Widget* ShowWebModalDialogWithOverlayViews(
+ views::WidgetDelegate* dialog,
+ content::WebContents* initiator_web_contents);
+#endif
+
// Create a widget for |dialog| that is modal to |web_contents|.
// The modal type of |dialog->GetModalType()| must be ui::MODAL_TYPE_CHILD.
views::Widget* CreateWebModalDialogViews(views::WidgetDelegate* dialog,
@@ -59,6 +68,6 @@ views::Widget* CreateWebModalDialogViews(views::WidgetDelegate* dialog,
views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog,
gfx::NativeWindow parent);
-} // namespace constrained window
+} // namespace constrained_window
#endif // COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698