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

Side by Side Diff: components/mus/ws/window_manager_state.h

Issue 1953193002: mus: Add debug key to print the server window hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: accelerator Created 4 years, 7 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 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // been processed it is dispatched, otherwise the event is passed to the 143 // been processed it is dispatched, otherwise the event is passed to the
144 // EventDispatcher for processing. 144 // EventDispatcher for processing.
145 void ProcessNextEventFromQueue(); 145 void ProcessNextEventFromQueue();
146 146
147 // Dispatches the event to the appropriate client and starts the ack timer. 147 // Dispatches the event to the appropriate client and starts the ack timer.
148 void DispatchInputEventToWindowImpl(ServerWindow* target, 148 void DispatchInputEventToWindowImpl(ServerWindow* target,
149 bool in_nonclient_area, 149 bool in_nonclient_area,
150 const ui::Event& event, 150 const ui::Event& event,
151 base::WeakPtr<Accelerator> accelerator); 151 base::WeakPtr<Accelerator> accelerator);
152 152
153 void AddDebugAccelerators();
msw 2016/05/06 22:34:31 nit: please add a simple comment
James Cook 2016/05/07 00:03:10 Done.
154
155 // Returns true if the accelerator was handled.
156 bool HandleDebugAccelerator(uint32_t accelerator_id);
157
153 // EventDispatcherDelegate: 158 // EventDispatcherDelegate:
154 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event) override; 159 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event) override;
155 void SetFocusedWindowFromEventDispatcher(ServerWindow* window) override; 160 void SetFocusedWindowFromEventDispatcher(ServerWindow* window) override;
156 ServerWindow* GetFocusedWindowForEventDispatcher() override; 161 ServerWindow* GetFocusedWindowForEventDispatcher() override;
157 void SetNativeCapture() override; 162 void SetNativeCapture() override;
158 void ReleaseNativeCapture() override; 163 void ReleaseNativeCapture() override;
159 void OnServerWindowCaptureLost(ServerWindow* window) override; 164 void OnServerWindowCaptureLost(ServerWindow* window) override;
160 void OnMouseCursorLocationChanged(const gfx::Point& point) override; 165 void OnMouseCursorLocationChanged(const gfx::Point& point) override;
161 void DispatchInputEventToWindow(ServerWindow* target, 166 void DispatchInputEventToWindow(ServerWindow* target,
162 bool in_nonclient_area, 167 bool in_nonclient_area,
(...skipping 25 matching lines...) Expand all
188 193
189 EventDispatcher event_dispatcher_; 194 EventDispatcher event_dispatcher_;
190 195
191 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); 196 DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
192 }; 197 };
193 198
194 } // namespace ws 199 } // namespace ws
195 } // namespace mus 200 } // namespace mus
196 201
197 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ 202 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698