Chromium Code Reviews| Index: remoting/ios/client_gestures.h |
| diff --git a/remoting/ios/client_gestures.h b/remoting/ios/client_gestures.h |
| index 55cd9a1df05e9249856cda0b69a153b6aa05d276..ff3572e477a6570c657fb7f32bd6ff55ec4db497 100644 |
| --- a/remoting/ios/client_gestures.h |
| +++ b/remoting/ios/client_gestures.h |
| @@ -10,70 +10,15 @@ |
| @class RemotingClient; |
| -typedef NS_ENUM(NSInteger, HostInputScheme) { |
| - // Mouse cursor is shown |
| - // Dragging or Panning, moves the mouse cursor |
| - // Tapping causes mouse input at the cursor location |
| - HostInputSchemeTrackpad = 0, // Default |
| - // Mouse cursor is not shown |
| - // Dragging or Panning is similar to a map |
| - // Tapping causes mouse input at the tap location |
| - HostInputSchemeTouch = 1 |
| -}; |
| - |
| -typedef NS_ENUM(NSInteger, MouseButton) { |
| - NO_BUTTON = 0, |
| - LEFT_BUTTON = 1, |
| - MIDDLE_BUTTON = 2, |
| - RIGHT_BUTTON = 3, |
| -}; |
| - |
| @protocol ClientGesturesDelegate<NSObject> |
| - (void)keyboardShouldShow; |
| - (void)keyboardShouldHide; |
| @end |
| -@interface ClientGestures : NSObject<UIGestureRecognizerDelegate> { |
| - @private |
| - UILongPressGestureRecognizer* _longPressRecognizer; |
| - UIPanGestureRecognizer* _panRecognizer; |
| - UIPanGestureRecognizer* _flingRecognizer; |
| - UIPanGestureRecognizer* _scrollRecognizer; |
| - UIPanGestureRecognizer* _threeFingerPanRecognizer; |
| - UIPinchGestureRecognizer* _pinchRecognizer; |
| - UITapGestureRecognizer* _singleTapRecognizer; |
| - UITapGestureRecognizer* _twoFingerTapRecognizer; |
| - UITapGestureRecognizer* _threeFingerTapRecognizer; |
| - UIScreenEdgePanGestureRecognizer* _edgeGesture; |
| - UISwipeGestureRecognizer* _swipeGesture; |
| - |
| - __weak UIView* _view; |
| - __weak RemotingClient* _client; |
| - |
| - HostInputScheme _inputScheme; |
| -} |
| +@interface ClientGestures : NSObject |
| - (instancetype)initWithView:(UIView*)view client:(RemotingClient*)client; |
| -// Zoom in/out |
| -- (IBAction)pinchGestureTriggered:(UIPinchGestureRecognizer*)sender; |
|
Yuwei
2017/05/24 22:07:19
I'm not sure the point of declaring the private me
nicholss
2017/05/25 17:58:12
This was contractor code.
|
| -// Left mouse click, moves cursor |
| -- (IBAction)tapGestureTriggered:(UITapGestureRecognizer*)sender; |
| -// Scroll the view in 2d |
| -- (IBAction)panGestureTriggered:(UIPanGestureRecognizer*)sender; |
| -// Handle one finger fling gesture |
| -- (IBAction)flingGestureTriggered:(UIPanGestureRecognizer*)sender; |
| -// Handle two finger scroll gesture |
| -- (IBAction)scrollGestureTriggered:(UIPanGestureRecognizer*)sender; |
| -// Right mouse click and drag, moves cursor |
| -- (IBAction)longPressGestureTriggered:(UILongPressGestureRecognizer*)sender; |
| -// Right mouse click |
| -- (IBAction)twoFingerTapGestureTriggered:(UITapGestureRecognizer*)sender; |
| -// Middle mouse click |
| -- (IBAction)threeFingerTapGestureTriggered:(UITapGestureRecognizer*)sender; |
| -// Show hidden menus. Swipe up for keyboard, swipe down for navigation menu |
| -- (IBAction)threeFingerPanGestureTriggered:(UIPanGestureRecognizer*)sender; |
| - |
| @property(weak, nonatomic) id<ClientGesturesDelegate> delegate; |
| @end |