Save errno for logging before potentially overwriting it.
[chromium-blink-merge.git] / content / browser / renderer_host / touch_smooth_scroll_gesture_aura.h
blobc50a44072de61ce5464e1fedc83b0b4eed4ddd9f
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_
8 #include "base/time.h"
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"
13 namespace aura {
14 class Window;
17 namespace content {
19 class TouchSmoothScrollGestureAura : public SmoothScrollGesture {
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();
29 // Overridden from SmoothScrollGesture.
30 virtual bool ForwardInputEvents(base::TimeTicks now,
31 RenderWidgetHost* host) OVERRIDE;
33 bool scroll_down_;
34 int pixels_to_scroll_;
35 int pixels_scrolled_;
36 gfx::Point location_;
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_