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

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

Issue 9569001: WebUI TaskManager: Add method to set minimum window size on HTMLDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 years, 9 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/html_dialog_ui.h
diff --git a/chrome/browser/ui/webui/html_dialog_ui.h b/chrome/browser/ui/webui/html_dialog_ui.h
index 0987f57d68620c4d8b7004050d7adb83b887fab3..2bdc4b28f8b477c15923b91e06e28ca52907054c 100644
--- a/chrome/browser/ui/webui/html_dialog_ui.h
+++ b/chrome/browser/ui/webui/html_dialog_ui.h
@@ -41,6 +41,10 @@ class HtmlDialogUIDelegate {
// Returns the title of the dialog.
virtual string16 GetDialogTitle() const = 0;
+ // Returns the dialog's name identifier. Used to identify this dialog for
+ // state restoration.
+ virtual std::string GetDialogName() const;
+
// Get the HTML file path for the content to load in the dialog.
virtual GURL GetDialogContentURL() const = 0;
@@ -54,6 +58,9 @@ class HtmlDialogUIDelegate {
// Get the size of the dialog.
virtual void GetDialogSize(gfx::Size* size) const = 0;
+ // Get the size of the dialog.
+ virtual void GetMinimumDialogSize(gfx::Size* size) const;
+
// Gets the JSON string input to use when showing the dialog.
virtual std::string GetDialogArgs() const = 0;

Powered by Google App Engine
This is Rietveld 408576698