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

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

Issue 1631963002: Plumb firing passive event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners_2a
Patch Set: Disable integration test on MacOS it still needs more work for wheel gesture events Created 4 years, 10 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 | « content/renderer/render_widget_unittest.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 e96b31bf40b918d39423a66de100a173a98a902a..86f9f5344fa43b47934228c071dc0e540d386758 100644
--- a/ui/events/blink/input_handler_proxy.h
+++ b/ui/events/blink/input_handler_proxy.h
@@ -46,10 +46,14 @@ class InputHandlerProxy
}
void set_smooth_scroll_enabled(bool value) { smooth_scroll_enabled_ = value; }
+ void set_use_gesture_events_for_mouse_wheel(bool value) {
+ use_gesture_events_for_mouse_wheel_ = value;
+ }
enum EventDisposition {
DID_HANDLE,
DID_NOT_HANDLE,
+ NON_BLOCKING,
Wez 2016/02/16 21:21:04 Is there a more descriptive name we can use for th
dtapuska 2016/02/16 21:49:25 Renamed NON_BLOCKING to DID_HANDLE_NON_BLOCKING.
DROP_EVENT
};
EventDisposition HandleInputEventWithLatencyInfo(
@@ -91,6 +95,7 @@ class InputHandlerProxy
// Helper functions for handling more complicated input events.
EventDisposition HandleMouseWheel(
const blink::WebMouseWheelEvent& event);
+ EventDisposition ScrollByMouseWheel(const blink::WebMouseWheelEvent& event);
EventDisposition HandleGestureScrollBegin(
const blink::WebGestureEvent& event);
EventDisposition HandleGestureScrollUpdate(
@@ -99,8 +104,9 @@ class InputHandlerProxy
const blink::WebGestureEvent& event);
EventDisposition HandleGestureFlingStart(
const blink::WebGestureEvent& event);
- EventDisposition HandleTouchStart(
- const blink::WebTouchEvent& event);
+ EventDisposition HandleTouchStart(const blink::WebTouchEvent& event);
+ EventDisposition HandleTouchMove(const blink::WebTouchEvent& event);
+ EventDisposition HandleTouchEnd(const blink::WebTouchEvent& event);
// Returns true if the event should be suppressed due to to an active,
// boost-enabled fling, in which case further processing should cease.
@@ -184,8 +190,13 @@ class InputHandlerProxy
scoped_ptr<InputScrollElasticityController> scroll_elasticity_controller_;
bool smooth_scroll_enabled_;
-
bool uma_latency_reporting_enabled_;
+ bool use_gesture_events_for_mouse_wheel_;
+
+ // The merged result of the last touch start with previous touch starts.
+ // This value will get returned for subsequent TouchMove events to allow
+ // passive events not to block scrolling.
+ int32_t touch_start_result_;
base::TimeTicks last_fling_animate_time_;
« no previous file with comments | « content/renderer/render_widget_unittest.cc ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698