OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_ | |
6 #define CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_ | |
7 | |
8 #include "base/time.h" | |
9 #include "content/port/browser/smooth_scroll_gesture.h" | |
10 | |
11 namespace content { | |
12 | |
13 class RenderWidgetHost; | |
14 | |
15 class BasicMouseWheelSmoothScrollGesture : public SmoothScrollGesture { | |
16 public: | |
17 BasicMouseWheelSmoothScrollGesture(bool scroll_down, int pixels_to_scroll, | |
18 int mouse_event_x, int mouse_event_y); | |
19 | |
20 virtual bool ForwardInputEvents(base::TimeTicks now, | |
21 RenderWidgetHost* host) OVERRIDE; | |
22 private: | |
23 virtual ~BasicMouseWheelSmoothScrollGesture(); | |
24 | |
25 bool scroll_down_; | |
26 int pixels_scrolled_; | |
27 int pixels_to_scroll_; | |
28 int mouse_event_x_; | |
29 int mouse_event_y_; | |
30 base::TimeTicks last_tick_time_; | |
31 }; | |
32 | |
33 | |
piman
2012/12/01 19:04:50
nit: that's a lot of vertical whitespace!
Ian Vollick
2012/12/01 21:28:02
Whoa! I don't know what happened there. Fixed.
| |
34 | |
35 } // namespace content | |
36 | |
37 #endif | |
OLD | NEW |