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

Unified Diff: third_party/WebKit/Source/modules/gamepad/Gamepad.idl

Issue 2300883003: Added Hand attribute to Gamepad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gamepad_pose
Patch Set: Address haraken@'s feedback Created 4 years, 3 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: third_party/WebKit/Source/modules/gamepad/Gamepad.idl
diff --git a/third_party/WebKit/Source/modules/gamepad/Gamepad.idl b/third_party/WebKit/Source/modules/gamepad/Gamepad.idl
index 0e6953fe7e60c071c26ec92b5855cdfc73aacc65..81966a3ebd6a57bab376a824d8d2191b7436ee50 100644
--- a/third_party/WebKit/Source/modules/gamepad/Gamepad.idl
+++ b/third_party/WebKit/Source/modules/gamepad/Gamepad.idl
@@ -23,6 +23,12 @@
* DAMAGE.
*/
+// https://w3c.github.io/gamepad/extensions.html#gamepadhand-enum
+enum GamepadHand {
+ "left",
+ "right"
+};
+
// https://w3c.github.io/gamepad/#gamepad-interface
interface Gamepad {
readonly attribute DOMString id;
@@ -33,4 +39,5 @@ interface Gamepad {
readonly attribute double[] axes;
readonly attribute GamepadButton[] buttons;
[RuntimeEnabled=GamepadExtensions] readonly attribute GamepadPose? pose;
+ [RuntimeEnabled=GamepadExtensions] readonly attribute GamepadHand hand;
};
« no previous file with comments | « third_party/WebKit/Source/modules/gamepad/Gamepad.cpp ('k') | third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698