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

Side by Side Diff: services/ui/ws/window_manager_state.h

Issue 2257503002: Improve some debug tools for mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_mash
Patch Set: Fixes. Created 4 years, 4 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 | « services/ui/ws/server_window.cc ('k') | services/ui/ws/window_manager_state.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 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
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
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_
OLDNEW
« no previous file with comments | « services/ui/ws/server_window.cc ('k') | services/ui/ws/window_manager_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698