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

Unified Diff: ui/events/keycodes/dom4/keycode_converter.h

Issue 756643006: Remote assistance on Chrome OS Part IX - Input injection on Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Ozone_input_injection
Patch Set: Add UsbCode to DomCode API Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/keycodes/dom4/keycode_converter.h
diff --git a/ui/events/keycodes/dom4/keycode_converter.h b/ui/events/keycodes/dom4/keycode_converter.h
index 5a9fbc722ac213b8705fecc8873d01a810990c45..b4d84891826dfd785df1db044db4e15fc9567548 100644
--- a/ui/events/keycodes/dom4/keycode_converter.h
+++ b/ui/events/keycodes/dom4/keycode_converter.h
@@ -89,6 +89,9 @@ class KeycodeConverter {
// The returned pointer references a static global string.
static const char* UsbKeycodeToCode(uint32_t usb_keycode);
+ // Convert a USB keycode into a DomCode.
+ static DomCode UsbKeycodeToDomCode(uint32_t usb_keycode);
+
// Convert a DOM3 Event |code| string into a USB keycode value.
static uint32_t CodeToUsbKeycode(const char* code);

Powered by Google App Engine
This is Rietveld 408576698