| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 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_CLIENT_JNI_ANDROID_KEYMAP_H_ | |
| 6 #define REMOTING_CLIENT_JNI_ANDROID_KEYMAP_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 #include <stdint.h> | |
| 10 | |
| 11 #include <memory> | |
| 12 | |
| 13 namespace remoting { | |
| 14 | |
| 15 // TODO(solb): This is a temporary hack to convert Android's virtual keycodes | |
| 16 // into USB scancodes. Unfortunately, the current solution uses key mappings | |
| 17 // whose layout is determined according to the client device's input locale | |
| 18 // instead of the host's. The whole process needs to be rethought to accomplish | |
| 19 // the mappings in a localizable and future-proof way. | |
| 20 // crbug.com/265945 | |
| 21 uint32_t AndroidKeycodeToUsbKeycode(size_t android); | |
| 22 | |
| 23 } // namespace remoting | |
| 24 | |
| 25 #endif | |
| OLD | NEW |