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

Side by Side Diff: content/browser/renderer_host/input/touch_scroll_smooth_gesture.h

Issue 26664002: SyntheticGestureTarget implementation for injecting synthetic input events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 months 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 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_INPUT_TOUCH_SCROLL_SMOOTH_GESTURE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SCROLL_SMOOTH_GESTURE_H_
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 RenderWidgetHostView;
15
Dominik Grewe 2013/10/10 14:01:45 Is this just for testing or do you want to keep th
kouhei (in TOK) 2013/10/15 02:10:02 This is for testing, so I will not commit TouchSmo
16 class TouchSmoothScrollGesture : public SyntheticGesture {
17 public:
18 TouchSmoothScrollGesture(bool scroll_down,
19 int pixels_to_scroll,
20 int mouse_event_x,
21 int mouse_event_y);
22
23 private:
24 virtual ~TouchSmoothScrollGesture();
25
26 // SmoothScrollGesture:
27 virtual bool ForwardInputEvents(base::TimeTicks now,
28 RenderWidgetHost* host) OVERRIDE;
29
30 bool scroll_down_;
31 int pixels_to_scroll_;
32 int pixels_scrolled_;
33 int mouse_event_x_;
34 int mouse_event_y_;
35 SyntheticGestureCalculator synthetic_gesture_calculator_;
36
37 DISALLOW_COPY_AND_ASSIGN(TouchSmoothScrollGesture);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SCROLL_SMOOTH_GESTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698