| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_TEST_HTML_DIALOG_UI_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_TEST_HTML_DIALOG_UI_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_TEST_HTML_DIALOG_UI_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_TEST_HTML_DIALOG_UI_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 void set_size(int width, int height) { | 22 void set_size(int width, int height) { |
| 23 size_.SetSize(width, height); | 23 size_.SetSize(width, height); |
| 24 } | 24 } |
| 25 | 25 |
| 26 // HTMLDialogUIDelegate implementation: | 26 // HTMLDialogUIDelegate implementation: |
| 27 virtual bool IsDialogModal() const OVERRIDE; | 27 virtual bool IsDialogModal() const OVERRIDE; |
| 28 virtual string16 GetDialogTitle() const OVERRIDE; | 28 virtual string16 GetDialogTitle() const OVERRIDE; |
| 29 virtual GURL GetDialogContentURL() const OVERRIDE; | 29 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 30 virtual void GetWebUIMessageHandlers( | 30 virtual void GetWebUIMessageHandlers( |
| 31 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; | 31 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 32 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 32 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 33 virtual std::string GetDialogArgs() const OVERRIDE; | 33 virtual std::string GetDialogArgs() const OVERRIDE; |
| 34 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 34 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 35 virtual void OnCloseContents(content::WebContents* source, | 35 virtual void OnCloseContents(content::WebContents* source, |
| 36 bool* out_close_dialog) OVERRIDE; | 36 bool* out_close_dialog) OVERRIDE; |
| 37 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 37 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 38 | 38 |
| 39 protected: | 39 protected: |
| 40 const GURL url_; | 40 const GURL url_; |
| 41 gfx::Size size_; | 41 gfx::Size size_; |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(TestHtmlDialogUIDelegate); | 43 DISALLOW_COPY_AND_ASSIGN(TestHtmlDialogUIDelegate); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace test | 46 } // namespace test |
| 47 | 47 |
| 48 #endif // CHROME_BROWSER_UI_WEBUI_TEST_HTML_DIALOG_UI_DELEGATE_H_ | 48 #endif // CHROME_BROWSER_UI_WEBUI_TEST_HTML_DIALOG_UI_DELEGATE_H_ |
| OLD | NEW |