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

Unified Diff: trunk/src/ui/events/gestures/gesture_recognizer.h

Issue 132363004: Revert 243974 "Target touches to the correct display." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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: trunk/src/ui/events/gestures/gesture_recognizer.h
===================================================================
--- trunk/src/ui/events/gestures/gesture_recognizer.h (revision 244019)
+++ trunk/src/ui/events/gestures/gesture_recognizer.h (working copy)
@@ -19,7 +19,6 @@
public:
static GestureRecognizer* Create();
static GestureRecognizer* Get();
- static void Reset();
// List of GestureEvent*.
typedef ScopedVector<GestureEvent> Gestures;
@@ -47,12 +46,10 @@
virtual GestureConsumer* GetTargetForGestureEvent(
const GestureEvent& event) = 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;
+ // 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;
// Makes |new_consumer| the target for events previously targeting
// |current_consumer|. All other targets are canceled.
« no previous file with comments | « trunk/src/ui/events/gestures/gesture_point.cc ('k') | trunk/src/ui/events/gestures/gesture_recognizer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698