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

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: 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 #ifndef COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_IMPL_H_
msw 2014/11/17 19:14:41 nit: blank line above.
oshima 2014/11/17 21:40:23 Done.
5 #define COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_IMPL_H_
4 6
5 #include "content/public/browser/javascript_dialog_manager.h" 7 #include "content/public/browser/javascript_dialog_manager.h"
6 8
7 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
9 #include "components/app_modal_dialogs/javascript_app_modal_dialog.h" 11 #include "components/app_modal/javascript_app_modal_dialog.h"
10 12
11 class JavaScriptDialogExtensionsClient; 13 class JavaScriptDialogExtensionsClient;
12 class JavaScriptNativeDialogFactory; 14 class JavaScriptNativeDialogFactory;
13 15
14 class JavaScriptDialogManagerImpl : public content::JavaScriptDialogManager { 16 class JavaScriptDialogManagerImpl : public content::JavaScriptDialogManager {
15 public: 17 public:
16 static JavaScriptDialogManagerImpl* GetInstance(); 18 static JavaScriptDialogManagerImpl* GetInstance();
17 19
18 // JavaScriptDialogManager: 20 // JavaScriptDialogManager:
19 void RunJavaScriptDialog(content::WebContents* web_contents, 21 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 68 // 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. 69 // is a void* because the pointer is just a cookie and is never dereferenced.
68 JavaScriptAppModalDialog::ExtraDataMap javascript_dialog_extra_data_; 70 JavaScriptAppModalDialog::ExtraDataMap javascript_dialog_extra_data_;
69 71
70 scoped_ptr<JavaScriptDialogExtensionsClient> extensions_client_; 72 scoped_ptr<JavaScriptDialogExtensionsClient> extensions_client_;
71 scoped_ptr<JavaScriptNativeDialogFactory> native_dialog_factory_; 73 scoped_ptr<JavaScriptNativeDialogFactory> native_dialog_factory_;
72 74
73 DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogManagerImpl); 75 DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogManagerImpl);
74 }; 76 };
75 77
78 #endif // COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698