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..f1e0ccce321e795e43b02534e96aed9c628514f6 100644 |
--- a/components/constrained_window/constrained_window_views.h |
+++ b/components/constrained_window/constrained_window_views.h |
@@ -42,6 +42,11 @@ void UpdateWidgetModalDialogPosition( |
views::Widget* widget, |
web_modal::ModalDialogHost* dialog_host); |
+// Shows the dialog with a new SingleWebContentsDialogManager. The dialog will |
+// notify via WillClose() when it is being destroyed. |
+void ShowModalDialog(gfx::NativeWindow dialog, |
+ content::WebContents* initiator_web_contents); |
+ |
// Calls CreateWebModalDialogViews, shows the dialog, and returns its widget. |
views::Widget* ShowWebModalDialogViews( |
views::WidgetDelegate* dialog, |
@@ -59,6 +64,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_ |