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

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

Issue 680413006: Re-enable Eager Gesture Recognition on Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address sadrul's comments. Created 6 years 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 5895a6b5e2b0297d9190447d5aef48a3b2f7a557..d2d8583791d49548d24ee73b0e989bf039dbfe6f 100644
--- a/ui/events/gesture_detection/touch_disposition_gesture_filter.h
+++ b/ui/events/gesture_detection/touch_disposition_gesture_filter.h
@@ -42,8 +42,10 @@ class GESTURE_DETECTION_EXPORT TouchDispositionGestureFilter {
};
PacketResult OnGesturePacket(const GestureEventDataPacket& packet);
- // To be called upon receipt of *all* touch event acks.
- void OnTouchEventAck(bool event_consumed);
+ // One of |OnTouchEventAckForQueue*| must be called upon receipt of
+ // every touch event ack.
+ void OnTouchEventAckForQueueFront(bool event_consumed);
+ void OnTouchEventAckForQueueBack(bool event_consumed);
// Whether there are any active gesture sequences still queued in the filter.
bool IsEmpty() const;
@@ -87,6 +89,7 @@ class GESTURE_DETECTION_EXPORT TouchDispositionGestureFilter {
void CancelFlingIfNecessary(const GestureEventDataPacket& packet);
void EndScrollIfNecessary(const GestureEventDataPacket& packet);
void PopGestureSequence();
+ void SendAckedEvents();
GestureSequence& Head();
GestureSequence& Tail();

Powered by Google App Engine
This is Rietveld 408576698