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

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, 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
« no previous file with comments | « ui/events/gestures/gesture_provider_aura_unittest.cc ('k') | ui/events/gestures/gesture_recognizer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5dc58346cefdabc8d9770c244a6383c982e46c7a 100644
--- a/ui/events/gestures/gesture_recognizer.h
+++ b/ui/events/gestures/gesture_recognizer.h
@@ -27,11 +27,20 @@ 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,
+ // Invoked before event dispatch. If the event is invalid given the current
+ // touch sequence, marks it as handled.
+ virtual bool ProcessTouchEventPreDispatch(const TouchEvent& event,
+ GestureConsumer* consumer) = 0;
+ // Returns a list of zero or more GestureEvents. The caller is responsible for
+ // freeing the returned events. Called synchronously after event dispatch.
+ virtual Gestures* ProcessTouchEventPostDispatch(
+ const TouchEvent& event,
+ ui::EventResult result,
+ GestureConsumer* consumer) = 0;
+ // Returns a list of zero or more GestureEvents. The caller is responsible for
+ // freeing the returned events. Called when a touch event receives an
+ // asynchronous ack.
+ virtual Gestures* ProcessTouchEventOnAsyncAck(const TouchEvent& event,
ui::EventResult result,
GestureConsumer* consumer) = 0;
« no previous file with comments | « ui/events/gestures/gesture_provider_aura_unittest.cc ('k') | ui/events/gestures/gesture_recognizer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698