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

Unified Diff: remoting/ios/app/host_view_controller.mm

Issue 2904703003: [CRD iOS] Add support for three-finger gestures (Closed)
Patch Set: 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
Index: remoting/ios/app/host_view_controller.mm
diff --git a/remoting/ios/app/host_view_controller.mm b/remoting/ios/app/host_view_controller.mm
index 03d909ca4de603234de90a2c506562246b62adac..b7f45673734c47f9a065edaeefe474bce394425d 100644
--- a/remoting/ios/app/host_view_controller.mm
+++ b/remoting/ios/app/host_view_controller.mm
@@ -98,8 +98,7 @@ static const CGFloat kKeyboardAnimationTime = 0.3;
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
- _clientGestures =
- [[ClientGestures alloc] initWithView:self.view client:_client];
+ _clientGestures = [[ClientGestures alloc] initWithHostViewController:self];
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(keyboardWillShow:)
@@ -269,4 +268,10 @@ static const CGFloat kKeyboardAnimationTime = 0.3;
[self presentViewController:alert animated:YES completion:nil];
}
+#pragma mark properties
+
+- (RemotingClient*)client {
+ return _client;
+}
+
@end

Powered by Google App Engine
This is Rietveld 408576698