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 COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // been processed it is dispatched, otherwise the event is passed to the | 146 // been processed it is dispatched, otherwise the event is passed to the |
147 // EventDispatcher for processing. | 147 // EventDispatcher for processing. |
148 void ProcessNextEventFromQueue(); | 148 void ProcessNextEventFromQueue(); |
149 | 149 |
150 // Dispatches the event to the appropriate client and starts the ack timer. | 150 // Dispatches the event to the appropriate client and starts the ack timer. |
151 void DispatchInputEventToWindowImpl(ServerWindow* target, | 151 void DispatchInputEventToWindowImpl(ServerWindow* target, |
152 bool in_nonclient_area, | 152 bool in_nonclient_area, |
153 const ui::Event& event, | 153 const ui::Event& event, |
154 base::WeakPtr<Accelerator> accelerator); | 154 base::WeakPtr<Accelerator> accelerator); |
155 | 155 |
| 156 // Handles debugging shortcuts in debug builds. The events are not consumed. |
| 157 void RunDebugShortcuts(const ui::Event& event); |
| 158 |
156 // EventDispatcherDelegate: | 159 // EventDispatcherDelegate: |
157 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event) override; | 160 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event) override; |
158 void SetFocusedWindowFromEventDispatcher(ServerWindow* window) override; | 161 void SetFocusedWindowFromEventDispatcher(ServerWindow* window) override; |
159 ServerWindow* GetFocusedWindowForEventDispatcher() override; | 162 ServerWindow* GetFocusedWindowForEventDispatcher() override; |
160 void SetNativeCapture() override; | 163 void SetNativeCapture() override; |
161 void ReleaseNativeCapture() override; | 164 void ReleaseNativeCapture() override; |
162 void OnServerWindowCaptureLost(ServerWindow* window) override; | 165 void OnServerWindowCaptureLost(ServerWindow* window) override; |
163 void OnMouseCursorLocationChanged(const gfx::Point& point) override; | 166 void OnMouseCursorLocationChanged(const gfx::Point& point) override; |
164 void DispatchInputEventToWindow(ServerWindow* target, | 167 void DispatchInputEventToWindow(ServerWindow* target, |
165 bool in_nonclient_area, | 168 bool in_nonclient_area, |
(...skipping 25 matching lines...) Expand all Loading... |
191 | 194 |
192 EventDispatcher event_dispatcher_; | 195 EventDispatcher event_dispatcher_; |
193 | 196 |
194 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); | 197 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); |
195 }; | 198 }; |
196 | 199 |
197 } // namespace ws | 200 } // namespace ws |
198 } // namespace mus | 201 } // namespace mus |
199 | 202 |
200 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ | 203 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ |
OLD | NEW |