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

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

Issue 2652093002: mash: Make the power button shut the system down. (Closed)
Patch Set: add comment about CursorManager 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/mus/accelerators/accelerator_controller_unittest.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>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 CreateImmersiveFullscreenController() override; 99 CreateImmersiveFullscreenController() override;
100 std::unique_ptr<KeyEventWatcher> CreateKeyEventWatcher() override; 100 std::unique_ptr<KeyEventWatcher> CreateKeyEventWatcher() override;
101 void OnOverviewModeStarting() override; 101 void OnOverviewModeStarting() override;
102 void OnOverviewModeEnded() override; 102 void OnOverviewModeEnded() override;
103 SessionStateDelegate* GetSessionStateDelegate() override; 103 SessionStateDelegate* GetSessionStateDelegate() override;
104 void AddDisplayObserver(WmDisplayObserver* observer) override; 104 void AddDisplayObserver(WmDisplayObserver* observer) override;
105 void RemoveDisplayObserver(WmDisplayObserver* observer) override; 105 void RemoveDisplayObserver(WmDisplayObserver* observer) override;
106 void AddPointerWatcher(views::PointerWatcher* watcher, 106 void AddPointerWatcher(views::PointerWatcher* watcher,
107 views::PointerWatcherEventTypes events) override; 107 views::PointerWatcherEventTypes events) override;
108 void RemovePointerWatcher(views::PointerWatcher* watcher) override; 108 void RemovePointerWatcher(views::PointerWatcher* watcher) override;
109 void RequestShutdown() override;
110 bool IsTouchDown() override; 109 bool IsTouchDown() override;
111 void ToggleIgnoreExternalKeyboard() override; 110 void ToggleIgnoreExternalKeyboard() override;
112 void SetLaserPointerEnabled(bool enabled) override; 111 void SetLaserPointerEnabled(bool enabled) override;
113 void CreatePointerWatcherAdapter() override; 112 void CreatePointerWatcherAdapter() override;
114 void CreatePrimaryHost() override; 113 void CreatePrimaryHost() override;
115 void InitHosts(const ShellInitParams& init_params) override; 114 void InitHosts(const ShellInitParams& init_params) override;
116 115
117 private: 116 private:
118 friend class WmShellMusTestApi; 117 friend class WmShellMusTestApi;
119 118
120 WindowManager* window_manager_; 119 WindowManager* window_manager_;
121 120
122 WmWindow* primary_root_window_; 121 WmWindow* primary_root_window_;
123 views::PointerWatcherEventRouter* pointer_watcher_event_router_; 122 views::PointerWatcherEventRouter* pointer_watcher_event_router_;
124 123
125 std::unique_ptr<AcceleratorControllerDelegateMus> 124 std::unique_ptr<AcceleratorControllerDelegateMus>
126 accelerator_controller_delegate_; 125 accelerator_controller_delegate_;
127 std::unique_ptr<AcceleratorControllerRegistrar> 126 std::unique_ptr<AcceleratorControllerRegistrar>
128 accelerator_controller_registrar_; 127 accelerator_controller_registrar_;
129 std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_; 128 std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_;
130 std::unique_ptr<SessionStateDelegate> session_state_delegate_; 129 std::unique_ptr<SessionStateDelegate> session_state_delegate_;
131 130
132 DISALLOW_COPY_AND_ASSIGN(WmShellMus); 131 DISALLOW_COPY_AND_ASSIGN(WmShellMus);
133 }; 132 };
134 133
135 } // namespace mus 134 } // namespace mus
136 } // namespace ash 135 } // namespace ash
137 136
138 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ 137 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_
OLDNEW
« no previous file with comments | « ash/mus/accelerators/accelerator_controller_unittest.cc ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698