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

Unified Diff: ui/events/gesture_detection/touch_disposition_gesture_filter.h

Issue 277373002: Pass location with gestures created in TouchDispositionGestureFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jdduke's comments. Created 6 years, 7 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/gesture_detection/touch_disposition_gesture_filter.h
diff --git a/ui/events/gesture_detection/touch_disposition_gesture_filter.h b/ui/events/gesture_detection/touch_disposition_gesture_filter.h
index fc493015c226ab84ec6691a20a9e82cbc5a6943c..e3ffd2b3698b173f8504fe4de2466f1bc4ac1aa5 100644
--- a/ui/events/gesture_detection/touch_disposition_gesture_filter.h
+++ b/ui/events/gesture_detection/touch_disposition_gesture_filter.h
@@ -78,9 +78,9 @@ class GESTURE_DETECTION_EXPORT TouchDispositionGestureFilter {
void FilterAndSendPacket(const GestureEventDataPacket& packet);
void SendGesture(const GestureEventData& gesture);
- void CancelTapIfNecessary(const base::TimeTicks& timestamp);
- void CancelFlingIfNecessary(const base::TimeTicks& timestamp);
- void EndScrollIfNecessary(const base::TimeTicks& timestamp);
+ void CancelTapIfNecessary();
+ void CancelFlingIfNecessary();
+ void EndScrollIfNecessary();
void PopGestureSequence();
GestureSequence& Head();
GestureSequence& Tail();
@@ -98,6 +98,8 @@ class GESTURE_DETECTION_EXPORT TouchDispositionGestureFilter {
bool needs_show_press_event_;
bool needs_fling_ending_event_;
bool needs_scroll_ending_event_;
+ // Only valid in the scope of |FilterAndSendPacket()|.
+ const GestureEventDataPacket* packet_being_sent_;
DISALLOW_COPY_AND_ASSIGN(TouchDispositionGestureFilter);
};

Powered by Google App Engine
This is Rietveld 408576698