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

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

Issue 2486673008: Touchpad scroll latching enabled for Mac behind flag. (Closed)
Patch Set: mayPrecedeFling->precedeFling Created 4 years, 1 month 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 1f465b5051cd8f5d5218b4862d2c09276505f416..95b554ad2a4f6829e6c1cd35de9ed917ed20f9cd 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.h
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.h
@@ -80,7 +80,9 @@ class CONTENT_EXPORT MouseWheelEventQueue {
private:
void TryForwardNextEventToRenderer();
- void SendScrollEnd(blink::WebGestureEvent update_event, bool synthetic);
+ void SendScrollEnd(blink::WebGestureEvent update_event,
+ bool synthetic,
+ bool precede_fling);
tdresser 2016/11/29 19:06:54 Nit: It might be worth using enums for synthetic a
sahel 2016/11/30 19:41:54 Synthetic is a temporary variable, once scroll lat
tdresser 2016/11/30 19:42:36 Acknowledged.
void SendScrollBegin(const blink::WebGestureEvent& gesture_update,
bool synthetic);
@@ -103,6 +105,8 @@ class CONTENT_EXPORT MouseWheelEventQueue {
int64_t scroll_transaction_ms_;
blink::WebGestureDevice scrolling_device_;
+ blink::WebGestureEvent last_scroll_update_;
+
DISALLOW_COPY_AND_ASSIGN(MouseWheelEventQueue);
};

Powered by Google App Engine
This is Rietveld 408576698