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

Unified Diff: ui/events/event_constants.h

Issue 2189583004: [not for review - epic CL] Adding Elastic+Momentum+Layered scrolling to views::ScrollView Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Combined rebase Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/event_utils.h » ('j') | ui/views/controls/scroll_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698