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

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

Issue 2655213002: mash: changes event dispatch to consider non-client area of all windows (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | services/ui/ws/event_dispatcher.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_EVENT_DISPATCHER_H_ 5 #ifndef SERVICES_UI_WS_EVENT_DISPATCHER_H_
6 #define SERVICES_UI_WS_EVENT_DISPATCHER_H_ 6 #define SERVICES_UI_WS_EVENT_DISPATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 10 matching lines...) Expand all
21 #include "ui/gfx/geometry/rect_f.h" 21 #include "ui/gfx/geometry/rect_f.h"
22 22
23 namespace ui { 23 namespace ui {
24 class Event; 24 class Event;
25 class KeyEvent; 25 class KeyEvent;
26 class LocatedEvent; 26 class LocatedEvent;
27 27
28 namespace ws { 28 namespace ws {
29 29
30 class Accelerator; 30 class Accelerator;
31 struct DeepestWindow;
31 class DragController; 32 class DragController;
32 class DragSource; 33 class DragSource;
33 class DragTargetConnection; 34 class DragTargetConnection;
34 class EventDispatcherDelegate; 35 class EventDispatcherDelegate;
35 class ServerWindow; 36 class ServerWindow;
36 37
37 namespace test { 38 namespace test {
38 class EventDispatcherTestApi; 39 class EventDispatcherTestApi;
39 } 40 }
40 41
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // unobserve a window, UnobserveWindow() should be called the same number of 219 // unobserve a window, UnobserveWindow() should be called the same number of
219 // times. 220 // times.
220 void ObserveWindow(ServerWindow* winodw); 221 void ObserveWindow(ServerWindow* winodw);
221 void UnobserveWindow(ServerWindow* winodw); 222 void UnobserveWindow(ServerWindow* winodw);
222 223
223 // Returns an Accelerator bound to the specified code/flags, and of the 224 // Returns an Accelerator bound to the specified code/flags, and of the
224 // matching |phase|. Otherwise returns null. 225 // matching |phase|. Otherwise returns null.
225 Accelerator* FindAccelerator(const ui::KeyEvent& event, 226 Accelerator* FindAccelerator(const ui::KeyEvent& event,
226 const ui::mojom::AcceleratorPhase phase); 227 const ui::mojom::AcceleratorPhase phase);
227 228
228 ServerWindow* FindDeepestVisibleWindowForEvents(gfx::Point* location); 229 DeepestWindow FindDeepestVisibleWindowForEvents(const gfx::Point& location);
229 230
230 // Clears the implicit captures in |pointer_targets_|, with the exception of 231 // Clears the implicit captures in |pointer_targets_|, with the exception of
231 // |window|. |window| may be null. |client_id| is the target client of 232 // |window|. |window| may be null. |client_id| is the target client of
232 // |window|. 233 // |window|.
233 void CancelImplicitCaptureExcept(ServerWindow* window, 234 void CancelImplicitCaptureExcept(ServerWindow* window,
234 ClientSpecificId client_id); 235 ClientSpecificId client_id);
235 236
236 // ServerWindowObserver: 237 // ServerWindowObserver:
237 void OnWillChangeWindowHierarchy(ServerWindow* window, 238 void OnWillChangeWindowHierarchy(ServerWindow* window,
238 ServerWindow* new_parent, 239 ServerWindow* new_parent,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 AcceleratorMatchPhase::ANY; 279 AcceleratorMatchPhase::ANY;
279 #endif 280 #endif
280 281
281 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); 282 DISALLOW_COPY_AND_ASSIGN(EventDispatcher);
282 }; 283 };
283 284
284 } // namespace ws 285 } // namespace ws
285 } // namespace ui 286 } // namespace ui
286 287
287 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_H_ 288 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698