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

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

Issue 1680613002: Adding momentum/overscroll to views:: ScrollViews Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Tableview layout. aaaand I think we are done 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
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/event_utils.h » ('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 (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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 // Phase of the event dispatch. 154 // Phase of the event dispatch.
155 enum EventPhase { 155 enum EventPhase {
156 EP_PREDISPATCH, 156 EP_PREDISPATCH,
157 EP_PRETARGET, 157 EP_PRETARGET,
158 EP_TARGET, 158 EP_TARGET,
159 EP_POSTTARGET, 159 EP_POSTTARGET,
160 EP_POSTDISPATCH 160 EP_POSTDISPATCH
161 }; 161 };
162 162
163 enum EventMomentumPhase {
164 // Event stream can not result in momentum, or is a non-momentum update to an
165 // event stream already begun.
166 EM_PHASE_NONE = 0,
167
168 // Event is the beginning of an event stream that may result in momentum.
169 EM_PHASE_MAY_BEGIN = 0x1,
170
171 // Event is an update while in a momentum phase.
172 EM_PHASE_INERTIAL_UPDATE = 0x2,
173
174 // Event marks the end of the current event stream.
175 EM_PHASE_END = 0x4,
176 };
177
163 // Device ID for Touch and Key Events. 178 // Device ID for Touch and Key Events.
164 enum EventDeviceId { 179 enum EventDeviceId {
165 ED_UNKNOWN_DEVICE = -1 180 ED_UNKNOWN_DEVICE = -1
166 }; 181 };
167 182
168 // Pointing device type. 183 // Pointing device type.
169 enum class EventPointerType : int { 184 enum class EventPointerType : int {
170 POINTER_TYPE_UNKNOWN = 0, 185 POINTER_TYPE_UNKNOWN = 0,
171 POINTER_TYPE_MOUSE, 186 POINTER_TYPE_MOUSE,
172 POINTER_TYPE_PEN, 187 POINTER_TYPE_PEN,
173 POINTER_TYPE_TOUCH, 188 POINTER_TYPE_TOUCH,
174 }; 189 };
175 190
176 // Device type for gesture events. 191 // Device type for gesture events.
177 enum class GestureDeviceType : int { 192 enum class GestureDeviceType : int {
178 DEVICE_UNKNOWN = 0, 193 DEVICE_UNKNOWN = 0,
179 DEVICE_TOUCHPAD, 194 DEVICE_TOUCHPAD,
180 DEVICE_TOUCHSCREEN, 195 DEVICE_TOUCHSCREEN,
181 }; 196 };
182 197
183 } // namespace ui 198 } // namespace ui
184 199
185 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 200 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/event_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698