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

Side by Side Diff: components/app_modal/javascript_dialog_manager_impl.h

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
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 #ifndef COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_IMPL_H_
6 #define COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_IMPL_H_
7
5 #include "content/public/browser/javascript_dialog_manager.h" 8 #include "content/public/browser/javascript_dialog_manager.h"
6 9
7 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
9 #include "components/app_modal_dialogs/javascript_app_modal_dialog.h" 12 #include "components/app_modal/javascript_app_modal_dialog.h"
10 13
11 class JavaScriptDialogExtensionsClient; 14 class JavaScriptDialogExtensionsClient;
12 class JavaScriptNativeDialogFactory; 15 class JavaScriptNativeDialogFactory;
13 16
14 class JavaScriptDialogManagerImpl : public content::JavaScriptDialogManager { 17 class JavaScriptDialogManagerImpl : public content::JavaScriptDialogManager {
15 public: 18 public:
16 static JavaScriptDialogManagerImpl* GetInstance(); 19 static JavaScriptDialogManagerImpl* GetInstance();
17 20
18 // JavaScriptDialogManager: 21 // JavaScriptDialogManager:
19 void RunJavaScriptDialog(content::WebContents* web_contents, 22 void RunJavaScriptDialog(content::WebContents* web_contents,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Mapping between the WebContents and their extra data. The key 69 // Mapping between the WebContents and their extra data. The key
67 // is a void* because the pointer is just a cookie and is never dereferenced. 70 // is a void* because the pointer is just a cookie and is never dereferenced.
68 JavaScriptAppModalDialog::ExtraDataMap javascript_dialog_extra_data_; 71 JavaScriptAppModalDialog::ExtraDataMap javascript_dialog_extra_data_;
69 72
70 scoped_ptr<JavaScriptDialogExtensionsClient> extensions_client_; 73 scoped_ptr<JavaScriptDialogExtensionsClient> extensions_client_;
71 scoped_ptr<JavaScriptNativeDialogFactory> native_dialog_factory_; 74 scoped_ptr<JavaScriptNativeDialogFactory> native_dialog_factory_;
72 75
73 DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogManagerImpl); 76 DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogManagerImpl);
74 }; 77 };
75 78
79 #endif // COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « components/app_modal/javascript_dialog_manager.cc ('k') | components/app_modal/javascript_dialog_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698