Chromium Code Reviews| 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 |