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

Unified Diff: public/platform/Platform.h

Issue 933323002: Add experimental Support for DOM3 KeyboardEvent key value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added BugId for fixing lazy initialization 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: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index b8598e36665f9128c1a0cc67a3f998547a213b9f..8c7cae80c033266cdb032a708ad92e1f5bbe0249 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -629,6 +629,18 @@ public:
// Returns 0, if DOM code enum is not found.
virtual int domEnumFromCodeString(const WebString& codeString) { return 0; }
+ // This method converts from the supplied DOM |key| enum to the
+ // corresponding DOM |key| string value for the key pressed. |domKey| values are
+ // based on the value defined in ui/events/keycodes/dom3/dom_key_data.h.
+ // Returns empty string, if DOM key value is not found.
+ virtual WebString domKeyStringFromEnum(int domKey) { return WebString(); }
+
+ // This method converts from the suppled DOM |key| value to the
+ // embedder's DOM |key| enum for the key pressed. |keyString| is defined in
+ // ui/events/keycodes/dom3/dom_key_data.h.
+ // Returns 0 if DOM key enum is not found.
+ virtual int domKeyEnumFromString(const WebString& keyString) { return 0; }
+
// Quota -----------------------------------------------------------
// Queries the storage partition's storage usage and quota information.

Powered by Google App Engine
This is Rietveld 408576698