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

Unified Diff: ui/events/event.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, 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
« no previous file with comments | « ui/events/cocoa/events_mac.mm ('k') | ui/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index 3d114535b2234482d0983c08ec1db5f8fd5a6cb5..1ee59b2c6271954851408696d03cb341bef980f9 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -984,6 +984,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_; }
+ int momentum_phase() const { return momentum_phase_; }
private:
// Potential accelerated offsets.
@@ -994,6 +995,11 @@ 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).
+ // Bitwise combination of EventMomentumPhase.
+ int momentum_phase_;
};
class EVENTS_EXPORT GestureEvent : public LocatedEvent {
« no previous file with comments | « ui/events/cocoa/events_mac.mm ('k') | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698