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

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

Issue 712133003: Track whether a scroll sequence has been partially prevented (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Filter swipe explicitly Created 6 years, 1 month 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 290afaaf6a8d3eed60e4226b51823c8833371f19..5895a6b5e2b0297d9190447d5aef48a3b2f7a557 100644
--- a/ui/events/gesture_detection/touch_disposition_gesture_filter.h
+++ b/ui/events/gesture_detection/touch_disposition_gesture_filter.h
@@ -66,14 +66,18 @@ class GESTURE_DETECTION_EXPORT TouchDispositionGestureFilter {
// Returns true iff the gesture should be dropped.
bool Filter(EventType type);
+ // Whether an event of |type| has been filtered from the current sequence.
+ bool HasFilteredGestureType(EventType type) const;
+
private:
// True iff the sequence has had any touch down event consumed.
bool start_touch_consumed_;
// True iff the most recently ack'ed touch event was consumed.
bool current_touch_consumed_;
- // If the previous gesture of a given type was dropped instead of being
- // dispatched, its type will occur in this set.
+ // Indicates whether the previous gesture of a given type was dropped.
BitSet32 last_gesture_of_type_dropped_;
+ // Indicates whether *any* previous gesture of a given type was dropped.
+ BitSet32 any_gesture_of_type_dropped_;
};
void FilterAndSendPacket(const GestureEventDataPacket& packet);

Powered by Google App Engine
This is Rietveld 408576698