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

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

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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/gesture_event_data_packet.cc
diff --git a/ui/events/gesture_detection/gesture_event_data_packet.cc b/ui/events/gesture_detection/gesture_event_data_packet.cc
index cf251bc632af044d0b47da965b1ac473def5fb9e..a24e4ede3ac6ef838419f3266543c644fb72a27f 100644
--- a/ui/events/gesture_detection/gesture_event_data_packet.cc
+++ b/ui/events/gesture_detection/gesture_event_data_packet.cc
@@ -82,8 +82,10 @@ GestureEventDataPacket& GestureEventDataPacket::operator=(
return *this;
}
-void GestureEventDataPacket::Push(const GestureEventData& gesture) {
- DCHECK_NE(ET_UNKNOWN, gesture.type());
+void GestureEventDataPacket::Push(const GestureEventData& original_gesture) {
+ DCHECK_NE(ET_UNKNOWN, original_gesture.type());
+ GestureEventData gesture(original_gesture);
+ gesture.unique_touch_event_id = unique_touch_event_id_;
gestures_->push_back(gesture);
}
@@ -99,7 +101,8 @@ GestureEventDataPacket GestureEventDataPacket::FromTouchTimeout(
const GestureEventData& gesture) {
GestureEventDataPacket packet(gesture.time, TOUCH_TIMEOUT,
gfx::PointF(gesture.x, gesture.y),
- gfx::PointF(gesture.raw_x, gesture.raw_y), 0);
+ gfx::PointF(gesture.raw_x, gesture.raw_y),
+ gesture.unique_touch_event_id);
packet.Push(gesture);
return packet;
}

Powered by Google App Engine
This is Rietveld 408576698