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

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

Issue 186733007: iOS Chromoting Client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_IOS_KEY_INPUT_H_
6 #define REMOTING_IOS_KEY_INPUT_H_
7
8 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h>
10
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
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
15 // mapping for each keyboard manually.
16
17 // Contract to handle translated key presses from the on-screen keyboard to
18 // the format requried for Chromoting keyboard input
19 @protocol KeyInputDelegate <NSObject>
20
21 - (void)keyboardActionKeyCode:(uint32_t)keyPressed isKeyDown:(BOOL)keyDown;
22
23 @end
24
25 @interface KeyInput : UIView<UIKeyInput>
26
27 @property(weak, nonatomic) id<KeyInputDelegate> delegate;
28
29 @end
30
31 #endif // REMOTING_IOS_KEY_INPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698