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

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: Mouse_wheel_event_queue.cc polished. 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..a9207fd08dfd5b94e65559206b10f61e42287ce9 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 may_precede_fling);
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