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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 void AddActivationObserver(WmActivationObserver* observer) override; | 103 void AddActivationObserver(WmActivationObserver* observer) override; |
104 void RemoveActivationObserver(WmActivationObserver* observer) override; | 104 void RemoveActivationObserver(WmActivationObserver* observer) override; |
105 void AddDisplayObserver(WmDisplayObserver* observer) override; | 105 void AddDisplayObserver(WmDisplayObserver* observer) override; |
106 void RemoveDisplayObserver(WmDisplayObserver* observer) override; | 106 void RemoveDisplayObserver(WmDisplayObserver* observer) override; |
107 void AddPointerWatcher(views::PointerWatcher* watcher, | 107 void AddPointerWatcher(views::PointerWatcher* watcher, |
108 bool wants_moves) override; | 108 bool wants_moves) override; |
109 void RemovePointerWatcher(views::PointerWatcher* watcher) override; | 109 void RemovePointerWatcher(views::PointerWatcher* watcher) override; |
110 bool IsTouchDown() override; | 110 bool IsTouchDown() override; |
111 #if defined(OS_CHROMEOS) | 111 #if defined(OS_CHROMEOS) |
112 void ToggleIgnoreExternalKeyboard() override; | 112 void ToggleIgnoreExternalKeyboard() override; |
| 113 void SetLaserPointerEnabled(bool enabled) override; |
113 #endif | 114 #endif |
114 | 115 |
115 private: | 116 private: |
116 friend class WmShellMusTestApi; | 117 friend class WmShellMusTestApi; |
117 | 118 |
118 ui::WindowTreeClient* window_tree_client(); | 119 ui::WindowTreeClient* window_tree_client(); |
119 | 120 |
120 // Returns true if |window| is a window that can have active children. | 121 // Returns true if |window| is a window that can have active children. |
121 static bool IsActivationParent(ui::Window* window); | 122 static bool IsActivationParent(ui::Window* window); |
122 | 123 |
(...skipping 16 matching lines...) Expand all Loading... |
139 | 140 |
140 base::ObserverList<WmActivationObserver> activation_observers_; | 141 base::ObserverList<WmActivationObserver> activation_observers_; |
141 | 142 |
142 DISALLOW_COPY_AND_ASSIGN(WmShellMus); | 143 DISALLOW_COPY_AND_ASSIGN(WmShellMus); |
143 }; | 144 }; |
144 | 145 |
145 } // namespace mus | 146 } // namespace mus |
146 } // namespace ash | 147 } // namespace ash |
147 | 148 |
148 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ | 149 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ |
OLD | NEW |