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

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

Issue 2047093002: Remove enable/disable wheel gestures setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@can_scroll_remove
Patch Set: Remove unused, uninitialized variable on mac causing occasional failure Created 4 years, 6 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.cc
diff --git a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
index 972f82110d73a015ce39dc197f40188cbcc25802..89a9f5a4e7f5d6058e2f753a26573d903d3f2222 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
@@ -33,12 +33,10 @@ class QueuedWebMouseWheelEvent : public MouseWheelEventWithLatencyInfo {
};
MouseWheelEventQueue::MouseWheelEventQueue(MouseWheelEventQueueClient* client,
- bool send_gestures,
int64_t scroll_transaction_ms)
: client_(client),
needs_scroll_begin_(true),
needs_scroll_end_(false),
- send_gestures_(send_gestures),
scroll_transaction_ms_(scroll_transaction_ms),
scrolling_device_(blink::WebGestureDeviceUninitialized) {
DCHECK(client);
@@ -81,7 +79,7 @@ void MouseWheelEventQueue::ProcessMouseWheelAck(
client_->OnMouseWheelEventAck(*event_sent_for_gesture_ack_, ack_result);
// If event wasn't consumed then generate a gesture scroll for it.
- if (send_gestures_ && ack_result != INPUT_EVENT_ACK_STATE_CONSUMED &&
+ if (ack_result != INPUT_EVENT_ACK_STATE_CONSUMED &&
event_sent_for_gesture_ack_->event.canScroll &&
event_sent_for_gesture_ack_->event.resendingPluginId == -1 &&
(scrolling_device_ == blink::WebGestureDeviceUninitialized ||

Powered by Google App Engine
This is Rietveld 408576698