Chromium Code Reviews| Index: remoting/ios/client_gestures.h |
| diff --git a/remoting/ios/client_gestures.h b/remoting/ios/client_gestures.h |
| index eac4f9f0dd6fafb1cd7067f2eaa055472b9a1655..2ec4ba16224dcf16bfb16cc2db43ab88b7dcc26a 100644 |
| --- a/remoting/ios/client_gestures.h |
| +++ b/remoting/ios/client_gestures.h |
| @@ -8,6 +8,7 @@ |
| #import <Foundation/Foundation.h> |
| #import <UIKit/UIKit.h> |
| +@class HostViewController; |
| @class RemotingClient; |
| typedef NS_ENUM(NSInteger, HostInputScheme) { |
| @@ -44,11 +45,12 @@ typedef NS_ENUM(NSInteger, MouseButton) { |
| __weak UIView* _view; |
| __weak RemotingClient* _client; |
| + __weak HostViewController* _controller; |
| HostInputScheme _inputScheme; |
| } |
| -- (instancetype)initWithView:(UIView*)view client:(RemotingClient*)client; |
| +- (instancetype)initWithHostViewController:(HostViewController*)controller; |
|
nicholss
2017/05/24 14:36:49
I don't think this is a good pattern in Obj-C, you
Yuwei
2017/05/24 19:52:09
Done.
|
| // Zoom in/out |
| - (IBAction)pinchGestureTriggered:(UIPinchGestureRecognizer*)sender; |