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" | |
12 #import "remoting/ios/session/remoting_client.h" | 11 #import "remoting/ios/session/remoting_client.h" |
13 | 12 |
14 #include "base/logging.h" | 13 #include "base/logging.h" |
15 #include "remoting/client/gesture_interpreter.h" | 14 #include "remoting/client/gesture_interpreter.h" |
16 | 15 |
17 @implementation ClientGestures | 16 @implementation ClientGestures |
18 | 17 |
19 - (instancetype)initWithView:(UIView*)view client:(RemotingClient*)client { | 18 - (instancetype)initWithView:(UIView*)view client:(RemotingClient*)client { |
20 _view = view; | 19 _view = view; |
21 _client = client; | 20 _client = client; |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 otherGestureRecognizer == _edgeGesture) { | 351 otherGestureRecognizer == _edgeGesture) { |
353 return YES; | 352 return YES; |
354 } | 353 } |
355 // TODO(nicholss): If we return NO here, it dismisses the other reconizers. | 354 // TODO(nicholss): If we return NO here, it dismisses the other reconizers. |
356 // As we add more types of reconizers, they need to be accounted for in the | 355 // As we add more types of reconizers, they need to be accounted for in the |
357 // above logic. | 356 // above logic. |
358 return NO; | 357 return NO; |
359 } | 358 } |
360 | 359 |
361 @end | 360 @end |
OLD | NEW |