| 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
|
|
|