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

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

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/event_with_callback.cc ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/input_handler_proxy.h
diff --git a/ui/events/blink/input_handler_proxy.h b/ui/events/blink/input_handler_proxy.h
index 49daedf795f4f4b59ef09fb89ace280a7958ad41..0db37a14b59179c76d85da12d05f0368948bf66e 100644
--- a/ui/events/blink/input_handler_proxy.h
+++ b/ui/events/blink/input_handler_proxy.h
@@ -71,14 +71,13 @@ class InputHandlerProxy
DROP_EVENT
};
using EventDispositionCallback =
- base::Callback<void(EventDisposition,
- WebScopedInputEvent WebInputEvent,
- const LatencyInfo&,
- std::unique_ptr<ui::DidOverscrollParams>)>;
- void HandleInputEventWithLatencyInfo(
- WebScopedInputEvent event,
- const LatencyInfo& latency_info,
- const EventDispositionCallback& callback);
+ base::OnceCallback<void(EventDisposition,
+ WebScopedInputEvent WebInputEvent,
+ const LatencyInfo&,
+ std::unique_ptr<ui::DidOverscrollParams>)>;
+ void HandleInputEventWithLatencyInfo(WebScopedInputEvent event,
+ const LatencyInfo& latency_info,
+ EventDispositionCallback callback);
EventDisposition HandleInputEvent(const blink::WebInputEvent& event);
// cc::InputHandlerClient implementation.
« no previous file with comments | « ui/events/blink/event_with_callback.cc ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698