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

Side by Side Diff: components/constrained_window/native_web_contents_modal_dialog_manager_views.h

Issue 2087643003: Move web modal dialog manager files into the constrained_window component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes to gyp files, IWYU for #ifdef (OS_MACOSX). Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_VIEWS_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_VIEWS_H _ 5 #ifndef COMPONENTS_CONSTRAINED_WINDOW_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_V IEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_VIEWS_H _ 6 #define COMPONENTS_CONSTRAINED_WINDOW_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_V IEWS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/web_modal/modal_dialog_host.h" 11 #include "components/web_modal/modal_dialog_host.h"
12 #include "components/web_modal/single_web_contents_dialog_manager.h" 12 #include "components/web_modal/single_web_contents_dialog_manager.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 #include "ui/views/widget/widget_observer.h" 14 #include "ui/views/widget/widget_observer.h"
15 15
16 namespace views { 16 namespace views {
17 class Widget; 17 class Widget;
18 } 18 }
19 19
20 namespace constrained_window {
21
20 // Class for parenting a tab-modal views dialog off of a views browser. 22 // Class for parenting a tab-modal views dialog off of a views browser.
21 class NativeWebContentsModalDialogManagerViews 23 class NativeWebContentsModalDialogManagerViews
22 : public web_modal::SingleWebContentsDialogManager, 24 : public web_modal::SingleWebContentsDialogManager,
23 public web_modal::ModalDialogHostObserver, 25 public web_modal::ModalDialogHostObserver,
24 public views::WidgetObserver { 26 public views::WidgetObserver {
25 public: 27 public:
26 NativeWebContentsModalDialogManagerViews( 28 NativeWebContentsModalDialogManagerViews(
27 gfx::NativeWindow dialog, 29 gfx::NativeWindow dialog,
28 web_modal::SingleWebContentsDialogManagerDelegate* native_delegate); 30 web_modal::SingleWebContentsDialogManagerDelegate* native_delegate);
29 31
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 web_modal::SingleWebContentsDialogManagerDelegate* native_delegate_; 68 web_modal::SingleWebContentsDialogManagerDelegate* native_delegate_;
67 gfx::NativeWindow dialog_; 69 gfx::NativeWindow dialog_;
68 web_modal::WebContentsModalDialogHost* host_; 70 web_modal::WebContentsModalDialogHost* host_;
69 bool host_destroying_; 71 bool host_destroying_;
70 std::set<views::Widget*> observed_widgets_; 72 std::set<views::Widget*> observed_widgets_;
71 std::set<views::Widget*> shown_widgets_; 73 std::set<views::Widget*> shown_widgets_;
72 74
73 DISALLOW_COPY_AND_ASSIGN(NativeWebContentsModalDialogManagerViews); 75 DISALLOW_COPY_AND_ASSIGN(NativeWebContentsModalDialogManagerViews);
74 }; 76 };
75 77
76 #endif // CHROME_BROWSER_UI_VIEWS_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_VIEW S_H_ 78 } // namespace constrained_window
79
80 #endif // COMPONENTS_CONSTRAINED_WINDOW_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGE R_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698