OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "components/app_modal_dialogs/javascript_dialog_manager.h" | |
6 | |
7 #include "components/app_modal_dialogs/javascript_dialog_extensions_client.h" | |
8 #include "components/app_modal_dialogs/javascript_dialog_manager_impl.h" | |
9 #include "components/app_modal_dialogs/javascript_native_dialog_factory.h" | |
10 | |
11 content::JavaScriptDialogManager* GetJavaScriptDialogManagerInstance() { | |
12 return JavaScriptDialogManagerImpl::GetInstance(); | |
13 } | |
14 | |
15 void SetJavaScriptNativeDialogFactory( | |
16 scoped_ptr<JavaScriptNativeDialogFactory> new_factory) { | |
17 JavaScriptDialogManagerImpl::GetInstance()->SetNativeDialogFactory( | |
18 new_factory.Pass()); | |
19 } | |
20 | |
21 void SetJavaScriptDialogExtensionsClient( | |
22 scoped_ptr<JavaScriptDialogExtensionsClient> new_client) { | |
23 JavaScriptDialogManagerImpl::GetInstance()->SetExtensionsClient( | |
24 new_client.Pass()); | |
25 } | |
OLD | NEW |