OLD | NEW |
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> |
(...skipping 11 matching lines...) Expand all Loading... |
22 namespace views { | 22 namespace views { |
23 class PointerWatcherEventRouter; | 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 RootWindowController; |
32 class WindowManager; | 33 class WindowManager; |
33 class WmRootWindowControllerMus; | |
34 class WmShellMusTestApi; | 34 class WmShellMusTestApi; |
35 | 35 |
36 // WmShell implementation for mus. | 36 // WmShell implementation for mus. |
37 class WmShellMus : public WmShell, | 37 class WmShellMus : public WmShell, |
38 public aura::client::ActivationChangeObserver { | 38 public aura::client::ActivationChangeObserver { |
39 public: | 39 public: |
40 WmShellMus(std::unique_ptr<ShellDelegate> shell_delegate, | 40 WmShellMus(std::unique_ptr<ShellDelegate> shell_delegate, |
41 WindowManager* window_manager, | 41 WindowManager* window_manager, |
42 views::PointerWatcherEventRouter* pointer_watcher_event_router); | 42 views::PointerWatcherEventRouter* pointer_watcher_event_router); |
43 ~WmShellMus() override; | 43 ~WmShellMus() override; |
44 | 44 |
45 static WmShellMus* Get(); | 45 static WmShellMus* Get(); |
46 | 46 |
47 void AddRootWindowController(WmRootWindowControllerMus* controller); | 47 void AddRootWindowController(RootWindowController* controller); |
48 void RemoveRootWindowController(WmRootWindowControllerMus* controller); | 48 void RemoveRootWindowController(RootWindowController* controller); |
49 | 49 |
50 WmRootWindowControllerMus* GetRootWindowControllerWithDisplayId(int64_t id); | 50 RootWindowController* GetRootWindowControllerWithDisplayId(int64_t id); |
51 | 51 |
52 AcceleratorControllerDelegateMus* accelerator_controller_delegate() { | 52 AcceleratorControllerDelegateMus* accelerator_controller_delegate() { |
53 return accelerator_controller_delegate_.get(); | 53 return accelerator_controller_delegate_.get(); |
54 } | 54 } |
55 | 55 |
56 aura::WindowTreeClient* window_tree_client(); | 56 aura::WindowTreeClient* window_tree_client(); |
57 | 57 |
58 WindowManager* window_manager() { return window_manager_; } | 58 WindowManager* window_manager() { return window_manager_; } |
59 | 59 |
60 // WmShell: | 60 // WmShell: |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 // aura::client::ActivationChangeObserver: | 119 // aura::client::ActivationChangeObserver: |
120 void OnWindowActivated(ActivationReason reason, | 120 void OnWindowActivated(ActivationReason reason, |
121 aura::Window* gained_active, | 121 aura::Window* gained_active, |
122 aura::Window* lost_active) override; | 122 aura::Window* lost_active) override; |
123 | 123 |
124 WindowManager* window_manager_; | 124 WindowManager* window_manager_; |
125 | 125 |
126 views::PointerWatcherEventRouter* pointer_watcher_event_router_; | 126 views::PointerWatcherEventRouter* pointer_watcher_event_router_; |
127 | 127 |
128 std::vector<WmRootWindowControllerMus*> root_window_controllers_; | 128 std::vector<RootWindowController*> root_window_controllers_; |
129 | 129 |
130 std::unique_ptr<AcceleratorControllerDelegateMus> | 130 std::unique_ptr<AcceleratorControllerDelegateMus> |
131 accelerator_controller_delegate_; | 131 accelerator_controller_delegate_; |
132 std::unique_ptr<AcceleratorControllerRegistrar> | 132 std::unique_ptr<AcceleratorControllerRegistrar> |
133 accelerator_controller_registrar_; | 133 accelerator_controller_registrar_; |
134 std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_; | 134 std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_; |
135 std::unique_ptr<SessionStateDelegate> session_state_delegate_; | 135 std::unique_ptr<SessionStateDelegate> session_state_delegate_; |
136 | 136 |
137 base::ObserverList<WmActivationObserver> activation_observers_; | 137 base::ObserverList<WmActivationObserver> activation_observers_; |
138 | 138 |
139 DISALLOW_COPY_AND_ASSIGN(WmShellMus); | 139 DISALLOW_COPY_AND_ASSIGN(WmShellMus); |
140 }; | 140 }; |
141 | 141 |
142 } // namespace mus | 142 } // namespace mus |
143 } // namespace ash | 143 } // namespace ash |
144 | 144 |
145 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ | 145 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ |
OLD | NEW |