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

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

Issue 2917713002: Teach input_handler_proxy about once callbacks. (Closed)
Patch Set: Created 3 years, 7 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 | « ui/events/blink/input_handler_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1ed598061c2dca8f038386555d8b46bf85c0df09..7ef9ca6fd618ec2a08751eaa9c19253ded7b3a00 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -297,7 +297,7 @@ void InputHandlerProxy::WillShutdown() {
void InputHandlerProxy::HandleInputEventWithLatencyInfo(
WebScopedInputEvent event,
const LatencyInfo& latency_info,
- const EventDispositionCallback& callback) {
+ EventDispositionCallback callback) {
DCHECK(input_handler_);
if (uma_latency_reporting_enabled_)
@@ -310,7 +310,8 @@ void InputHandlerProxy::HandleInputEventWithLatencyInfo(
std::unique_ptr<EventWithCallback> event_with_callback =
base::MakeUnique<EventWithCallback>(std::move(event), latency_info,
- tick_clock_->NowTicks(), callback);
+ tick_clock_->NowTicks(),
+ std::move(callback));
// Note: Other input can race ahead of gesture input as they don't have to go
// through the queue, but we believe it's OK to do so.
« no previous file with comments | « ui/events/blink/input_handler_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698