| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 // Close the dialog, passing the specified arguments to the close handler. | 139 // Close the dialog, passing the specified arguments to the close handler. |
| 140 void CloseDialog(const base::ListValue* args); | 140 void CloseDialog(const base::ListValue* args); |
| 141 | 141 |
| 142 // Returns the PropertyBag accessor object used to write the delegate pointer | 142 // Returns the PropertyBag accessor object used to write the delegate pointer |
| 143 // into the WebContents (see class-level comment above). | 143 // into the WebContents (see class-level comment above). |
| 144 static base::PropertyAccessor<HtmlDialogUIDelegate*>& GetPropertyAccessor(); | 144 static base::PropertyAccessor<HtmlDialogUIDelegate*>& GetPropertyAccessor(); |
| 145 | 145 |
| 146 private: | 146 private: |
| 147 // WebUIController | 147 // WebUIController |
| 148 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 148 virtual void RenderViewCreated( |
| 149 content::RenderViewHost* render_view_host) OVERRIDE; |
| 149 | 150 |
| 150 // JS message handler. | 151 // JS message handler. |
| 151 void OnDialogClosed(const base::ListValue* args); | 152 void OnDialogClosed(const base::ListValue* args); |
| 152 | 153 |
| 153 DISALLOW_COPY_AND_ASSIGN(HtmlDialogUI); | 154 DISALLOW_COPY_AND_ASSIGN(HtmlDialogUI); |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 // Displays external URL contents inside a modal HTML dialog. | 157 // Displays external URL contents inside a modal HTML dialog. |
| 157 // | 158 // |
| 158 // Intended to be the place to collect the settings and lockdowns | 159 // Intended to be the place to collect the settings and lockdowns |
| 159 // necessary for running external UI components securely (e.g., the | 160 // necessary for running external UI components securely (e.g., the |
| 160 // cloud print dialog). | 161 // cloud print dialog). |
| 161 class ExternalHtmlDialogUI : public HtmlDialogUI { | 162 class ExternalHtmlDialogUI : public HtmlDialogUI { |
| 162 public: | 163 public: |
| 163 explicit ExternalHtmlDialogUI(content::WebUI* web_ui); | 164 explicit ExternalHtmlDialogUI(content::WebUI* web_ui); |
| 164 virtual ~ExternalHtmlDialogUI(); | 165 virtual ~ExternalHtmlDialogUI(); |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 #endif // CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_ | 168 #endif // CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_ |
| OLD | NEW |