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

Unified Diff: content/browser/renderer_host/input/mouse_wheel_event_queue.h

Issue 2158423002: Wheel scroll latching enabled behind flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: The name of the flag modified to represent both wheel and touchpad scroll latching. Created 4 years, 5 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: content/browser/renderer_host/input/mouse_wheel_event_queue.h
diff --git a/content/browser/renderer_host/input/mouse_wheel_event_queue.h b/content/browser/renderer_host/input/mouse_wheel_event_queue.h
index a2722310b74b68c0c7e5c3f261851c65a969432d..02bc00fcd408949c42f74b2e0d3f5ce7c9de3967 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.h
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.h
@@ -19,7 +19,7 @@ namespace content {
// ScrollUpdate was sent for wheel based gesture scrolls.
// Set the default wheel transaction to 0ms until
// crbug.com/526463 is fully implemented.
tdresser 2016/07/25 20:37:29 Update comment.
sahel 2016/07/25 21:28:35 Done.
-const int64_t kDefaultWheelScrollTransactionMs = 0; // 100;
+const int64_t kDefaultWheelScrollLatchingTransactionMs = 100;
class QueuedWebMouseWheelEvent;
@@ -47,7 +47,7 @@ class CONTENT_EXPORT MouseWheelEventQueue {
// |scroll_transaction_ms| is the duration in which the
// ScrollEnd should be sent after a ScrollUpdate.
MouseWheelEventQueue(MouseWheelEventQueueClient* client,
- int64_t scroll_transaction_ms);
+ bool touchpad_wheel_scroll_latching);
~MouseWheelEventQueue();
@@ -97,6 +97,9 @@ class CONTENT_EXPORT MouseWheelEventQueue {
// GSB has been sent in the past.
bool needs_scroll_end_;
+ // True if the touchpad and wheel scroll latching is enabled.
+ bool touchpad_wheel_scroll_latching_;
+
int64_t scroll_transaction_ms_;
blink::WebGestureDevice scrolling_device_;

Powered by Google App Engine
This is Rietveld 408576698