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

Unified Diff: ui/events/event_constants.h

Issue 2193153002: MacViews: Send Mac scrollWheel NSEvents as ui::ET_SCROLL (ui::ScrollEvent). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-ScrollLayers
Patch Set: NSDictionary subscripting 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/event_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_constants.h
diff --git a/ui/events/event_constants.h b/ui/events/event_constants.h
index 840631bc250719da17c7ca53b8bfa995c8f2f4de..c7736622783d2335da227a73f470beeaa3012a38 100644
--- a/ui/events/event_constants.h
+++ b/ui/events/event_constants.h
@@ -164,6 +164,25 @@ enum EventPhase {
EP_POSTDISPATCH
};
+// Momentum phase information used for a ScrollEvent.
+enum class EventMomentumPhase {
+ // Event is a non-momentum update to an event stream already begun.
+ NONE,
+
+ // Event is the beginning of an event stream that may result in momentum.
+ MAY_BEGIN,
+
+ // Event is an update while in a momentum phase. A "begin" event for the
+ // momentum phase portion of an event stream uses this also, but the scroll
+ // offsets will be zero.
+ INERTIAL_UPDATE,
+
+ // Event marks the end of the current event stream. Note that this is also set
+ // for events that are not a "stream", but indicate both the start and end of
+ // the event (e.g. a mouse wheel tick).
+ END,
+};
+
// 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698