Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(629)

Side by Side Diff: components/app_modal_dialogs/javascript_dialog_manager.cc

Issue 735473002: Rename app_modal_dialogs dir to app_modal (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698