| 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/ios/client_gestures.h" | 9 #import "remoting/ios/client_gestures.h" |
| 10 | 10 |
| 11 #import "remoting/ios/key_input.h" | 11 #import "remoting/ios/key_input.h" |
| 12 #import "remoting/ios/session/remoting_client.h" | 12 #import "remoting/ios/session/remoting_client.h" |
| 13 | 13 |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "remoting/client/gesture_interpreter.h" | 15 #include "remoting/client/ui/gesture_interpreter.h" |
| 16 | 16 |
| 17 @implementation ClientGestures | 17 @implementation ClientGestures |
| 18 | 18 |
| 19 - (instancetype)initWithView:(UIView*)view client:(RemotingClient*)client { | 19 - (instancetype)initWithView:(UIView*)view client:(RemotingClient*)client { |
| 20 _view = view; | 20 _view = view; |
| 21 _client = client; | 21 _client = client; |
| 22 | 22 |
| 23 _inputScheme = HostInputSchemeTouch; | 23 _inputScheme = HostInputSchemeTouch; |
| 24 | 24 |
| 25 _longPressRecognizer = [[UILongPressGestureRecognizer alloc] | 25 _longPressRecognizer = [[UILongPressGestureRecognizer alloc] |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 otherGestureRecognizer == _edgeGesture) { | 375 otherGestureRecognizer == _edgeGesture) { |
| 376 return YES; | 376 return YES; |
| 377 } | 377 } |
| 378 // TODO(nicholss): If we return NO here, it dismisses the other reconizers. | 378 // TODO(nicholss): If we return NO here, it dismisses the other reconizers. |
| 379 // As we add more types of reconizers, they need to be accounted for in the | 379 // As we add more types of reconizers, they need to be accounted for in the |
| 380 // above logic. | 380 // above logic. |
| 381 return NO; | 381 return NO; |
| 382 } | 382 } |
| 383 | 383 |
| 384 @end | 384 @end |
| OLD | NEW |