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

Unified Diff: public/platform/Platform.h

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added keyboardTest failure for virtual/slimmingpaint Created 5 years, 11 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
« no previous file with comments | « Source/web/tests/WebPluginContainerTest.cpp ('k') | public/web/WebInputEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « Source/web/tests/WebPluginContainerTest.cpp ('k') | public/web/WebInputEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698