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

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

Issue 2910873002: [System-Keyboard-Lock] Add KeycodeConverter::CodeStringToNativeKeycode() function (Closed)
Patch Set: Resolve review comments 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..a4908e2abcd70ad3a2d354dc3d55486cc177450b 100644
--- a/ui/events/keycodes/dom/keycode_converter.h
+++ b/ui/events/keycodes/dom/keycode_converter.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_EVENTS_KEYCODES_DOM4_KEYCODE_CONVERTER_H_
-#define UI_EVENTS_KEYCODES_DOM4_KEYCODE_CONVERTER_H_
+#ifndef UI_EVENTS_KEYCODES_DOM_KEYCODE_CONVERTER_H_
+#define UI_EVENTS_KEYCODES_DOM_KEYCODE_CONVERTER_H_
#include <stddef.h>
#include <stdint.h>
@@ -99,8 +99,11 @@ class KeycodeConverter {
// Convert a DomCode into a USB keycode.
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);
+ // Convert a UI Event |code| string into a USB keycode value.
+ static uint32_t CodeStringToUsbKeycode(const std::string& code);
+
+ // Convert a UI Event |code| string into a native keycode.
+ static int CodeStringToNativeKeycode(const std::string& code);
// Static methods to support testing.
static size_t NumKeycodeMapEntriesForTest();
@@ -113,4 +116,4 @@ class KeycodeConverter {
} // namespace ui
-#endif // UI_EVENTS_KEYCODES_DOM4_KEYCODE_CONVERTER_H_
+#endif // UI_EVENTS_KEYCODES_DOM_KEYCODE_CONVERTER_H_
« 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