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

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

Issue 680413006: Re-enable Eager Gesture Recognition on Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix out of order ack problem. 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/gesture_event_data_packet.h
diff --git a/ui/events/gesture_detection/gesture_event_data_packet.h b/ui/events/gesture_detection/gesture_event_data_packet.h
index 9b115de9ca77b29c2210b4933cd9a78acbb69198..9173d17594ca04d6150a458895c7892ca742fdf7 100644
--- a/ui/events/gesture_detection/gesture_event_data_packet.h
+++ b/ui/events/gesture_detection/gesture_event_data_packet.h
@@ -48,6 +48,12 @@ class GESTURE_DETECTION_EXPORT GestureEventDataPacket {
const gfx::PointF& touch_location() const { return touch_location_; }
const gfx::PointF& raw_touch_location() const { return raw_touch_location_; }
+ // This packet was generated based on invalid touch events, so we
+ // should ignore it.
+ void mark_to_ignore() { marked_to_ignore_ = true; }
+ // Check if this packet should be ignored.
jdduke (slow) 2014/11/20 19:49:16 No need for this getter comment.
tdresser 2014/11/21 13:25:22 Done.
+ bool marked_to_ignore() { return marked_to_ignore_; }
+
private:
GestureEventDataPacket(base::TimeTicks timestamp,
GestureSource source,
@@ -60,6 +66,7 @@ class GESTURE_DETECTION_EXPORT GestureEventDataPacket {
gfx::PointF touch_location_;
gfx::PointF raw_touch_location_;
GestureSource gesture_source_;
+ bool marked_to_ignore_;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698