OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/app_modal_dialogs/javascript_dialog_manager.h" | 5 #include "components/app_modal/javascript_dialog_manager.h" |
6 | 6 |
7 #include "components/app_modal_dialogs/javascript_dialog_extensions_client.h" | 7 #include "components/app_modal/javascript_dialog_extensions_client.h" |
8 #include "components/app_modal_dialogs/javascript_dialog_manager_impl.h" | 8 #include "components/app_modal/javascript_dialog_manager_impl.h" |
9 #include "components/app_modal_dialogs/javascript_native_dialog_factory.h" | 9 #include "components/app_modal/javascript_native_dialog_factory.h" |
10 | 10 |
11 content::JavaScriptDialogManager* GetJavaScriptDialogManagerInstance() { | 11 content::JavaScriptDialogManager* GetJavaScriptDialogManagerInstance() { |
12 return JavaScriptDialogManagerImpl::GetInstance(); | 12 return JavaScriptDialogManagerImpl::GetInstance(); |
13 } | 13 } |
14 | 14 |
15 void SetJavaScriptNativeDialogFactory( | 15 void SetJavaScriptNativeDialogFactory( |
16 scoped_ptr<JavaScriptNativeDialogFactory> new_factory) { | 16 scoped_ptr<JavaScriptNativeDialogFactory> new_factory) { |
17 JavaScriptDialogManagerImpl::GetInstance()->SetNativeDialogFactory( | 17 JavaScriptDialogManagerImpl::GetInstance()->SetNativeDialogFactory( |
18 new_factory.Pass()); | 18 new_factory.Pass()); |
19 } | 19 } |
20 | 20 |
21 void SetJavaScriptDialogExtensionsClient( | 21 void SetJavaScriptDialogExtensionsClient( |
22 scoped_ptr<JavaScriptDialogExtensionsClient> new_client) { | 22 scoped_ptr<JavaScriptDialogExtensionsClient> new_client) { |
23 JavaScriptDialogManagerImpl::GetInstance()->SetExtensionsClient( | 23 JavaScriptDialogManagerImpl::GetInstance()->SetExtensionsClient( |
24 new_client.Pass()); | 24 new_client.Pass()); |
25 } | 25 } |
OLD | NEW |