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

Side by Side Diff: remoting/ios/client_keyboard.h

Issue 2868383003: [CRD iOS] Send key events to the session. (Closed)
Patch Set: Removing the simple keyboard, not needed. 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 #ifndef REMOTING_CLIENT_IOS_CLIENT_KEYBOARD_H_ 5 #ifndef REMOTING_CLIENT_IOS_CLIENT_KEYBOARD_H_
6 #define REMOTING_CLIENT_IOS_CLIENT_KEYBOARD_H_ 6 #define REMOTING_CLIENT_IOS_CLIENT_KEYBOARD_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h> 9 #import <UIKit/UIKit.h>
10 10
11 @protocol ClientKeyboardDelegate<NSObject>
12 - (void)clientKeyboardShouldSend:(NSString*)text;
13 - (void)clientKeyboardShouldDelete;
14 @end
15
11 @interface ClientKeyboard : UIView<UIKeyInput, UITextInputTraits> 16 @interface ClientKeyboard : UIView<UIKeyInput, UITextInputTraits>
12 17
13 @property(nonatomic) UIKeyboardAppearance keyboardAppearance; 18 @property(nonatomic) UIKeyboardAppearance keyboardAppearance;
14 @property(nonatomic) UIKeyboardType keyboardType; 19 @property(nonatomic) UIKeyboardType keyboardType;
15 @property(nonatomic) UITextAutocapitalizationType autocapitalizationType; 20 @property(nonatomic) UITextAutocapitalizationType autocapitalizationType;
16 @property(nonatomic) UITextAutocorrectionType autocorrectionType; 21 @property(nonatomic) UITextAutocorrectionType autocorrectionType;
17 @property(nonatomic) UITextSpellCheckingType spellCheckingType; 22 @property(nonatomic) UITextSpellCheckingType spellCheckingType;
18 23
24 // This delegate is used to call back to handler key entry.
25 @property(weak, nonatomic) id<ClientKeyboardDelegate> delegate;
Yuwei 2017/05/16 00:47:30 Have you considered just storing and using Keyboar
nicholss 2017/05/16 17:13:39 I have, there is a comment about that from last re
19 @end 26 @end
20 27
21 #endif // REMOTING_CLIENT_IOS_CLIENT_KEYBOARD_H_ 28 #endif // REMOTING_CLIENT_IOS_CLIENT_KEYBOARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698