OLD | NEW |
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 104 |
103 // True while closing the dialogs on WebContents close. | 105 // True while closing the dialogs on WebContents close. |
104 bool closing_all_dialogs_; | 106 bool closing_all_dialogs_; |
105 | 107 |
106 // A scoped container for notification registries. | 108 // A scoped container for notification registries. |
107 content::NotificationRegistrar registrar_; | 109 content::NotificationRegistrar registrar_; |
108 | 110 |
109 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager); | 111 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager); |
110 }; | 112 }; |
111 | 113 |
112 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ | 114 } // namespace web_modal |
| 115 |
| 116 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ |
OLD | NEW |