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..9aa341faa77183f14dfc0d6b68074f1623d3f346 |
| --- /dev/null |
| +++ b/remoting/client/jni/android_keymap.h |
| @@ -0,0 +1,22 @@ |
| +// 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. |
|
garykac
2013/07/30 17:45:26
Please file a bug for this and add a TODO that ref
solb
2013/07/30 18:17:39
265945
|
| +uint32 AndroidKeycodeToUsbKeycode(int android); |
| + |
| +} // namespace remoting |
| + |
| +#endif |