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

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

Issue 1430023002: Enable AutoResize for Constrained Web Dialogs for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per erikchen@'s comments. Created 5 years, 1 month 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 62c9a8b592c71d36f2fed80087a7f9fbd9dee308..c0e883c7b04bf85c92bb0df245d8cb97c8ac34ee 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_ui.h
+++ b/chrome/browser/ui/webui/constrained_web_dialog_ui.h
@@ -50,6 +50,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