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

Unified Diff: chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm

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: Merge ConstrainedWebDialog functions Created 4 years 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/cocoa/constrained_web_dialog_delegate_mac.mm
diff --git a/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm b/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
index 9ef87e6b73aa7350a02eaa7dd2a93749a4a357a0..3ed23b051a22a2d5bf6d3467a10c785b9d929ead 100644
--- a/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
+++ b/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
@@ -245,6 +245,24 @@ ConstrainedWebDialogDelegate* ShowConstrainedWebDialog(
return constrained_delegate;
}
+ConstrainedWebDialogDelegate* ShowTopLevelConstrainedWebDialog(
+ content::BrowserContext* browser_context,
+ WebDialogDelegate* delegate,
+ content::WebContents* web_contents) {
+ // Mac uses sheets, so we can just use the normal ShowConstrainedWebDialog.
+ return ShowConstrainedWebDialog(browser_context, delegate, web_contents);
+}
+
+// Mac uses sheets so there is no need for this function. Use the normal
+// ShowConstrainedWebDialog.
+ConstrainedWebDialogDelegate* ShowTopLevelConstrainedWebDialogInWindow(
+ content::BrowserContext* browser_context,
+ ui::WebDialogDelegate* delegate,
+ content::WebContents* web_contents,
+ gfx::NativeView dialog_host_window) {
+ return ShowConstrainedWebDialog(browser_context, delegate, web_contents);
+}
+
ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize(
content::BrowserContext* browser_context,
WebDialogDelegate* delegate,
« no previous file with comments | « chrome/browser/printing/print_preview_test.cc ('k') | chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698