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

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

Issue 2256343003: Update ui::PointerEvent to support mouse wheel and capture change events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 // EventDispatcher provides the following logic for pointer events: 150 // EventDispatcher provides the following logic for pointer events:
151 // . wheel events go to the current target of the associated pointer. If 151 // . wheel events go to the current target of the associated pointer. If
152 // there is no target, they go to the deepest window. 152 // there is no target, they go to the deepest window.
153 // . move (not drag) events go to the deepest window. 153 // . move (not drag) events go to the deepest window.
154 // . when a pointer goes down all events until the corresponding up or 154 // . when a pointer goes down all events until the corresponding up or
155 // cancel go to the deepest target. For mouse events the up only occurs 155 // cancel go to the deepest target. For mouse events the up only occurs
156 // when no buttons on the mouse are down. 156 // when no buttons on the mouse are down.
157 // This also generates exit events as appropriate. For example, if the mouse 157 // This also generates exit events as appropriate. For example, if the mouse
158 // moves between one window to another an exit is generated on the first. 158 // moves between one window to another an exit is generated on the first.
159 void ProcessLocatedEvent(const ui::LocatedEvent& event); 159 void ProcessPointerEvent(const ui::PointerEvent& event);
160 160
161 // Adds |pointer_target| to |pointer_targets_|. 161 // Adds |pointer_target| to |pointer_targets_|.
162 void StartTrackingPointer(int32_t pointer_id, 162 void StartTrackingPointer(int32_t pointer_id,
163 const PointerTarget& pointer_target); 163 const PointerTarget& pointer_target);
164 164
165 // Removes a PointerTarget from |pointer_targets_|. 165 // Removes a PointerTarget from |pointer_targets_|.
166 void StopTrackingPointer(int32_t pointer_id); 166 void StopTrackingPointer(int32_t pointer_id);
167 167
168 // Starts tracking the pointer for |event|, or if already tracking the 168 // Starts tracking the pointer for |event|, or if already tracking the
169 // pointer sends the appropriate event to the delegate and updates the 169 // pointer sends the appropriate event to the delegate and updates the
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 AcceleratorMatchPhase::ANY; 244 AcceleratorMatchPhase::ANY;
245 #endif 245 #endif
246 246
247 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); 247 DISALLOW_COPY_AND_ASSIGN(EventDispatcher);
248 }; 248 };
249 249
250 } // namespace ws 250 } // namespace ws
251 } // namespace ui 251 } // namespace ui
252 252
253 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_H_ 253 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/converters/blink/blink_input_events_type_converters_unittest.cc ('k') | services/ui/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698