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

Unified Diff: remoting/ios/client_gestures.h

Issue 2898243005: [CRD iOS] Cleanup ClientGestures (Closed)
Patch Set: Rebase w/ ToT 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/ios/client_gestures.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
-// 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
« no previous file with comments | « no previous file | remoting/ios/client_gestures.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698