Chromium Code Reviews| 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 |