Chromium Code Reviews| Index: remoting/client/jni/android_keymap.h |
| diff --git a/remoting/client/jni/android_keymap.h b/remoting/client/jni/android_keymap.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9a9f3a3ff271b7d97abde8b3d1090885138cec84 |
| --- /dev/null |
| +++ b/remoting/client/jni/android_keymap.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_CLIENT_JNI_ANDROID_KEYMAP_H_ |
| +#define REMOTING_CLIENT_JNI_ANDROID_KEYMAP_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/memory/scoped_ptr.h" |
| + |
| +namespace remoting { |
| + |
| +// This is a temporary hack to convert Android's virtual keycodes into USB |
| +// scancodes. Unfortunately, the current solution uses key mappings whose |
| +// layout is determined according to the client device's input locale instead |
| +// of the host's internationalization preferences. The whole process needs to |
| +// be rethought to accomplish this in an localizable and future-proof way. |
| +// TODO(solb): crbug.com/265945 |
|
Sergey Ulanov
2013/07/30 19:19:27
nit: TODO() should be on line 13 before the commen
solb
2013/07/30 21:30:54
Patched in https://codereview.chromium.org/2123600
|
| +uint32 AndroidKeycodeToUsbKeycode(int android); |
| + |
| +} // namespace remoting |
| + |
| +#endif |