[CRD iOS] Add support for three-finger gestures

Desktop / Chromium - yuweih [chromium.org] - 25 May 2017 14:44 EDT

This CL adds gesture supports for:

- Three-finger tap => inject middle click
- Three-finger swipe => show/hide keyboard

The swipe-down gesture was to show the navigation bar in Android, but let's use it to hide the keyboard for now.

THis CL also refactors InjectMouseClick a little bit to handle all three button clicks.

BUG=718704

Review-Url: https://codereview.chromium.org/2904703003 Cr-Commit-Position: refs/heads/master@{#474724}

e745346 [CRD iOS] Add support for three-finger gestures
remoting/client/gesture_interpreter.cc | 39 +++++++++++++++++---------------
remoting/client/gesture_interpreter.h | 7 ++++--
remoting/ios/app/host_view_controller.mm | 14 +++++++++++-
remoting/ios/client_gestures.h | 7 ++++++
remoting/ios/client_gestures.mm | 38 +++++++++++++++----------------
5 files changed, 64 insertions(+), 41 deletions(-)

Upstream: git.chromium.org


  • Share