Chromium Code Reviews| 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> |
| 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 | 15 |
| 16 namespace aura { | 16 namespace aura { |
| 17 class WindowTreeClient; | 17 class WindowTreeClient; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace views { | 20 namespace views { |
| 21 class PointerWatcherEventRouter; | 21 class PointerWatcherEventRouter; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| 25 | 25 |
| 26 class AcceleratorControllerDelegateAura; | 26 class AcceleratorControllerDelegateAura; |
| 27 class PointerWatcherAdapter; | |
| 27 class RootWindowController; | 28 class RootWindowController; |
| 28 | 29 |
| 29 namespace mus { | 30 namespace mus { |
| 30 | 31 |
| 31 class AcceleratorControllerDelegateMus; | 32 class AcceleratorControllerDelegateMus; |
| 32 class AcceleratorControllerRegistrar; | 33 class AcceleratorControllerRegistrar; |
| 33 class ImmersiveHandlerFactoryMus; | 34 class ImmersiveHandlerFactoryMus; |
| 34 class WindowManager; | 35 class WindowManager; |
| 35 class WmShellMusTestApi; | 36 class WmShellMusTestApi; |
| 36 | 37 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 void CreatePrimaryHost() override; | 113 void CreatePrimaryHost() override; |
| 113 void InitHosts(const ShellInitParams& init_params) override; | 114 void InitHosts(const ShellInitParams& init_params) override; |
| 114 std::unique_ptr<AcceleratorController> CreateAcceleratorController() override; | 115 std::unique_ptr<AcceleratorController> CreateAcceleratorController() override; |
| 115 | 116 |
| 116 private: | 117 private: |
| 117 friend class WmShellMusTestApi; | 118 friend class WmShellMusTestApi; |
| 118 | 119 |
| 119 WindowManager* window_manager_; | 120 WindowManager* window_manager_; |
| 120 | 121 |
| 121 WmWindow* primary_root_window_; | 122 WmWindow* primary_root_window_; |
| 123 | |
| 124 // Used in Config::MASH. | |
|
msw
2017/03/28 20:26:32
optional nit: make MUS/MASH comment styling match
sky
2017/03/28 21:21:01
I restructured this code to make it more obvious w
| |
| 122 views::PointerWatcherEventRouter* pointer_watcher_event_router_; | 125 views::PointerWatcherEventRouter* pointer_watcher_event_router_; |
|
msw
2017/03/28 20:26:32
optional nit: maybe add more meaningful comments a
| |
| 123 | 126 |
| 127 // Used in Config::MUS. | |
| 128 std::unique_ptr<PointerWatcherAdapter> pointer_watcher_adapter_; | |
| 129 | |
| 124 // |accelerator_controller_delegate_classic_| is created in MUS mode, | 130 // |accelerator_controller_delegate_classic_| is created in MUS mode, |
| 125 // |accelerator_controller_delegate_| in MASH mode. | 131 // |accelerator_controller_delegate_| in MASH mode. |
| 126 std::unique_ptr<AcceleratorControllerDelegateMus> | 132 std::unique_ptr<AcceleratorControllerDelegateMus> |
| 127 accelerator_controller_delegate_; | 133 accelerator_controller_delegate_; |
| 128 std::unique_ptr<AcceleratorControllerDelegateAura> | 134 std::unique_ptr<AcceleratorControllerDelegateAura> |
| 129 accelerator_controller_delegate_classic_; | 135 accelerator_controller_delegate_classic_; |
| 130 std::unique_ptr<AcceleratorControllerRegistrar> | 136 std::unique_ptr<AcceleratorControllerRegistrar> |
| 131 accelerator_controller_registrar_; | 137 accelerator_controller_registrar_; |
| 132 std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_; | 138 std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_; |
| 133 std::unique_ptr<SessionStateDelegate> session_state_delegate_; | 139 std::unique_ptr<SessionStateDelegate> session_state_delegate_; |
| 134 | 140 |
| 135 DISALLOW_COPY_AND_ASSIGN(WmShellMus); | 141 DISALLOW_COPY_AND_ASSIGN(WmShellMus); |
| 136 }; | 142 }; |
| 137 | 143 |
| 138 } // namespace mus | 144 } // namespace mus |
| 139 } // namespace ash | 145 } // namespace ash |
| 140 | 146 |
| 141 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ | 147 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ |
| OLD | NEW |