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

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, 9 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 6c78d57b0213ecbfbc1ce152e3052783e466807c..818fae78fbef70ddc261e5c4a17dc75d13d4cd1f 100644
--- a/content/renderer/input/input_event_filter.cc
+++ b/content/renderer/input/input_event_filter.cc
@@ -182,6 +182,12 @@ 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);
+ 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