Index: content/renderer/input/input_handler_wrapper.cc |
diff --git a/content/renderer/input/input_handler_wrapper.cc b/content/renderer/input/input_handler_wrapper.cc |
index 77416f37212dc7b1a95a2b2b95c931e2f4872ed1..7678f9337c1c6c72ce3619d66b4ef7ee713a3971 100644 |
--- a/content/renderer/input/input_handler_wrapper.cc |
+++ b/content/renderer/input/input_handler_wrapper.cc |
@@ -20,7 +20,8 @@ |
const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, |
const base::WeakPtr<cc::InputHandler>& input_handler, |
const base::WeakPtr<RenderViewImpl>& render_view_impl, |
- bool enable_smooth_scrolling) |
+ bool enable_smooth_scrolling, |
+ bool enable_wheel_gestures) |
: input_handler_manager_(input_handler_manager), |
routing_id_(routing_id), |
input_handler_proxy_(input_handler.get(), this), |
@@ -28,6 +29,8 @@ |
render_view_impl_(render_view_impl) { |
DCHECK(input_handler); |
input_handler_proxy_.set_smooth_scroll_enabled(enable_smooth_scrolling); |
+ input_handler_proxy_.set_use_gesture_events_for_mouse_wheel( |
+ enable_wheel_gestures); |
} |
InputHandlerWrapper::~InputHandlerWrapper() { |