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

Unified Diff: ui/events/gesture_detection/mock_motion_event.cc

Issue 243403002: Add multi-finger swipe detection to GestureDetector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix M_PI Created 6 years, 8 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
« no previous file with comments | « ui/events/gesture_detection/mock_motion_event.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_detection/mock_motion_event.cc
diff --git a/ui/events/gesture_detection/mock_motion_event.cc b/ui/events/gesture_detection/mock_motion_event.cc
index 65bfe03136fecfce8dcaf55f9f0e29d3d10200e8..2cc8da738ac9c4f785d5d1ad32472ee2c38e7c6a 100644
--- a/ui/events/gesture_detection/mock_motion_event.cc
+++ b/ui/events/gesture_detection/mock_motion_event.cc
@@ -35,6 +35,20 @@ MockMotionEvent::MockMotionEvent(Action action,
points[1].SetPoint(x1, y1);
}
+MockMotionEvent::MockMotionEvent(Action action,
+ TimeTicks time,
+ float x0,
+ float y0,
+ float x1,
+ float y1,
+ float x2,
+ float y2)
+ : action(action), pointer_count(3), time(time), id(0) {
+ points[0].SetPoint(x0, y0);
+ points[1].SetPoint(x1, y1);
+ points[2].SetPoint(x2, y2);
+}
+
MockMotionEvent::MockMotionEvent(const MockMotionEvent& other)
: action(other.action),
pointer_count(other.pointer_count),
« no previous file with comments | « ui/events/gesture_detection/mock_motion_event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698