Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
oshima
2014/10/31 16:33:10
I can nuke this file and expose JavaScriptDialogMa
msw
2014/11/05 03:53:54
I think that would be good, but I don't have a str
| |
| 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_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_ | 5 #ifndef COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_ |
| 6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_ | 6 #define COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_ |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 7 | 9 |
| 8 namespace content { | 10 namespace content { |
| 9 class JavaScriptDialogManager; | 11 class JavaScriptDialogManager; |
| 10 } | 12 } |
| 11 | 13 |
| 14 class JavaScriptDialogExtensionsClient; | |
| 15 class JavaScriptNativeDialogFactory; | |
| 16 | |
| 12 // Returns a JavaScriptDialogManager that creates real dialogs. | 17 // Returns a JavaScriptDialogManager that creates real dialogs. |
| 13 // It returns a Singleton instance of JavaScriptDialogManager, | 18 // It returns a Singleton instance of JavaScriptDialogManager, |
| 14 // which should not be deleted. | 19 // which should not be deleted. |
| 15 content::JavaScriptDialogManager* GetJavaScriptDialogManagerInstance(); | 20 content::JavaScriptDialogManager* GetJavaScriptDialogManagerInstance(); |
| 16 | 21 |
| 17 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_ | 22 // Sets the JavaScriptNativeDialogFactory used to create platform specific |
| 23 // dialog window implementation. | |
| 24 void SetJavaScriptNativeDialogFactory( | |
| 25 scoped_ptr<JavaScriptNativeDialogFactory> factory); | |
| 26 | |
| 27 // JavaScript dialog may be opened by an extensions/app, thus needs | |
| 28 // access to extensions functionality. This sets a client interfae to | |
|
Avi (use Gerrit)
2014/11/04 20:46:41
typo:interfae
| |
| 29 // access //extensions. | |
| 30 void SetJavaScriptDialogExtensionsClient( | |
| 31 scoped_ptr<JavaScriptDialogExtensionsClient> client); | |
| 32 | |
| 33 #endif // COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_MANAGER_H_ | |
| OLD | NEW |