Index: ppapi/shared_impl/ppb_gamepad_shared.h |
diff --git a/ppapi/shared_impl/ppb_gamepad_shared.h b/ppapi/shared_impl/ppb_gamepad_shared.h |
index ae06bf2605a3c6522b7d422843657ae9469b770d..8787320ef9929a95d6f10c4109814b2528006b68 100644 |
--- a/ppapi/shared_impl/ppb_gamepad_shared.h |
+++ b/ppapi/shared_impl/ppb_gamepad_shared.h |
@@ -49,6 +49,12 @@ struct WebKitGamepadPose { |
WebKitGamepadVector linearAcceleration; |
}; |
+enum WebKitGamepadHand { |
+ WEBKIT_GAMEPAD_HAND_NONE = 0, |
+ WEBKIT_GAMEPAD_HAND_LEFT = 1, |
+ WEBKIT_GAMEPAD_HAND_RIGHT = 2 |
+}; |
+ |
// This must match the definition of blink::Gamepad. The GamepadHost unit test |
// has some compile asserts to validate this. |
struct WebKitGamepad { |
@@ -83,6 +89,8 @@ struct WebKitGamepad { |
base::char16 mapping[kMappingLengthCap]; |
WebKitGamepadPose pose; |
+ |
+ WebKitGamepadHand hand; |
}; |
// This must match the definition of blink::Gamepads. The GamepadHost unit |