OLD | NEW |
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 #if !defined(__has_feature) || !__has_feature(objc_arc) | 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
6 #error "This file requires ARC support." | 6 #error "This file requires ARC support." |
7 #endif | 7 #endif |
8 | 8 |
9 #import "remoting/client/ios/client_gestures.h" | 9 #import "remoting/ios/client_gestures.h" |
10 #import "remoting/client/ios/session/remoting_client.h" | 10 #import "remoting/ios/session/remoting_client.h" |
11 | 11 |
12 #include "remoting/client/gesture_interpreter.h" | 12 #include "remoting/client/gesture_interpreter.h" |
13 | 13 |
14 @implementation ClientGestures | 14 @implementation ClientGestures |
15 | 15 |
16 - (instancetype)initWithView:(UIView*)view client:(RemotingClient*)client { | 16 - (instancetype)initWithView:(UIView*)view client:(RemotingClient*)client { |
17 _view = view; | 17 _view = view; |
18 _client = client; | 18 _client = client; |
19 | 19 |
20 _inputScheme = HostInputSchemeTouch; | 20 _inputScheme = HostInputSchemeTouch; |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 otherGestureRecognizer == _edgeGesture) { | 349 otherGestureRecognizer == _edgeGesture) { |
350 return YES; | 350 return YES; |
351 } | 351 } |
352 // TODO(nicholss): If we return NO here, it dismisses the other reconizers. | 352 // TODO(nicholss): If we return NO here, it dismisses the other reconizers. |
353 // As we add more types of reconizers, they need to be accounted for in the | 353 // As we add more types of reconizers, they need to be accounted for in the |
354 // above logic. | 354 // above logic. |
355 return NO; | 355 return NO; |
356 } | 356 } |
357 | 357 |
358 @end | 358 @end |
OLD | NEW |