1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_
6 #define CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_
9 #include "content/browser/renderer_host/smooth_scroll_calculator.h"
10 #include "content/port/browser/smooth_scroll_gesture.h"
14 class RenderWidgetHost
;
16 class BasicMouseWheelSmoothScrollGesture
: public SmoothScrollGesture
{
18 BasicMouseWheelSmoothScrollGesture(bool scroll_down
, int pixels_to_scroll
,
19 int mouse_event_x
, int mouse_event_y
);
21 virtual bool ForwardInputEvents(base::TimeTicks now
,
22 RenderWidgetHost
* host
) OVERRIDE
;
24 virtual ~BasicMouseWheelSmoothScrollGesture();
26 SmoothScrollCalculator smooth_scroll_calculator_
;
30 int pixels_to_scroll_
;
35 } // namespace content
37 #endif // CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_