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

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

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
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/html_dialog_gtk.h » ('j') | chrome/browser/ui/webui/html_dialog_ui.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/html_dialog_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/html_dialog_window_controller.mm b/chrome/browser/ui/cocoa/html_dialog_window_controller.mm
index feffdf97c58947c151f11fa6cf0d5f1dd8659710..a0b847b1ecb0ee649bd5de14e5423176dd125b42 100644
--- a/chrome/browser/ui/cocoa/html_dialog_window_controller.mm
+++ b/chrome/browser/ui/cocoa/html_dialog_window_controller.mm
@@ -51,6 +51,7 @@ public:
virtual void GetWebUIMessageHandlers(
std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE;
virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
+ virtual void GetMinimumDialogSize(gfx::Size* size) const OVERRIDE;
virtual std::string GetDialogArgs() const OVERRIDE;
virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
virtual void OnCloseContents(WebContents* source,
@@ -179,11 +180,18 @@ void HtmlDialogWindowDelegateBridge::GetWebUIMessageHandlers(
}
void HtmlDialogWindowDelegateBridge::GetDialogSize(gfx::Size* size) const {
- if (delegate_) {
+ if (delegate_)
delegate_->GetDialogSize(size);
- } else {
+ else
+ *size = gfx::Size();
+}
+
+void HtmlDialogWindowDelegateBridge::GetMinimumDialogSize(
+ gfx::Size* size) const {
+ if (delegate_)
+ delegate_->GetMinimumDialogSize(size);
+ else
*size = gfx::Size();
- }
}
std::string HtmlDialogWindowDelegateBridge::GetDialogArgs() const {
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/html_dialog_gtk.h » ('j') | chrome/browser/ui/webui/html_dialog_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698