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

Side by Side Diff: ui/events/event_constants.h

Issue 2869823003: [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: dtapuska's comment: Use ack to determine blocking vs. non-blocking Created 3 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_EVENTS_EVENT_CONSTANTS_H_ 5 #ifndef UI_EVENTS_EVENT_CONSTANTS_H_
6 #define UI_EVENTS_EVENT_CONSTANTS_H_ 6 #define UI_EVENTS_EVENT_CONSTANTS_H_
7 7
8 namespace ui { 8 namespace ui {
9 9
10 // Event types. (prefixed because of a conflict with windows headers) 10 // Event types. (prefixed because of a conflict with windows headers)
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // propagated to other handlers. 146 // propagated to other handlers.
147 ER_HANDLED = 1 << 0, // The event has already been handled, but it can 147 ER_HANDLED = 1 << 0, // The event has already been handled, but it can
148 // still be propagated to other handlers. 148 // still be propagated to other handlers.
149 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be 149 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be
150 // propagated to other handlers. 150 // propagated to other handlers.
151 ER_DISABLE_SYNC_HANDLING = 151 ER_DISABLE_SYNC_HANDLING =
152 1 << 2, // The event shouldn't be handled synchronously. This 152 1 << 2, // The event shouldn't be handled synchronously. This
153 // happens if the event is being handled 153 // happens if the event is being handled
154 // asynchronously, or if the event is invalid and 154 // asynchronously, or if the event is invalid and
155 // shouldn't be handled at all. 155 // shouldn't be handled at all.
156 ER_IGNORED_NON_BLOCKING =
dtapuska 2017/05/25 15:40:12 The name is slightly confusing because this is a b
157 1 << 3, // The event was dispatched non-blocking, a synthetic ack has
158 // been received.
156 }; 159 };
157 160
158 // Phase of the event dispatch. 161 // Phase of the event dispatch.
159 enum EventPhase { 162 enum EventPhase {
160 EP_PREDISPATCH, 163 EP_PREDISPATCH,
161 EP_PRETARGET, 164 EP_PRETARGET,
162 EP_TARGET, 165 EP_TARGET,
163 EP_POSTTARGET, 166 EP_POSTTARGET,
164 EP_POSTDISPATCH 167 EP_POSTDISPATCH
165 }; 168 };
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Device type for gesture events. 203 // Device type for gesture events.
201 enum class GestureDeviceType : int { 204 enum class GestureDeviceType : int {
202 DEVICE_UNKNOWN = 0, 205 DEVICE_UNKNOWN = 0,
203 DEVICE_TOUCHPAD, 206 DEVICE_TOUCHPAD,
204 DEVICE_TOUCHSCREEN, 207 DEVICE_TOUCHSCREEN,
205 }; 208 };
206 209
207 } // namespace ui 210 } // namespace ui
208 211
209 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 212 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698