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

Unified Diff: ui/events/event.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: More idiomatic ObjC 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
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index b17bc9916e0e6a8b66eb5c1f807ec805c8cb5917..84305a70882abf28ed829d6b87340c3a4ab7aba3 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -974,6 +974,7 @@ class EVENTS_EXPORT ScrollEvent : public MouseEvent {
float x_offset_ordinal() const { return x_offset_ordinal_; }
float y_offset_ordinal() const { return y_offset_ordinal_; }
int finger_count() const { return finger_count_; }
+ EventMomentumPhase momentum_phase() const { return momentum_phase_; }
private:
// Potential accelerated offsets.
@@ -984,6 +985,10 @@ class EVENTS_EXPORT ScrollEvent : public MouseEvent {
float y_offset_ordinal_;
// Number of fingers on the pad.
int finger_count_;
+
+ // For non-fling events, provides momentum information (e.g. for the case
+ // where the device provides continuous event updates during a fling).
+ EventMomentumPhase momentum_phase_;
};
class EVENTS_EXPORT GestureEvent : public LocatedEvent {

Powered by Google App Engine
This is Rietveld 408576698