Index: public/platform/Platform.h |
diff --git a/public/platform/Platform.h b/public/platform/Platform.h |
index 7a3e56d8cd899c909c6cefe78926c23c571056b8..bc3292f58d8d8925732c11aab39c0934eb04fd48 100644 |
--- a/public/platform/Platform.h |
+++ b/public/platform/Platform.h |
@@ -605,6 +605,18 @@ public: |
// longer notify the listener, if any. |
virtual void stopListening(WebPlatformEventType type) { } |
+ // This method converts from the supplied DOM code enum to the |
+ // embedder's DOM code value for the key pressed. |domCode| values are |
+ // based on the value defined in ui/events/keycodes/dom4/keycode_converter_data.h. |
+ // Returns null string, if DOM code value is not found. |
+ virtual WebString domCodeStringFromEnum(int domCode) { return WebString(); } |
+ |
+ // This method converts from the suppled DOM code value to the |
+ // embedder's DOM code enum for the key pressed. |codeString| is defined in |
+ // ui/events/keycodes/dom4/keycode_converter_data.h. |
+ // Returns 0, if DOM code enum is not found. |
+ virtual int domEnumFromCodeString(const WebString& codeString) { return 0; } |
+ |
// Quota ----------------------------------------------------------- |
// Queries the storage partition's storage usage and quota information. |