Index: public/platform/Platform.h |
diff --git a/public/platform/Platform.h b/public/platform/Platform.h |
index 562aa1cc9017ff92c597bc1b64e3888c913f8974..190f70ed0c91283328d866c7f11dd79e93807b75 100644 |
--- a/public/platform/Platform.h |
+++ b/public/platform/Platform.h |
@@ -616,6 +616,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(); } |
Rick Byers
2015/04/20 19:49:46
Since this feature is 'experimental' I assume it's
Habib Virji
2015/04/29 16:00:50
Yes Rick, i will be working this week to push all
|
+ |
+ // 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. |