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 COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_ | 5 #ifndef COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_H_ |
6 #define COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_ | 6 #define COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 class JavaScriptDialogManager; | 11 class JavaScriptDialogManager; |
12 } | 12 } |
13 | 13 |
14 class JavaScriptDialogExtensionsClient; | 14 class JavaScriptDialogExtensionsClient; |
15 class JavaScriptNativeDialogFactory; | 15 class JavaScriptNativeDialogFactory; |
16 | 16 |
17 // Returns a JavaScriptDialogManager that creates real dialogs. | 17 // Returns a JavaScriptDialogManager that creates real dialogs. |
18 // It returns a Singleton instance of JavaScriptDialogManager, | 18 // It returns a Singleton instance of JavaScriptDialogManager, |
19 // which should not be deleted. | 19 // which should not be deleted. |
20 content::JavaScriptDialogManager* GetJavaScriptDialogManagerInstance(); | 20 content::JavaScriptDialogManager* GetJavaScriptDialogManagerInstance(); |
21 | 21 |
22 // Sets the JavaScriptNativeDialogFactory used to create platform specific | 22 // Sets the JavaScriptNativeDialogFactory used to create platform specific |
23 // dialog window implementation. | 23 // dialog window implementation. |
24 void SetJavaScriptNativeDialogFactory( | 24 void SetJavaScriptNativeDialogFactory( |
25 scoped_ptr<JavaScriptNativeDialogFactory> factory); | 25 scoped_ptr<JavaScriptNativeDialogFactory> factory); |
26 | 26 |
27 // JavaScript dialog may be opened by an extensions/app, thus needs | 27 // JavaScript dialog may be opened by an extensions/app, thus needs |
28 // access to extensions functionality. This sets a client interface to | 28 // access to extensions functionality. This sets a client interface to |
29 // access //extensions. | 29 // access //extensions. |
30 void SetJavaScriptDialogExtensionsClient( | 30 void SetJavaScriptDialogExtensionsClient( |
31 scoped_ptr<JavaScriptDialogExtensionsClient> client); | 31 scoped_ptr<JavaScriptDialogExtensionsClient> client); |
32 | 32 |
33 #endif // COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_ | 33 #endif // COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_H_ |
OLD | NEW |