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

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: Refactor based on Jared's comments. 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..1414139d702d4c863506c5334d1e008f3c1d2498 100644
--- a/ui/events/gestures/gesture_recognizer.h
+++ b/ui/events/gestures/gesture_recognizer.h
@@ -27,13 +27,14 @@ class EVENTS_EXPORT GestureRecognizer {
virtual ~GestureRecognizer() {}
- // 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 bool ProcessTouchEventPreDispatch(const TouchEvent& event,
+ GestureConsumer* consumer) = 0;
+ virtual Gestures* ProcessTouchEventPostDispatch(const TouchEvent& event,
jdduke (slow) 2014/08/01 14:27:22 This is great! Probably worth keeping the comment
tdresser 2014/08/01 18:54:00 Done.
+ ui::EventResult result,
+ GestureConsumer* consumer) = 0;
+ virtual Gestures* ProcessTouchEventOnAsyncAck(const TouchEvent& event,
+ ui::EventResult result,
+ GestureConsumer* consumer) = 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