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

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

Issue 2879033002: Keyboard Lock Host implementation
Patch Set: Missing change to rename CodeToUsbKeycode to CodeStringToUsbKeycode 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/keycodes/BUILD.gn ('k') | ui/events/keycodes/dom/keycode_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/keycodes/dom/keycode_converter.h
diff --git a/ui/events/keycodes/dom/keycode_converter.h b/ui/events/keycodes/dom/keycode_converter.h
index 1834835c81ea8d5c69bd53018c94d5e152c09e28..7c841db452c389a82d37eaff4743486580f4b618 100644
--- a/ui/events/keycodes/dom/keycode_converter.h
+++ b/ui/events/keycodes/dom/keycode_converter.h
@@ -100,7 +100,11 @@ class KeycodeConverter {
static uint32_t DomCodeToUsbKeycode(DomCode dom_code);
// Convert a DOM3 Event |code| string into a USB keycode value.
- static uint32_t CodeToUsbKeycode(const std::string& code);
+ static uint32_t CodeStringToUsbKeycode(const std::string& code);
+
+ // Convert a DOM3 Event |code| string into an equivalent platform native
+ // keycode.
+ static int CodeStringToNativeKeycode(const std::string& code);
// Static methods to support testing.
static size_t NumKeycodeMapEntriesForTest();
« no previous file with comments | « ui/events/keycodes/BUILD.gn ('k') | ui/events/keycodes/dom/keycode_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698