Chromium Code Reviews| 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() : ""; |
| } |