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

Side by Side Diff: remoting/ios/client_gestures.mm

Issue 2868383003: [CRD iOS] Send key events to the session. (Closed)
Patch Set: Update based on feedback. 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 unified diff | Download patch
« no previous file with comments | « remoting/ios/app/host_view_controller.mm ('k') | remoting/ios/client_keyboard.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ui/gesture_interpreter.h" 14 #include "remoting/client/ui/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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 otherGestureRecognizer == _edgeGesture) { 399 otherGestureRecognizer == _edgeGesture) {
401 return YES; 400 return YES;
402 } 401 }
403 // TODO(nicholss): If we return NO here, it dismisses the other reconizers. 402 // TODO(nicholss): If we return NO here, it dismisses the other reconizers.
404 // As we add more types of reconizers, they need to be accounted for in the 403 // As we add more types of reconizers, they need to be accounted for in the
405 // above logic. 404 // above logic.
406 return NO; 405 return NO;
407 } 406 }
408 407
409 @end 408 @end
OLDNEW
« no previous file with comments | « remoting/ios/app/host_view_controller.mm ('k') | remoting/ios/client_keyboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698