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 SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ |
6 #define SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ | 6 #define SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 private: | 87 private: |
88 class ProcessedEventTarget; | 88 class ProcessedEventTarget; |
89 friend class Display; | 89 friend class Display; |
90 friend class test::WindowManagerStateTestApi; | 90 friend class test::WindowManagerStateTestApi; |
91 | 91 |
92 enum class DebugAcceleratorType { | 92 enum class DebugAcceleratorType { |
93 PRINT_WINDOWS, | 93 PRINT_WINDOWS, |
94 }; | 94 }; |
95 | 95 |
96 struct DebugAccelerator { | 96 struct DebugAccelerator { |
| 97 bool Matches(const ui::KeyEvent& event) const; |
| 98 |
97 DebugAcceleratorType type; | 99 DebugAcceleratorType type; |
98 ui::KeyboardCode key_code; | 100 ui::KeyboardCode key_code; |
99 int event_flags; | 101 int event_flags; |
100 }; | 102 }; |
101 | 103 |
102 enum class EventDispatchPhase { | 104 enum class EventDispatchPhase { |
103 // Not actively dispatching. | 105 // Not actively dispatching. |
104 NONE, | 106 NONE, |
105 | 107 |
106 // A PRE_TARGET accelerator has been encountered and we're awaiting the ack. | 108 // A PRE_TARGET accelerator has been encountered and we're awaiting the ack. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 223 |
222 base::WeakPtrFactory<WindowManagerState> weak_factory_; | 224 base::WeakPtrFactory<WindowManagerState> weak_factory_; |
223 | 225 |
224 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); | 226 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); |
225 }; | 227 }; |
226 | 228 |
227 } // namespace ws | 229 } // namespace ws |
228 } // namespace ui | 230 } // namespace ui |
229 | 231 |
230 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ | 232 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ |
OLD | NEW |