1 // Copyright (c) 2013 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_TOUCH_SMOOTH_SCROLL_GESTURE_
6 #define CONTENT_BROWSER_RENDERER_HOST_TOUCH_SMOOTH_SCROLL_GESTURE_
9 #include "content/browser/renderer_host/smooth_scroll_calculator.h"
10 #include "content/port/browser/smooth_scroll_gesture.h"
11 #include "ui/gfx/point.h"
19 class TouchSmoothScrollGestureAura
: public SmoothScrollGesture
{
21 TouchSmoothScrollGestureAura(bool scroll_down
,
25 aura::Window
* window
);
27 virtual ~TouchSmoothScrollGestureAura();
29 // Overridden from SmoothScrollGesture.
30 virtual bool ForwardInputEvents(base::TimeTicks now
,
31 RenderWidgetHost
* host
) OVERRIDE
;
34 int pixels_to_scroll_
;
37 aura::Window
* window_
;
38 SmoothScrollCalculator smooth_scroll_calculator_
;
40 DISALLOW_COPY_AND_ASSIGN(TouchSmoothScrollGestureAura
);
43 } // namespace content
45 #endif // CONTENT_BROWSER_RENDERER_HOST_TOUCH_SMOOTH_SCROLL_GESTURE_