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

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: 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
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..bd68cf951a0a43bf9c8dcccf622d66786b00b8e9 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;
+ // Gesture flings from touchpads are processed via a gesture curve
+ // animation on the compositor thread, and these events generate MouseWheel
+ // events which need to propagate to the main thread. If there are blocking
+ // event listeners the entire fling animation is moved to the main thread
+ // via |TransferActiveWheelFlingAnimation|.
tdresser 2016/09/14 18:58:08 This comment doesn't obviously connect with the me
dtapuska 2016/09/15 20:43:04 Done.
+ virtual void DispatchNonBlockingEventToMainThread(
+ ui::ScopedWebInputEvent event) = 0;
+
// Creates a new fling animation curve instance for device |device_source|
// with |velocity| and already scrolled |cumulative_scroll| pixels.
virtual blink::WebGestureCurve* CreateFlingAnimationCurve(
« content/renderer/input/input_event_filter.cc ('K') | « ui/events/blink/input_handler_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698