class GestureHandlerV2

Defined at line 23 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.h

A GestureHandler binds gestures to actions, and allows gestures to call these

actions when necessary.

Public Methods

void GestureHandlerV2 (AddRecognizerToArenaCallback add_recognizer_callback)

Defined at line 35 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

void ~GestureHandlerV2 ()

Defined at line 55 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.h

bool BindMFingerNTapAction (uint32_t num_fingers, uint32_t num_taps, OnGestureCallback on_recognize)

Binds the action defined in |on_recognize| with the m-finger-n-tap gesture

corresponding to |num_fingers| and |num_taps|.

Defined at line 65 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

bool BindOneFingerSingleTapAction (OnGestureCallback callback)

Binds the action defined in |callback| with the gesture |kOneFingerSingleTap|. The action is

invoked only after the gesture is detected.

Defined at line 116 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

bool BindOneFingerDoubleTapAction (OnGestureCallback callback)

Binds the action defined in |callback| with the gesture |kOneFingerDoubleTap|. The action is

invoked only after the gesture is detected.

Defined at line 120 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

bool BindOneFingerDragAction (OnGestureCallback on_start, OnGestureCallback on_update, OnGestureCallback on_complete)

Binds the actions with the gesture |kOneFingerDrag|.

They are called when the drag starts, updates and completes, respectively.

Defined at line 153 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

bool BindTwoFingerDragAction (OnGestureCallback on_start, OnGestureCallback on_update, OnGestureCallback on_complete)

Binds the actions with the gesture |kTwoFingerDrag|.

They are called when the drag starts, updates and completes, respectively.

Defined at line 178 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

bool BindSwipeAction (OnGestureCallback callback, GestureType gesture_type)

Binds the action defined in |callback| with the |gesture_type|. Returns true if the |callback|

is bound, false otherwise

Defined at line 203 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

bool BindTwoFingerSingleTapAction (OnGestureCallback callback)

Binds the action defined in |callback| with the |kTwoFingerSingleTap|. The

action is invoked only after the gesture is detected.

Defined at line 349 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

bool BindMFingerNTapDragAction (OnGestureCallback on_start, OnGestureCallback on_update, OnGestureCallback on_complete, uint32_t num_fingers, uint32_t num_taps)

Binds the actions with the corresponding m-finger-n-tap-drag gesture.

Defined at line 367 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

void ConsumeAll ()

Binds a recognizer that consumes everything.

Defined at line 422 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

void Clear ()

Clears all recognizers.

Defined at line 424 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.cc

Protected Methods

void GestureHandlerV2 ()

Constructor for mocks.

Defined at line 101 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.h

Enumerations

enum GestureType
Name Value
kUnknown 0
kOneFingerSingleTap 1
kOneFingerDoubleTap 2
kOneFingerTripleTap 3
kOneFingerDoubleTapDrag 4
kOneFingerTripleTapDrag 5
kOneFingerDrag 6
kOneFingerUpSwipe 7
kOneFingerDownSwipe 8
kOneFingerLeftSwipe 9
kOneFingerRightSwipe 10
kThreeFingerUpSwipe 11
kThreeFingerDownSwipe 12
kThreeFingerLeftSwipe 13
kThreeFingerRightSwipe 14
kThreeFingerDoubleTap 15
kThreeFingerDoubleTapDrag 16
kTwoFingerSingleTap 17
kTwoFingerDrag 18

The high-level gestures identified by this class.

Defined at line 29 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.h

enum GestureEvent
Name Value
kRecognize 0
kUpdate 1
kComplete 2

Defined at line 110 of file ../../src/ui/a11y/lib/gesture_manager/gesture_handler_v2.h

Records