| 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 #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/client/ios/key_input.h" | 9 #import "remoting/ios/key_input.h" |
| 10 #import "remoting/client/ios/key_map_us.h" | 10 #import "remoting/ios/key_map_us.h" |
| 11 | 11 |
| 12 @interface KeyInput (Private) | 12 @interface KeyInput (Private) |
| 13 - (void)transmitAppropriateKeyCode:(NSString*)text; | 13 - (void)transmitAppropriateKeyCode:(NSString*)text; |
| 14 - (void)transmitKeyCode:(NSInteger)keyCode needShift:(bool)needShift; | 14 - (void)transmitKeyCode:(NSInteger)keyCode needShift:(bool)needShift; |
| 15 @end | 15 @end |
| 16 | 16 |
| 17 @implementation KeyInput | 17 @implementation KeyInput |
| 18 | 18 |
| 19 @synthesize delegate = _delegate; | 19 @synthesize delegate = _delegate; |
| 20 @synthesize keyboardVisible = _keyboardVisible; | 20 @synthesize keyboardVisible = _keyboardVisible; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 } | 141 } |
| 142 [_delegate keyboardActionKeyCode:keyCode isKeyDown:YES]; | 142 [_delegate keyboardActionKeyCode:keyCode isKeyDown:YES]; |
| 143 [_delegate keyboardActionKeyCode:keyCode isKeyDown:NO]; | 143 [_delegate keyboardActionKeyCode:keyCode isKeyDown:NO]; |
| 144 if (needShift) { | 144 if (needShift) { |
| 145 [_delegate keyboardActionKeyCode:kKeyCodeMetaUS[kShiftIndex].code | 145 [_delegate keyboardActionKeyCode:kKeyCodeMetaUS[kShiftIndex].code |
| 146 isKeyDown:NO]; | 146 isKeyDown:NO]; |
| 147 } | 147 } |
| 148 } | 148 } |
| 149 } | 149 } |
| 150 @end | 150 @end |
| OLD | NEW |