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

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

Issue 2871993003: Moving the iOS directory to be remoting top level. (Closed)
Patch Set: //remoting/ios was the old landing target for the internal iOS application. Fix. 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
« no previous file with comments | « remoting/ios/key_input.h ('k') | remoting/ios/key_input_unittest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/ios/key_input.h ('k') | remoting/ios/key_input_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698