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

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

Issue 469523003: Add the actual location coordinates to the touch cancel event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the unit tests 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
Index: ui/events/gestures/gesture_recognizer_impl.h
diff --git a/ui/events/gestures/gesture_recognizer_impl.h b/ui/events/gestures/gesture_recognizer_impl.h
index b2e8106498eb81a5446fd43d61c1ff506d0bbf5f..6e97b353b224027bdb1bc0f80c092c595f7a3dee 100644
--- a/ui/events/gestures/gesture_recognizer_impl.h
+++ b/ui/events/gestures/gesture_recognizer_impl.h
@@ -6,6 +6,7 @@
#define UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
#include <map>
+#include <set>
#include <vector>
#include "base/memory/linked_ptr.h"
@@ -94,6 +95,17 @@ class EVENTS_EXPORT GestureRecognizerImpl : public GestureRecognizer,
// to a specific |consumer|.
GestureEventHelper* FindDispatchHelperForConsumer(GestureConsumer* consumer);
+ // for all the GestureConsumers in the touches
tdresser 2014/08/13 19:57:58 Capitalize comments, and end them with a period.
lanwei 2014/08/14 00:38:46 Done.
+ // create a map from touch id to the touch location
+ std::map<int, gfx::PointF> GroupGestureConsumerWithTouchPoints(
+ std::vector<std::pair<int, GestureConsumer*> >* touches);
+
+ // create a map between the touch_id to the touch point location
+ // by iterating through the pointer_state in GestureConsumer's
+ // GestureProviderAura
+ std::map<int, gfx::PointF> MapTouchIDWithPointLocation(
+ GestureConsumer* consumer);
+
std::map<GestureConsumer*, GestureSequence*> consumer_sequence_;
std::map<GestureConsumer*, GestureProviderAura*> consumer_gesture_provider_;

Powered by Google App Engine
This is Rietveld 408576698