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

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

Issue 2621303004: Keep track of coalesced events in main thread event queue (Closed)
Patch Set: Rebase Created 3 years, 11 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
« no previous file with comments | « content/renderer/input/input_event_filter.h ('k') | content/renderer/input/input_event_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 160e083394edd83ad5cbac6a66e23900cc49296a..af4cb4b5de877545ac904288dee4c37accc7cd87 100644
--- a/content/renderer/input/input_event_filter.cc
+++ b/content/renderer/input/input_event_filter.cc
@@ -212,8 +212,8 @@ void InputEventFilter::ForwardToHandler(const IPC::Message& message,
return;
blink::WebScopedInputEvent event =
ui::WebInputEventTraits::Clone(*std::get<0>(params));
- ui::LatencyInfo latency_info = std::get<1>(params);
- InputEventDispatchType dispatch_type = std::get<2>(params);
+ ui::LatencyInfo latency_info = std::get<2>(params);
+ InputEventDispatchType dispatch_type = std::get<3>(params);
DCHECK(event);
DCHECK(dispatch_type == DISPATCH_TYPE_BLOCKING ||
@@ -287,13 +287,14 @@ void InputEventFilter::SendMessageOnIOThread(
void InputEventFilter::HandleEventOnMainThread(
int routing_id,
- const blink::WebInputEvent* event,
+ const blink::WebCoalescedInputEvent* event,
const ui::LatencyInfo& latency_info,
InputEventDispatchType dispatch_type) {
TRACE_EVENT_INSTANT0("input", "InputEventFilter::HandlEventOnMainThread",
TRACE_EVENT_SCOPE_THREAD);
- IPC::Message new_msg =
- InputMsg_HandleInputEvent(routing_id, event, latency_info, dispatch_type);
+ IPC::Message new_msg = InputMsg_HandleInputEvent(
+ routing_id, &event->event(), event->getCoalescedEventsPointers(),
+ latency_info, dispatch_type);
main_listener_.Run(new_msg);
}
« no previous file with comments | « content/renderer/input/input_event_filter.h ('k') | content/renderer/input/input_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698