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 #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; |
19 @end | 26 @end |
20 | 27 |
21 #endif // REMOTING_CLIENT_IOS_CLIENT_KEYBOARD_H_ | 28 #endif // REMOTING_CLIENT_IOS_CLIENT_KEYBOARD_H_ |
OLD | NEW |