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

Unified Diff: chrome/browser/ui/webui/constrained_web_dialog_ui.h

Issue 1446623003: [Reland] Enable AutoResize for Constrained Web Dialogs for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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/webui/constrained_web_dialog_ui.h
diff --git a/chrome/browser/ui/webui/constrained_web_dialog_ui.h b/chrome/browser/ui/webui/constrained_web_dialog_ui.h
index 4f7159e5804a49a2f8b61942e337b8dc5479c1de..39cc74bca412488132b8ee87f954d241ec03ef6b 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_ui.h
+++ b/chrome/browser/ui/webui/constrained_web_dialog_ui.h
@@ -51,6 +51,8 @@ class ConstrainedWebDialogDelegate {
// Returns the maximum size for the dialog.
virtual gfx::Size GetMaximumSize() const = 0;
+ // Returns the preferred size for the dialog, or an empty size if
+ // the dialog has been closed.
virtual gfx::Size GetPreferredSize() const = 0;
protected:

Powered by Google App Engine
This is Rietveld 408576698