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

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

Issue 393953012: Eager Gesture Recognition on Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 5 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.h
diff --git a/ui/events/gestures/gesture_recognizer.h b/ui/events/gestures/gesture_recognizer.h
index 4b31e57bd71fbc79bf71271934e85ed52aad5947..c4df53049a25679e29e620be348ecb14457ef411 100644
--- a/ui/events/gestures/gesture_recognizer.h
+++ b/ui/events/gestures/gesture_recognizer.h
@@ -28,12 +28,27 @@ class EVENTS_EXPORT GestureRecognizer {
virtual ~GestureRecognizer() {}
// Invoked for each touch event that could contribute to the current gesture.
+ // Returns false iff the touch event is invalid in some way, and should not be
+ // processed further.
+ virtual bool ProcessTouchEventForGesture(const TouchEvent& event,
+ GestureConsumer* consumer) = 0;
+
+ // TODO(tdresser): remove during cleanup of old Aura GR, as part of
+ // crbug.com/332418.
+ // Invoked for each touch event that could contribute to the current gesture.
// Returns list of zero or more GestureEvents identified after processing
// TouchEvent.
// Caller would be responsible for freeing up Gestures.
- virtual Gestures* ProcessTouchEventForGesture(const TouchEvent& event,
- ui::EventResult result,
- GestureConsumer* consumer) = 0;
+ virtual Gestures* ProcessTouchEventForGestureForOldAuraGR(
+ const TouchEvent& event,
+ ui::EventResult result,
+ GestureConsumer* target) = 0;
+
+ // Sends an ack to the gesture detector, and returns any gestures triggered by
+ // the ack.
+ virtual ScopedVector<GestureEvent>* AckTouchEventForGesture(
+ ui::EventResult result,
+ GestureConsumer* target) = 0;
// This is called when the consumer is destroyed. So this should cleanup any
// internal state maintained for |consumer|. Returns true iff there was

Powered by Google App Engine
This is Rietveld 408576698