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

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: . 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
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 DebugAcceleratorType type; 97 DebugAcceleratorType type;
98 ui::KeyboardCode key_code; 98 ui::KeyboardCode key_code;
99 int event_flags; 99 int event_flags;
100
101 bool Matches(const ui::KeyEvent& event) const;
sky 2016/08/17 19:01:05 Functions before members.
kylechar 2016/08/17 19:10:12 Done.
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.
107 PRE_TARGET_ACCELERATOR, 109 PRE_TARGET_ACCELERATOR,
108 110
109 // Dispatching to the target, awaiting the ack. 111 // Dispatching to the target, awaiting the ack.
(...skipping 111 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

Powered by Google App Engine
This is Rietveld 408576698