Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: remoting/ios/client_gestures.h

Issue 2904703003: [CRD iOS] Add support for three-finger gestures (Closed)
Patch Set: Remove unused import Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/ios/app/host_view_controller.mm ('k') | remoting/ios/client_gestures.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_IOS_CLIENT_GESTURES_H_ 5 #ifndef REMOTING_IOS_CLIENT_GESTURES_H_
6 #define REMOTING_IOS_CLIENT_GESTURES_H_ 6 #define REMOTING_IOS_CLIENT_GESTURES_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h> 9 #import <UIKit/UIKit.h>
10 10
(...skipping 10 matching lines...) Expand all
21 HostInputSchemeTouch = 1 21 HostInputSchemeTouch = 1
22 }; 22 };
23 23
24 typedef NS_ENUM(NSInteger, MouseButton) { 24 typedef NS_ENUM(NSInteger, MouseButton) {
25 NO_BUTTON = 0, 25 NO_BUTTON = 0,
26 LEFT_BUTTON = 1, 26 LEFT_BUTTON = 1,
27 MIDDLE_BUTTON = 2, 27 MIDDLE_BUTTON = 2,
28 RIGHT_BUTTON = 3, 28 RIGHT_BUTTON = 3,
29 }; 29 };
30 30
31 @protocol ClientGesturesDelegate<NSObject>
32 - (void)keyboardShouldShow;
33 - (void)keyboardShouldHide;
34 @end
35
31 @interface ClientGestures : NSObject<UIGestureRecognizerDelegate> { 36 @interface ClientGestures : NSObject<UIGestureRecognizerDelegate> {
32 @private 37 @private
33 UILongPressGestureRecognizer* _longPressRecognizer; 38 UILongPressGestureRecognizer* _longPressRecognizer;
34 UIPanGestureRecognizer* _panRecognizer; 39 UIPanGestureRecognizer* _panRecognizer;
35 UIPanGestureRecognizer* _flingRecognizer; 40 UIPanGestureRecognizer* _flingRecognizer;
36 UIPanGestureRecognizer* _scrollRecognizer; 41 UIPanGestureRecognizer* _scrollRecognizer;
37 UIPanGestureRecognizer* _threeFingerPanRecognizer; 42 UIPanGestureRecognizer* _threeFingerPanRecognizer;
38 UIPinchGestureRecognizer* _pinchRecognizer; 43 UIPinchGestureRecognizer* _pinchRecognizer;
39 UITapGestureRecognizer* _singleTapRecognizer; 44 UITapGestureRecognizer* _singleTapRecognizer;
40 UITapGestureRecognizer* _twoFingerTapRecognizer; 45 UITapGestureRecognizer* _twoFingerTapRecognizer;
(...skipping 21 matching lines...) Expand all
62 - (IBAction)scrollGestureTriggered:(UIPanGestureRecognizer*)sender; 67 - (IBAction)scrollGestureTriggered:(UIPanGestureRecognizer*)sender;
63 // Right mouse click and drag, moves cursor 68 // Right mouse click and drag, moves cursor
64 - (IBAction)longPressGestureTriggered:(UILongPressGestureRecognizer*)sender; 69 - (IBAction)longPressGestureTriggered:(UILongPressGestureRecognizer*)sender;
65 // Right mouse click 70 // Right mouse click
66 - (IBAction)twoFingerTapGestureTriggered:(UITapGestureRecognizer*)sender; 71 - (IBAction)twoFingerTapGestureTriggered:(UITapGestureRecognizer*)sender;
67 // Middle mouse click 72 // Middle mouse click
68 - (IBAction)threeFingerTapGestureTriggered:(UITapGestureRecognizer*)sender; 73 - (IBAction)threeFingerTapGestureTriggered:(UITapGestureRecognizer*)sender;
69 // Show hidden menus. Swipe up for keyboard, swipe down for navigation menu 74 // Show hidden menus. Swipe up for keyboard, swipe down for navigation menu
70 - (IBAction)threeFingerPanGestureTriggered:(UIPanGestureRecognizer*)sender; 75 - (IBAction)threeFingerPanGestureTriggered:(UIPanGestureRecognizer*)sender;
71 76
77 @property(weak, nonatomic) id<ClientGesturesDelegate> delegate;
78
72 @end 79 @end
73 80
74 #endif // REMOTING_IOS_CLIENT_GESTURES_H_ 81 #endif // REMOTING_IOS_CLIENT_GESTURES_H_
OLDNEW
« no previous file with comments | « remoting/ios/app/host_view_controller.mm ('k') | remoting/ios/client_gestures.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698