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

Side by Side Diff: remoting/client/native_device_keymap.h

Issue 2868383003: [CRD iOS] Send key events to the session. (Closed)
Patch Set: Adding backspace support to the keyboard. Created 3 years, 7 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
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);
Yuwei 2017/05/15 19:38:07 A char is not harder to copy than a pointer. just
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698