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

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

Issue 1120813002: Remove EF_FUNCTION_KEY and EF_NUMPAD_KEY. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add and fix tests Created 5 years, 8 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
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 1ed0d1231488ebf85e015d5075980b98c8d31d56..afebc03ae114d20a610873b6d360db4adf49c371 100644
--- a/ui/events/keycodes/dom4/keycode_converter.h
+++ b/ui/events/keycodes/dom4/keycode_converter.h
@@ -16,6 +16,8 @@ namespace ui {
enum class DomCode;
enum class DomKey;
+enum class DomCodeLocation { STANDARD, LEFT, RIGHT, NUMPAD };
kpschoedel 2015/05/01 16:13:18 I know the spec calls these DOM_KEY_LOCATION_STAND
Wez 2015/05/05 00:29:09 I'd argue that DomKeyLocation is the better name,
kpschoedel 2015/05/05 16:30:08 Done.
+
// This structure is used to define the keycode mapping table.
// It is defined here because the unittests need access to it.
typedef struct {
@@ -62,6 +64,9 @@ class KeycodeConverter {
// Convert a DomCode into a UI Events |code| string value.
static const char* DomCodeToCodeString(DomCode dom_code);
+ // Return the DomCodeLocation of a DomCode.
Wez 2015/05/05 00:29:09 Suggest stating explicitly that this is used to di
kpschoedel 2015/05/05 16:30:08 Done.
+ static DomCodeLocation DomCodeToLocation(DomCode dom_code);
+
// Convert a UI Events |key| string value into a DomKey.
static DomKey KeyStringToDomKey(const char* key);

Powered by Google App Engine
This is Rietveld 408576698