Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Side by Side Diff: content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h

Issue 62443007: Replace old with new synthetic gesture framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward declare SyntheticGestureController. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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/time.h"
9 #include "content/browser/renderer_host/synthetic_gesture_calculator.h"
10 #include "content/port/browser/synthetic_gesture.h"
11
12 namespace content {
13
14 class RenderWidgetHost;
15
16 class BasicMouseWheelSmoothScrollGesture : public SyntheticGesture {
17 public:
18 BasicMouseWheelSmoothScrollGesture(bool scroll_down, int pixels_to_scroll,
19 int mouse_event_x, int mouse_event_y);
20
21 virtual bool ForwardInputEvents(base::TimeTicks now,
22 RenderWidgetHost* host) OVERRIDE;
23 private:
24 virtual ~BasicMouseWheelSmoothScrollGesture();
25
26 SyntheticGestureCalculator synthetic_gesture_calculator_;
27
28 bool scroll_down_;
29 int pixels_scrolled_;
30 int pixels_to_scroll_;
31 int mouse_event_x_;
32 int mouse_event_y_;
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698