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

Side by Side Diff: components/web_modal/web_contents_modal_dialog_manager.h

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-gtk-build Created 7 years, 7 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 5 #ifndef COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
6 #define CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/ui/native_web_contents_modal_dialog_manager.h" 11 #include "components/web_modal/native_web_contents_modal_dialog_manager.h"
12 #include "content/public/browser/notification_observer.h" 12 #include "content/public/browser/notification_observer.h"
13 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
14 #include "content/public/browser/web_contents_observer.h" 14 #include "content/public/browser/web_contents_observer.h"
15 #include "content/public/browser/web_contents_user_data.h" 15 #include "content/public/browser/web_contents_user_data.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 17
18 namespace web_modal {
19
18 class WebContentsModalDialogManagerDelegate; 20 class WebContentsModalDialogManagerDelegate;
19 21
20 // Per-WebContents class to manage WebContents-modal dialogs. 22 // Per-WebContents class to manage WebContents-modal dialogs.
21 class WebContentsModalDialogManager 23 class WebContentsModalDialogManager
22 : public NativeWebContentsModalDialogManagerDelegate, 24 : public NativeWebContentsModalDialogManagerDelegate,
23 public content::WebContentsObserver, 25 public content::WebContentsObserver,
24 public content::WebContentsUserData<WebContentsModalDialogManager>, 26 public content::WebContentsUserData<WebContentsModalDialogManager>,
25 public content::NotificationObserver { 27 public content::NotificationObserver {
26 public: 28 public:
27 virtual ~WebContentsModalDialogManager(); 29 virtual ~WebContentsModalDialogManager();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 115
114 // True while closing the dialogs on WebContents close. 116 // True while closing the dialogs on WebContents close.
115 bool closing_all_dialogs_; 117 bool closing_all_dialogs_;
116 118
117 // A scoped container for notification registries. 119 // A scoped container for notification registries.
118 content::NotificationRegistrar registrar_; 120 content::NotificationRegistrar registrar_;
119 121
120 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager); 122 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager);
121 }; 123 };
122 124
123 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 125 } // namespace web_modal
126
127 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698