OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_KEY_INPUT_H_ | 5 #ifndef REMOTING_IOS_KEY_INPUT_H_ |
6 #define REMOTING_CLIENT_IOS_KEY_INPUT_H_ | 6 #define REMOTING_IOS_KEY_INPUT_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 // Key codes are translated from the on screen keyboard to the scan codes | 11 // Key codes are translated from the on screen keyboard to the scan codes |
12 // needed for Chromoting input. We don't have a good automated approach to do | 12 // needed for Chromoting input. We don't have a good automated approach to do |
13 // this. Instead we have created a mapping manually via trial and error. To | 13 // this. Instead we have created a mapping manually via trial and error. To |
14 // support other keyboards in this context we would have to test and create a | 14 // support other keyboards in this context we would have to test and create a |
15 // mapping for each keyboard manually. | 15 // mapping for each keyboard manually. |
16 | 16 |
(...skipping 12 matching lines...) Expand all Loading... |
29 @interface KeyInput : UIView<UIKeyInput> | 29 @interface KeyInput : UIView<UIKeyInput> |
30 | 30 |
31 @property(weak, nonatomic) id<KeyInputDelegate> delegate; | 31 @property(weak, nonatomic) id<KeyInputDelegate> delegate; |
32 @property(readonly) BOOL keyboardVisible; | 32 @property(readonly) BOOL keyboardVisible; |
33 @property(readonly) CGFloat keyboardHeight; | 33 @property(readonly) CGFloat keyboardHeight; |
34 | 34 |
35 - (void)ctrlAltDel; | 35 - (void)ctrlAltDel; |
36 | 36 |
37 @end | 37 @end |
38 | 38 |
39 #endif // REMOTING_CLIENT_IOS_KEY_INPUT_H_ | 39 #endif // REMOTING_IOS_KEY_INPUT_H_ |
OLD | NEW |