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

Side by Side Diff: ash/mus/bridge/wm_shell_mus.h

Issue 2610063002: Cleanup after removing views-mus code (Closed)
Patch Set: merge Created 3 years, 11 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
« no previous file with comments | « ash/autoclick/mus/autoclick_application.cc ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ 5 #ifndef ASH_MUS_BRIDGE_WM_SHELL_MUS_H_
6 #define ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ 6 #define ASH_MUS_BRIDGE_WM_SHELL_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "ash/common/wm_shell.h" 13 #include "ash/common/wm_shell.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "ui/wm/public/activation_change_observer.h" 16 #include "ui/wm/public/activation_change_observer.h"
17 17
18 namespace aura { 18 namespace aura {
19 class WindowTreeClient; 19 class WindowTreeClient;
20 } 20 }
21 21
22 namespace views { 22 namespace views {
23 class PointerWatcherEventRouter2; 23 class PointerWatcherEventRouter;
24 } 24 }
25 25
26 namespace ash { 26 namespace ash {
27 namespace mus { 27 namespace mus {
28 28
29 class AcceleratorControllerDelegateMus; 29 class AcceleratorControllerDelegateMus;
30 class AcceleratorControllerRegistrar; 30 class AcceleratorControllerRegistrar;
31 class ImmersiveHandlerFactoryMus; 31 class ImmersiveHandlerFactoryMus;
32 class WindowManager; 32 class WindowManager;
33 class WmRootWindowControllerMus; 33 class WmRootWindowControllerMus;
34 class WmShellMusTestApi; 34 class WmShellMusTestApi;
35 class WmWindowMus; 35 class WmWindowMus;
36 36
37 // WmShell implementation for mus. 37 // WmShell implementation for mus.
38 class WmShellMus : public WmShell, 38 class WmShellMus : public WmShell,
39 public aura::client::ActivationChangeObserver { 39 public aura::client::ActivationChangeObserver {
40 public: 40 public:
41 WmShellMus(std::unique_ptr<ShellDelegate> shell_delegate, 41 WmShellMus(std::unique_ptr<ShellDelegate> shell_delegate,
42 WindowManager* window_manager, 42 WindowManager* window_manager,
43 views::PointerWatcherEventRouter2* pointer_watcher_event_router); 43 views::PointerWatcherEventRouter* pointer_watcher_event_router);
44 ~WmShellMus() override; 44 ~WmShellMus() override;
45 45
46 static WmShellMus* Get(); 46 static WmShellMus* Get();
47 47
48 void AddRootWindowController(WmRootWindowControllerMus* controller); 48 void AddRootWindowController(WmRootWindowControllerMus* controller);
49 void RemoveRootWindowController(WmRootWindowControllerMus* controller); 49 void RemoveRootWindowController(WmRootWindowControllerMus* controller);
50 50
51 // Returns the ancestor of |window| (including |window|) that is considered 51 // Returns the ancestor of |window| (including |window|) that is considered
52 // toplevel. |window| may be null. 52 // toplevel. |window| may be null.
53 static WmWindowMus* GetToplevelAncestor(aura::Window* window); 53 static WmWindowMus* GetToplevelAncestor(aura::Window* window);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Returns true if |window| is a window that can have active children. 126 // Returns true if |window| is a window that can have active children.
127 static bool IsActivationParent(aura::Window* window); 127 static bool IsActivationParent(aura::Window* window);
128 128
129 // aura::client::ActivationChangeObserver: 129 // aura::client::ActivationChangeObserver:
130 void OnWindowActivated(ActivationReason reason, 130 void OnWindowActivated(ActivationReason reason,
131 aura::Window* gained_active, 131 aura::Window* gained_active,
132 aura::Window* lost_active) override; 132 aura::Window* lost_active) override;
133 133
134 WindowManager* window_manager_; 134 WindowManager* window_manager_;
135 135
136 views::PointerWatcherEventRouter2* pointer_watcher_event_router_; 136 views::PointerWatcherEventRouter* pointer_watcher_event_router_;
137 137
138 std::vector<WmRootWindowControllerMus*> root_window_controllers_; 138 std::vector<WmRootWindowControllerMus*> root_window_controllers_;
139 139
140 std::unique_ptr<AcceleratorControllerDelegateMus> 140 std::unique_ptr<AcceleratorControllerDelegateMus>
141 accelerator_controller_delegate_; 141 accelerator_controller_delegate_;
142 std::unique_ptr<AcceleratorControllerRegistrar> 142 std::unique_ptr<AcceleratorControllerRegistrar>
143 accelerator_controller_registrar_; 143 accelerator_controller_registrar_;
144 std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_; 144 std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_;
145 std::unique_ptr<SessionStateDelegate> session_state_delegate_; 145 std::unique_ptr<SessionStateDelegate> session_state_delegate_;
146 146
147 base::ObserverList<WmActivationObserver> activation_observers_; 147 base::ObserverList<WmActivationObserver> activation_observers_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(WmShellMus); 149 DISALLOW_COPY_AND_ASSIGN(WmShellMus);
150 }; 150 };
151 151
152 } // namespace mus 152 } // namespace mus
153 } // namespace ash 153 } // namespace ash
154 154
155 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ 155 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_
OLDNEW
« no previous file with comments | « ash/autoclick/mus/autoclick_application.cc ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698