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

Unified Diff: ui/events/gestures/motion_event_aura.h

Issue 504183005: Use MotionEvent::MAX_TOUCH_POINT_COUNT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | ui/events/gestures/motion_event_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/motion_event_aura.h
diff --git a/ui/events/gestures/motion_event_aura.h b/ui/events/gestures/motion_event_aura.h
index 4ac3a4c2f6d254aab5a1730924364c0c73c17538..6f94ddbf2e8e4f3c3003ab8d7c8f358c18f2a7a6 100644
--- a/ui/events/gestures/motion_event_aura.h
+++ b/ui/events/gestures/motion_event_aura.h
@@ -69,7 +69,7 @@ class EVENTS_EXPORT MotionEventAura : public MotionEvent {
const base::TimeTicks& last_touch_time,
Action cached_action,
int cached_action_index,
- const PointData (&active_touches)[10/*TODO*/]);
+ const PointData (&active_touches)[MotionEvent::MAX_TOUCH_POINT_COUNT]);
static PointData GetPointDataFromTouchEvent(const TouchEvent& touch);
void AddTouch(const TouchEvent& touch);
@@ -85,7 +85,7 @@ class EVENTS_EXPORT MotionEventAura : public MotionEvent {
int cached_action_index_;
// We want constant time indexing by pointer_index, and fast indexing by id.
- PointData active_touches_[10/*TODO*/];
+ PointData active_touches_[MotionEvent::MAX_TOUCH_POINT_COUNT];
DISALLOW_COPY_AND_ASSIGN(MotionEventAura);
};
« no previous file with comments | « no previous file | ui/events/gestures/motion_event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698