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

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

Issue 2910873002: [System-Keyboard-Lock] Add KeycodeConverter::CodeStringToNativeKeycode() function (Closed)
Patch Set: 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 | « remoting/client/plugin/pepper_input_handler.cc ('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..1b586e9ec24f90852b62c024a6f5315a444bf53e 100644
--- a/ui/events/keycodes/dom/keycode_converter.h
+++ b/ui/events/keycodes/dom/keycode_converter.h
@@ -100,7 +100,10 @@ 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 a native keycode.
garykac 2017/06/02 01:19:38 Use "UI Event" instead of "DOM3 Event". "Dom3 eve
Hzj_jie 2017/06/02 02:13:13 Done.
+ static int CodeStringToNativeKeycode(const std::string& code);
// Static methods to support testing.
static size_t NumKeycodeMapEntriesForTest();
« no previous file with comments | « remoting/client/plugin/pepper_input_handler.cc ('k') | ui/events/keycodes/dom/keycode_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698