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

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

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent Created 4 years, 1 month 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/input_handler_proxy.cc
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
index 40d1415d9e9ec0a9493b194486da549f9aed5a8c..9357cd95a4ab44ec7b74c0eecc8321f7fd68114c 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -262,13 +262,13 @@ void InputHandlerProxy::WillShutdown() {
}
void InputHandlerProxy::HandleInputEventWithLatencyInfo(
- ScopedWebInputEvent event,
+ blink::ScopedCoalescedWebInputEvent coalescedEvent,
const LatencyInfo& latency_info,
const EventDispositionCallback& callback) {
DCHECK(input_handler_);
if (uma_latency_reporting_enabled_)
- ReportInputEventLatencyUma(*event, latency_info);
+ ReportInputEventLatencyUma(coalescedEvent->event(), latency_info);
TRACE_EVENT_WITH_FLOW1("input,benchmark", "LatencyInfo.Flow",
TRACE_ID_DONT_MANGLE(latency_info.trace_id()),
@@ -281,7 +281,8 @@ void InputHandlerProxy::HandleInputEventWithLatencyInfo(
&monitored_latency_info);
current_overscroll_params_.reset();
- InputHandlerProxy::EventDisposition disposition = HandleInputEvent(*event);
+ InputHandlerProxy::EventDisposition disposition =
+ HandleInputEvent(coalescedEvent->event());
callback.Run(disposition, std::move(event), monitored_latency_info,
std::move(current_overscroll_params_));
}

Powered by Google App Engine
This is Rietveld 408576698