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

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

Issue 306483003: Prepare for Unified Gesture Recognizer landing in Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix non-monotonic timestamps Created 6 years, 7 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: 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 26d884f90e9d480666278a63c90bd4e481c6fb4f..54d7b0273f12b7719e3f8933a73670f36ee2c3bb 100644
--- a/ui/events/gesture_detection/mock_motion_event.cc
+++ b/ui/events/gesture_detection/mock_motion_event.cc
@@ -54,8 +54,8 @@ MockMotionEvent::MockMotionEvent(const MockMotionEvent& other)
pointer_count(other.pointer_count),
time(other.time),
id(other.GetId()) {
- points[0] = other.points[0];
- points[1] = other.points[1];
+ for (size_t i = 0; i < pointer_count; ++i)
+ points[i] = other.points[i];
}
MockMotionEvent::~MockMotionEvent() {}

Powered by Google App Engine
This is Rietveld 408576698