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

Unified Diff: chrome/browser/ui/views/constrained_web_dialog_delegate_views.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: reduced diff Created 4 years, 5 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: chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc
diff --git a/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc b/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc
index 0644dbcd853cb5c3181f4e392995a3b65d5b1156..e0269de081ef0b23f9b652f691277ee55542242e 100644
--- a/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc
+++ b/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc
@@ -276,6 +276,22 @@ ConstrainedWebDialogDelegate* ShowConstrainedWebDialog(
return dialog;
}
+ConstrainedWebDialogDelegate* ShowTopLevelConstrainedWebDialog(
+ content::BrowserContext* browser_context,
+ ui::WebDialogDelegate* delegate,
+ content::WebContents* web_contents) {
+ ConstrainedWebDialogDelegateViewViews* dialog =
+ new ConstrainedWebDialogDelegateViewViews(
+ browser_context, delegate, web_contents,
+ gfx::Size(), gfx::Size());
+#if !defined(OS_MACOSX) // May want to make this Chrome OS only rather
rbpotter 2016/07/25 18:53:28 In what cases should the new set of code (allowing
+ // than all non-MAC, TBD.
+ dialog->set_top_level(true);
+#endif
+ constrained_window::ShowWebModalDialogViews(dialog, web_contents);
+ return dialog;
+}
+
ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize(
content::BrowserContext* browser_context,
ui::WebDialogDelegate* delegate,

Powered by Google App Engine
This is Rietveld 408576698