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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/touch_scroll_smooth_gesture.h
diff --git a/content/browser/renderer_host/input/touch_scroll_smooth_gesture.h b/content/browser/renderer_host/input/touch_scroll_smooth_gesture.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb403c20885185eb9339a8bc919c4c6c8a235e49
--- /dev/null
+++ b/content/browser/renderer_host/input/touch_scroll_smooth_gesture.h
@@ -0,0 +1,42 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SCROLL_SMOOTH_GESTURE_H_
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SCROLL_SMOOTH_GESTURE_H_
+
+#include "base/time/time.h"
+#include "content/browser/renderer_host/synthetic_gesture_calculator.h"
+#include "content/port/browser/synthetic_gesture.h"
+
+namespace content {
+
+class RenderWidgetHostView;
+
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
+class TouchSmoothScrollGesture : public SyntheticGesture {
+ public:
+ TouchSmoothScrollGesture(bool scroll_down,
+ int pixels_to_scroll,
+ int mouse_event_x,
+ int mouse_event_y);
+
+ private:
+ virtual ~TouchSmoothScrollGesture();
+
+ // SmoothScrollGesture:
+ virtual bool ForwardInputEvents(base::TimeTicks now,
+ RenderWidgetHost* host) OVERRIDE;
+
+ bool scroll_down_;
+ int pixels_to_scroll_;
+ int pixels_scrolled_;
+ int mouse_event_x_;
+ int mouse_event_y_;
+ SyntheticGestureCalculator synthetic_gesture_calculator_;
+
+ DISALLOW_COPY_AND_ASSIGN(TouchSmoothScrollGesture);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SCROLL_SMOOTH_GESTURE_H_

Powered by Google App Engine
This is Rietveld 408576698