| 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 8cf8cfb0fb57c7e07d27ccfeb4aeef1fbe527d53..ae06bf2605a3c6522b7d422843657ae9469b770d 100644
|
| --- a/ppapi/shared_impl/ppb_gamepad_shared.h
|
| +++ b/ppapi/shared_impl/ppb_gamepad_shared.h
|
| @@ -25,6 +25,30 @@ struct WebKitGamepadButton {
|
| double value;
|
| };
|
|
|
| +struct WebKitGamepadVector {
|
| + bool notNull;
|
| + float x, y, z;
|
| +};
|
| +
|
| +struct WebKitGamepadQuaternion {
|
| + bool notNull;
|
| + float x, y, z, w;
|
| +};
|
| +
|
| +struct WebKitGamepadPose {
|
| + bool notNull;
|
| +
|
| + bool hasOrientation;
|
| + bool hasPosition;
|
| +
|
| + WebKitGamepadQuaternion orientation;
|
| + WebKitGamepadVector position;
|
| + WebKitGamepadVector angularVelocity;
|
| + WebKitGamepadVector linearVelocity;
|
| + WebKitGamepadVector angularAcceleration;
|
| + WebKitGamepadVector linearAcceleration;
|
| +};
|
| +
|
| // This must match the definition of blink::Gamepad. The GamepadHost unit test
|
| // has some compile asserts to validate this.
|
| struct WebKitGamepad {
|
| @@ -57,6 +81,8 @@ struct WebKitGamepad {
|
|
|
| // Mapping type (for example "standard")
|
| base::char16 mapping[kMappingLengthCap];
|
| +
|
| + WebKitGamepadPose pose;
|
| };
|
|
|
| // This must match the definition of blink::Gamepads. The GamepadHost unit
|
|
|