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

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: Created 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/html_dialog_gtk.h » ('j') | chrome/browser/ui/views/html_dialog_view.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..0630b5d7e4310d7aaeb8fae36b232be83058c0db 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,
@@ -186,6 +187,15 @@ void HtmlDialogWindowDelegateBridge::GetDialogSize(gfx::Size* size) const {
}
}
+void HtmlDialogWindowDelegateBridge::GetMinimumDialogSize(
+ gfx::Size* size) const {
+ if (delegate_) {
sail 2012/03/01 18:14:59 no braces for single line statements same above
yoshiki 2012/03/02 06:51:10 Done.
+ delegate_->GetMinimumDialogSize(size);
+ } else {
+ *size = gfx::Size();
+ }
+}
+
std::string HtmlDialogWindowDelegateBridge::GetDialogArgs() const {
return delegate_ ? delegate_->GetDialogArgs() : "";
}
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/html_dialog_gtk.h » ('j') | chrome/browser/ui/views/html_dialog_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698