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 UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ | 5 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ |
6 #define UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ | 6 #define UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Close the dialog, passing the specified arguments to the close handler. | 62 // Close the dialog, passing the specified arguments to the close handler. |
63 void CloseDialog(const base::ListValue* args); | 63 void CloseDialog(const base::ListValue* args); |
64 | 64 |
65 // Sets the delegate on the WebContents. | 65 // Sets the delegate on the WebContents. |
66 static void SetDelegate(content::WebContents* web_contents, | 66 static void SetDelegate(content::WebContents* web_contents, |
67 WebDialogDelegate* delegate); | 67 WebDialogDelegate* delegate); |
68 | 68 |
69 private: | 69 private: |
70 // WebUIController | 70 // WebUIController |
71 virtual void RenderViewCreated( | 71 virtual void RenderViewCreated( |
72 content::RenderViewHost* render_view_host) OVERRIDE; | 72 content::RenderViewHost* render_view_host) override; |
73 | 73 |
74 // Gets the delegate for the WebContent set with SetDelegate. | 74 // Gets the delegate for the WebContent set with SetDelegate. |
75 static WebDialogDelegate* GetDelegate(content::WebContents* web_contents); | 75 static WebDialogDelegate* GetDelegate(content::WebContents* web_contents); |
76 | 76 |
77 // JS message handler. | 77 // JS message handler. |
78 void OnDialogClosed(const base::ListValue* args); | 78 void OnDialogClosed(const base::ListValue* args); |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(WebDialogUI); | 80 DISALLOW_COPY_AND_ASSIGN(WebDialogUI); |
81 }; | 81 }; |
82 | 82 |
83 // Displays external URL contents inside a modal web dialog. | 83 // Displays external URL contents inside a modal web dialog. |
84 // | 84 // |
85 // Intended to be the place to collect the settings and lockdowns | 85 // Intended to be the place to collect the settings and lockdowns |
86 // necessary for running external UI components securely (e.g., the | 86 // necessary for running external UI components securely (e.g., the |
87 // cloud print dialog). | 87 // cloud print dialog). |
88 class WEB_DIALOGS_EXPORT ExternalWebDialogUI : public WebDialogUI { | 88 class WEB_DIALOGS_EXPORT ExternalWebDialogUI : public WebDialogUI { |
89 public: | 89 public: |
90 explicit ExternalWebDialogUI(content::WebUI* web_ui); | 90 explicit ExternalWebDialogUI(content::WebUI* web_ui); |
91 virtual ~ExternalWebDialogUI(); | 91 virtual ~ExternalWebDialogUI(); |
92 }; | 92 }; |
93 | 93 |
94 } // namespace ui | 94 } // namespace ui |
95 | 95 |
96 #endif // UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ | 96 #endif // UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ |
OLD | NEW |