Chromium Code Reviews| Index: ui/events/event_constants.h |
| diff --git a/ui/events/event_constants.h b/ui/events/event_constants.h |
| index 664e837f271193af2b8d07197d3a0cec2fcc3866..2061d5429358c828126d6a71e26d6cdfa9a6e6a2 100644 |
| --- a/ui/events/event_constants.h |
| +++ b/ui/events/event_constants.h |
| @@ -160,6 +160,21 @@ enum EventPhase { |
| EP_POSTDISPATCH |
| }; |
| +enum EventMomentumPhase { |
| + // Event stream can not result in momentum, or is a non-momentum update to an |
| + // event stream already begun. |
| + EM_PHASE_NONE = 0, |
| + |
| + // Event is the beginning of an event stream that may result in momentum. |
| + EM_PHASE_MAY_BEGIN = 0x1, |
|
sky
2016/08/02 17:29:45
Use 1 << 0, 1 << 1 .... to be consistent with Even
tapted
2016/08/03 00:18:58
I'll update http://crrev.com/2193153002 with this
|
| + |
| + // Event is an update while in a momentum phase. |
| + EM_PHASE_INERTIAL_UPDATE = 0x2, |
| + |
| + // Event marks the end of the current event stream. |
| + EM_PHASE_END = 0x4, |
| +}; |
| + |
| // Device ID for Touch and Key Events. |
| enum EventDeviceId { |
| ED_UNKNOWN_DEVICE = -1 |