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

Unified Diff: remoting/client/ios/client_gestures.h

Issue 2856933007: [Remoting iOS] Basic viewport manipulation support (Closed)
Patch Set: break strong reference loops using __weak Created 3 years, 8 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
Index: remoting/client/ios/client_gestures.h
diff --git a/remoting/client/ios/client_gestures.h b/remoting/client/ios/client_gestures.h
index aea0d3ca352c89b5349bd2175dc21508181ade3e..ab9780d4047a7c13842c2adbbb1fc9fc71c4b68c 100644
--- a/remoting/client/ios/client_gestures.h
+++ b/remoting/client/ios/client_gestures.h
@@ -8,6 +8,7 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#include "base/logging.h"
+#include "remoting/client/desktop_viewport.h"
#import "remoting/client/ios/key_input.h"
typedef NS_ENUM(NSInteger, HostInputScheme) {
@@ -42,10 +43,14 @@ typedef NS_ENUM(NSInteger, MouseButton) {
UIScreenEdgePanGestureRecognizer* _edgeGesture;
UISwipeGestureRecognizer* _swipeGesture;
+ __weak UIView* _view;
+ remoting::DesktopViewport* _viewport;
+
HostInputScheme _inputScheme;
}
-- (instancetype)initWithView:(UIView*)view;
+- (instancetype)initWithView:(UIView*)view
+ viewport:(remoting::DesktopViewport*)vp;
// Zoom in/out
- (IBAction)pinchGestureTriggered:(UIPinchGestureRecognizer*)sender;

Powered by Google App Engine
This is Rietveld 408576698