OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef REMOTING_CLIENT_NATIVE_DEVICE_KEYMAP_H_ | 5 #ifndef REMOTING_CLIENT_NATIVE_DEVICE_KEYMAP_H_ |
6 #define REMOTING_CLIENT_NATIVE_DEVICE_KEYMAP_H_ | 6 #define REMOTING_CLIENT_NATIVE_DEVICE_KEYMAP_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 namespace remoting { | 11 namespace remoting { |
12 | 12 |
| 13 struct KeycodeWithModifier { |
| 14 uint32_t keycode; |
| 15 uint32_t modifier; |
| 16 }; |
| 17 |
13 uint32_t NativeDeviceKeycodeToUsbKeycode(size_t device_keycode); | 18 uint32_t NativeDeviceKeycodeToUsbKeycode(size_t device_keycode); |
14 | 19 |
| 20 KeycodeWithModifier AsciiToUsbKeycodeWithModifier(const char& ascii); |
| 21 |
15 } // namespace remoting | 22 } // namespace remoting |
16 | 23 |
17 #endif // REMOTING_CLIENT_NATIVE_DEVICE_KEYMAP_H_ | 24 #endif // REMOTING_CLIENT_NATIVE_DEVICE_KEYMAP_H_ |
OLD | NEW |