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

Unified Diff: content/browser/renderer_host/input/synthetic_smooth_move_gesture.h

Issue 2742473002: gpu benchmarking swipe for touchpad
Patch Set: gpu benchmarking swipe for touchpad Created 3 years, 9 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/synthetic_smooth_move_gesture.h
diff --git a/content/browser/renderer_host/input/synthetic_smooth_move_gesture.h b/content/browser/renderer_host/input/synthetic_smooth_move_gesture.h
index eaed37d12a8ddec1a3f12a355bca4d43cf005af9..ed464e01e220149002ac5ff89ba9570f27efea27 100644
--- a/content/browser/renderer_host/input/synthetic_smooth_move_gesture.h
+++ b/content/browser/renderer_host/input/synthetic_smooth_move_gesture.h
@@ -33,6 +33,7 @@ class CONTENT_EXPORT SyntheticSmoothMoveGestureParams {
InputType input_type;
gfx::PointF start_point;
std::vector<gfx::Vector2dF> distances;
+ gfx::Vector2dF velocity;
int speed_in_pixels_s;
bool prevent_fling;
bool add_slop;
@@ -75,6 +76,9 @@ class CONTENT_EXPORT SyntheticSmoothMoveGesture : public SyntheticGesture {
void ForwardMouseWheelEvent(SyntheticGestureTarget* target,
const gfx::Vector2dF& delta,
const base::TimeTicks& timestamp) const;
+ void ForwardTouchpadFlingEvent(SyntheticGestureTarget* target,
+ const gfx::Vector2dF& velocity,
+ const base::TimeTicks& timestamp) const;
void PressPoint(SyntheticGestureTarget* target,
const base::TimeTicks& timestamp);

Powered by Google App Engine
This is Rietveld 408576698