Index: ui/events/gestures/gesture_recognizer.h |
diff --git a/ui/events/gestures/gesture_recognizer.h b/ui/events/gestures/gesture_recognizer.h |
index 92d225a71187276ff2c92d72595b7ea335609dd7..4b53c2f26e18d903fdd181b4006f36df807f40bd 100644 |
--- a/ui/events/gestures/gesture_recognizer.h |
+++ b/ui/events/gestures/gesture_recognizer.h |
@@ -19,6 +19,7 @@ class EVENTS_EXPORT GestureRecognizer { |
public: |
static GestureRecognizer* Create(); |
static GestureRecognizer* Get(); |
+ static void Reset(); |
// List of GestureEvent*. |
typedef ScopedVector<GestureEvent> Gestures; |
@@ -46,10 +47,12 @@ class EVENTS_EXPORT GestureRecognizer { |
virtual GestureConsumer* GetTargetForGestureEvent( |
const GestureEvent& event) = 0; |
- // If there is an active touch within |
- // GestureConfiguration::max_separation_for_gesture_touches_in_pixels, |
- // of |location|, returns the target of the nearest active touch. |
- virtual GestureConsumer* GetTargetForLocation(const gfx::Point& location) = 0; |
+ // Returns the target of the nearest active touch with source device of |
+ // |source_device_id|, within |
+ // GestureConfiguration::max_separation_for_gesture_touches_in_pixels of |
+ // |location|, or NULL if no such point exists. |
+ virtual GestureConsumer* GetTargetForLocation( |
+ const gfx::Point& location, int source_device_id) = 0; |
// Makes |new_consumer| the target for events previously targeting |
// |current_consumer|. All other targets are canceled. |