- add sources.
[platform/framework/web/crosswalk.git] / src / content / browser / renderer_host / touch_smooth_scroll_gesture_aura.h
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.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TOUCH_SMOOTH_SCROLL_GESTURE_
6 #define CONTENT_BROWSER_RENDERER_HOST_TOUCH_SMOOTH_SCROLL_GESTURE_
7
8 #include "base/time/time.h"
9 #include "content/browser/renderer_host/synthetic_gesture_calculator.h"
10 #include "content/port/browser/synthetic_gesture.h"
11 #include "ui/gfx/point.h"
12
13 namespace aura {
14 class Window;
15 }
16
17 namespace content {
18
19 class TouchSmoothScrollGestureAura : public SyntheticGesture {
20  public:
21   TouchSmoothScrollGestureAura(bool scroll_down,
22                                int pixels_to_scroll,
23                                int mouse_event_x,
24                                int mouse_event_y,
25                                aura::Window* window);
26  private:
27   virtual ~TouchSmoothScrollGestureAura();
28
29   // Overridden from SmoothScrollGesture.
30   virtual bool ForwardInputEvents(base::TimeTicks now,
31                                   RenderWidgetHost* host) OVERRIDE;
32
33   bool scroll_down_;
34   int pixels_to_scroll_;
35   int pixels_scrolled_;
36   gfx::Point location_;
37   aura::Window* window_;
38   SyntheticGestureCalculator synthetic_gesture_calculator_;
39
40   DISALLOW_COPY_AND_ASSIGN(TouchSmoothScrollGestureAura);
41 };
42
43 }  // namespace content
44
45 #endif  // CONTENT_BROWSER_RENDERER_HOST_TOUCH_SMOOTH_SCROLL_GESTURE_