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

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

Issue 2341873002: Handle touchpad flings with passive event listeners on compositor thread. (Closed)
Patch Set: Add dcheck for blimp Created 4 years, 3 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.cc ('k') | ui/events/blink/input_handler_proxy_unittest.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_client.h
diff --git a/ui/events/blink/input_handler_proxy_client.h b/ui/events/blink/input_handler_proxy_client.h
index ee1b2600962fd6794e505a2f1d204abbe4d6c02b..2e10430f8212e405df68a8a8720cbc2de70529c8 100644
--- a/ui/events/blink/input_handler_proxy_client.h
+++ b/ui/events/blink/input_handler_proxy_client.h
@@ -5,6 +5,8 @@
#ifndef UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_
#define UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_
+#include "ui/events/blink/scoped_web_input_event.h"
+
namespace blink {
class WebGestureCurve;
struct WebActiveWheelFlingParameters;
@@ -25,6 +27,14 @@ class InputHandlerProxyClient {
virtual void TransferActiveWheelFlingAnimation(
const blink::WebActiveWheelFlingParameters& params) = 0;
+ // Dispatch a non blocking event to the main thread. This is used when a
+ // gesture fling from a touchpad is processed and the target only has
+ // passive event listeners. If the target has blocking event listeners
+ // |TransferActiveWheelFlingAnimation| will be used instead.
+ virtual void DispatchNonBlockingEventToMainThread(
+ ui::ScopedWebInputEvent event,
+ const ui::LatencyInfo& latency_info) = 0;
+
// Creates a new fling animation curve instance for device |device_source|
// with |velocity| and already scrolled |cumulative_scroll| pixels.
virtual blink::WebGestureCurve* CreateFlingAnimationCurve(
« no previous file with comments | « ui/events/blink/input_handler_proxy.cc ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698