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

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

Issue 2625453002: Touchpad and wheel scroll latching for ChromeOS behind flag. (Closed)
Patch Set: ScrollEnd gets called when the fling ends before hitting a scroll extent. Created 3 years, 11 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.h
diff --git a/ui/events/blink/input_handler_proxy.h b/ui/events/blink/input_handler_proxy.h
index d73ff9c3746f0768d9f393ebd5174690f216c20f..0aab864cd131331bb1f9e686108cf6b7564a3f85 100644
--- a/ui/events/blink/input_handler_proxy.h
+++ b/ui/events/blink/input_handler_proxy.h
@@ -62,6 +62,9 @@ class InputHandlerProxy
}
void set_smooth_scroll_enabled(bool value) { smooth_scroll_enabled_ = value; }
+ void set_touchpad_and_wheel_scroll_latching_enabled(bool value) {
+ touchpad_and_wheel_scroll_latching_enabled_ = value;
+ }
enum EventDisposition {
DID_HANDLE,
@@ -127,7 +130,7 @@ class InputHandlerProxy
// Helper functions for handling more complicated input events.
EventDisposition HandleMouseWheel(
const blink::WebMouseWheelEvent& event);
- EventDisposition ScrollByMouseWheel(
+ EventDisposition FlingScrollByMouseWheel(
const blink::WebMouseWheelEvent& event,
cc::EventListenerProperties listener_properties);
EventDisposition HandleGestureScrollBegin(
@@ -235,6 +238,7 @@ class InputHandlerProxy
bool smooth_scroll_enabled_;
bool uma_latency_reporting_enabled_;
+ bool touchpad_and_wheel_scroll_latching_enabled_;
// The merged result of the last touch start with previous touch starts.
// This value will get returned for subsequent TouchMove events to allow

Powered by Google App Engine
This is Rietveld 408576698