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

Unified Diff: content/renderer/input/input_event_filter.cc

Issue 999423003: Set the unique_event_id when converting from TouchEvent to WebTouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: content/renderer/input/input_event_filter.cc
diff --git a/content/renderer/input/input_event_filter.cc b/content/renderer/input/input_event_filter.cc
index 180be389354052d41f59adf08e1000f71da72ef9..7fde873e4cb02c14d7402d8371059aee9683815d 100644
--- a/content/renderer/input/input_event_filter.cc
+++ b/content/renderer/input/input_event_filter.cc
@@ -181,6 +181,13 @@ void InputEventFilter::ForwardToHandler(const IPC::Message& message) {
ack.state = ack_state;
ack.latency = latency_info;
ack.overscroll = overscroll_params.Pass();
+ if (WebInputEvent::isTouchEventType(ack.type)) {
+ const blink::WebTouchEvent& touch =
+ static_cast<const blink::WebTouchEvent&>(*event);
+ DCHECK_NE(touch.uniqueTouchEventId, 0UL);
+ ack.unique_touch_event_id = touch.uniqueTouchEventId;
+ }
+
SendMessage(scoped_ptr<IPC::Message>(
new InputHostMsg_HandleInputEvent_ACK(routing_id, ack)));
}

Powered by Google App Engine
This is Rietveld 408576698