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

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

Issue 227743007: ui::GestureProvider gives GestureEventData the number of touch points. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jdduke final nits. 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
Index: ui/events/gesture_detection/touch_disposition_gesture_filter.cc
diff --git a/ui/events/gesture_detection/touch_disposition_gesture_filter.cc b/ui/events/gesture_detection/touch_disposition_gesture_filter.cc
index 6f405e58f96faa00f18fbe1fe1c62c8ae17bcbf5..dc92250e99a04c9c5679db530c9ae0467185926d 100644
--- a/ui/events/gesture_detection/touch_disposition_gesture_filter.cc
+++ b/ui/events/gesture_detection/touch_disposition_gesture_filter.cc
@@ -15,12 +15,14 @@ namespace {
COMPILE_ASSERT(ET_GESTURE_TYPE_END - ET_GESTURE_TYPE_START < 32,
gesture_type_count_too_large);
-GestureEventData CreateGesture(EventType type, int motion_event_id) {
+GestureEventData CreateGesture(EventType type,
+ int motion_event_id) {
return GestureEventData(type,
motion_event_id,
base::TimeTicks(),
0,
0,
+ 1,
GestureEventDetails(type, 0, 0));
}

Powered by Google App Engine
This is Rietveld 408576698