| 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_HTML_DIALOG_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 virtual string16 GetDialogTitle() const = 0; | 39 virtual string16 GetDialogTitle() const = 0; |
| 40 | 40 |
| 41 // Get the HTML file path for the content to load in the dialog. | 41 // Get the HTML file path for the content to load in the dialog. |
| 42 virtual GURL GetDialogContentURL() const = 0; | 42 virtual GURL GetDialogContentURL() const = 0; |
| 43 | 43 |
| 44 // Get WebUIMessageHandler objects to handle messages from the HTML/JS page. | 44 // Get WebUIMessageHandler objects to handle messages from the HTML/JS page. |
| 45 // The handlers are used to send and receive messages from the page while it | 45 // The handlers are used to send and receive messages from the page while it |
| 46 // is still open. Ownership of each handler is taken over by the WebUI | 46 // is still open. Ownership of each handler is taken over by the WebUI |
| 47 // hosting the page. | 47 // hosting the page. |
| 48 virtual void GetWebUIMessageHandlers( | 48 virtual void GetWebUIMessageHandlers( |
| 49 std::vector<WebUIMessageHandler*>* handlers) const = 0; | 49 std::vector<content::WebUIMessageHandler*>* handlers) const = 0; |
| 50 | 50 |
| 51 // Get the size of the dialog. | 51 // Get the size of the dialog. |
| 52 virtual void GetDialogSize(gfx::Size* size) const = 0; | 52 virtual void GetDialogSize(gfx::Size* size) const = 0; |
| 53 | 53 |
| 54 // Gets the JSON string input to use when showing the dialog. | 54 // Gets the JSON string input to use when showing the dialog. |
| 55 virtual std::string GetDialogArgs() const = 0; | 55 virtual std::string GetDialogArgs() const = 0; |
| 56 | 56 |
| 57 // A callback to notify the delegate that the dialog closed. | 57 // A callback to notify the delegate that the dialog closed. |
| 58 // IMPORTANT: Implementations should delete |this| here (unless they've | 58 // IMPORTANT: Implementations should delete |this| here (unless they've |
| 59 // arranged for the delegate to be deleted in some other way, e.g. by | 59 // arranged for the delegate to be deleted in some other way, e.g. by |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // Intended to be the place to collect the settings and lockdowns | 133 // Intended to be the place to collect the settings and lockdowns |
| 134 // necessary for running external UI components securely (e.g., the | 134 // necessary for running external UI components securely (e.g., the |
| 135 // cloud print dialog). | 135 // cloud print dialog). |
| 136 class ExternalHtmlDialogUI : public HtmlDialogUI { | 136 class ExternalHtmlDialogUI : public HtmlDialogUI { |
| 137 public: | 137 public: |
| 138 explicit ExternalHtmlDialogUI(content::WebContents* web_contents); | 138 explicit ExternalHtmlDialogUI(content::WebContents* web_contents); |
| 139 virtual ~ExternalHtmlDialogUI(); | 139 virtual ~ExternalHtmlDialogUI(); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 #endif // CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_ | 142 #endif // CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_ |
| OLD | NEW |