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

Unified Diff: ui/events/blink/blink_event_util.cc

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumbed aura gestures, fixed unittests. 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/blink/blink_event_util.cc
diff --git a/ui/events/blink/blink_event_util.cc b/ui/events/blink/blink_event_util.cc
index 2af8b70bab0fc92d3a7a1ffcf2138b884679c1fc..1fdca552c1802f53ec68c1865ffb76faebf08d57 100644
--- a/ui/events/blink/blink_event_util.cc
+++ b/ui/events/blink/blink_event_util.cc
@@ -226,7 +226,8 @@ WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details,
base::TimeDelta timestamp,
const gfx::PointF& location,
const gfx::PointF& raw_location,
- int flags) {
+ int flags,
+ uint32_t unique_touch_event_id) {
WebGestureEvent gesture;
gesture.timeStampSeconds = timestamp.InSecondsF();
gesture.x = gfx::ToFlooredInt(location.x());
@@ -248,6 +249,8 @@ WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details,
break;
}
+ gesture.uniqueTouchEventId = unique_touch_event_id;
+
switch (details.type()) {
case ET_GESTURE_SHOW_PRESS:
gesture.type = WebInputEvent::GestureShowPress;
@@ -350,7 +353,8 @@ WebGestureEvent CreateWebGestureEventFromGestureEventData(
const GestureEventData& data) {
return CreateWebGestureEvent(data.details, data.time - base::TimeTicks(),
gfx::PointF(data.x, data.y),
- gfx::PointF(data.raw_x, data.raw_y), data.flags);
+ gfx::PointF(data.raw_x, data.raw_y), data.flags,
+ data.unique_touch_event_id);
}
std::unique_ptr<blink::WebInputEvent> ScaleWebInputEvent(

Powered by Google App Engine
This is Rietveld 408576698