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

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

Issue 929053004: [KeyboardEvent] Add embedder APIs to translate between Dom |key| enum and strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated MakeWebKeyboardEvent function with the changes. Created 5 years, 6 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/dom/dom_key.h
diff --git a/ui/events/keycodes/dom/dom_key.h b/ui/events/keycodes/dom/dom_key.h
index 25ea09209b522e649fae8c8f5fe6e6a3438974d8..23f980b51adc6fa341877d0615e771b54e1f2f31 100644
--- a/ui/events/keycodes/dom/dom_key.h
+++ b/ui/events/keycodes/dom/dom_key.h
@@ -7,6 +7,13 @@
namespace ui {
+// This is specific for Blink Embedded API.
+// A base of 512 (0x400) is used to differentiate between
+// DOM |Key| printable and non-printable values.
+// DOM |Key| printable value is between 0 to 0x400 and
+// DOM |Key| non-printable value is over 0x400.
+#define DOM_KEY_PRINT_NON_DIFF 0x400
Wez 2015/06/25 10:40:21 Where does this value come from? DOM |key| could c
Habib Virji 2015/06/26 17:35:38 Updated to 0x110000
+
#define DOM_KEY_MAP(key, id) id
#define DOM_KEY_MAP_DECLARATION enum class DomKey
#include "ui/events/keycodes/dom/dom_key_data.inc"
« content/child/blink_platform_impl.cc ('K') | « content/child/blink_platform_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698