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

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

Issue 2869303003: Adding hooks to add the keyboard on screen and be able to dismiss it. (Closed)
Patch Set: Adding kKeyboardAnimationTime. 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
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
11 #import "remoting/ios/key_input.h"
10 #import "remoting/ios/session/remoting_client.h" 12 #import "remoting/ios/session/remoting_client.h"
11 13
14 #include "base/logging.h"
12 #include "remoting/client/gesture_interpreter.h" 15 #include "remoting/client/gesture_interpreter.h"
13 16
14 @implementation ClientGestures 17 @implementation ClientGestures
15 18
16 - (instancetype)initWithView:(UIView*)view client:(RemotingClient*)client { 19 - (instancetype)initWithView:(UIView*)view client:(RemotingClient*)client {
17 _view = view; 20 _view = view;
18 _client = client; 21 _client = client;
19 22
20 _inputScheme = HostInputSchemeTouch; 23 _inputScheme = HostInputSchemeTouch;
21 24
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 otherGestureRecognizer == _edgeGesture) { 352 otherGestureRecognizer == _edgeGesture) {
350 return YES; 353 return YES;
351 } 354 }
352 // TODO(nicholss): If we return NO here, it dismisses the other reconizers. 355 // 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 356 // As we add more types of reconizers, they need to be accounted for in the
354 // above logic. 357 // above logic.
355 return NO; 358 return NO;
356 } 359 }
357 360
358 @end 361 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698