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

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

Issue 458363002: Remove old Aura Gesture Detection Pipeline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address sadrul's comment, and rebase. 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 | « ui/events/gestures/motion_event_aura.h ('k') | ui/events/gestures/unified_gesture_detector_enabled.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/motion_event_aura.cc
diff --git a/ui/events/gestures/motion_event_aura.cc b/ui/events/gestures/motion_event_aura.cc
index ab20860e1ddae6701669e924fcef57a023d848e1..c1c144653d10a73538c56cf4091f49deb1257a65 100644
--- a/ui/events/gestures/motion_event_aura.cc
+++ b/ui/events/gestures/motion_event_aura.cc
@@ -13,12 +13,11 @@ MotionEventAura::MotionEventAura()
: pointer_count_(0), cached_action_index_(-1) {
}
-MotionEventAura::MotionEventAura(
- size_t pointer_count,
- const base::TimeTicks& last_touch_time,
- Action cached_action,
- int cached_action_index,
- const PointData (&active_touches)[GestureSequence::kMaxGesturePoints])
+MotionEventAura::MotionEventAura(size_t pointer_count,
+ const base::TimeTicks& last_touch_time,
+ Action cached_action,
+ int cached_action_index,
+ const PointData (&active_touches)[10/*TODO*/])
: pointer_count_(pointer_count),
last_touch_time_(last_touch_time),
cached_action_(cached_action),
@@ -181,7 +180,7 @@ int MotionEventAura::GetSourceDeviceId(size_t pointer_index) const {
}
void MotionEventAura::AddTouch(const TouchEvent& touch) {
- if (pointer_count_ == static_cast<size_t>(GestureSequence::kMaxGesturePoints))
+ if (pointer_count_ == MotionEvent::MAX_TOUCH_POINT_COUNT)
return;
active_touches_[pointer_count_] = GetPointDataFromTouchEvent(touch);
« no previous file with comments | « ui/events/gestures/motion_event_aura.h ('k') | ui/events/gestures/unified_gesture_detector_enabled.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698