Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebGamepad.h |
| diff --git a/third_party/WebKit/public/platform/WebGamepad.h b/third_party/WebKit/public/platform/WebGamepad.h |
| index 7d9dda556c6a58e9bad76c375f06edd8b1ab59a0..33ff9f1654f2a210ed82ccfb7b00fbaedb1d00bc 100644 |
| --- a/third_party/WebKit/public/platform/WebGamepad.h |
| +++ b/third_party/WebKit/public/platform/WebGamepad.h |
| @@ -91,6 +91,12 @@ public: |
| WebGamepadVector linearAcceleration; |
| }; |
| +enum WebGamepadHand { |
| + GamepadHandNone = 0, |
| + GamepadHandLeft = 1, |
| + GamepadHandRight = 2 |
| +}; |
| + |
| // This structure is intentionally POD and fixed size so that it can be shared |
| // memory between hardware polling threads and the rest of the browser. See |
| // also WebGamepads.h. |
| @@ -137,9 +143,11 @@ public: |
| WebUChar mapping[mappingLengthCap]; |
| WebGamepadPose pose; |
| + |
| + WebGamepadHand hand; |
| }; |
| -static_assert(sizeof(WebGamepad) == 838, "WebGamepad has wrong size"); |
| +static_assert(sizeof(WebGamepad) == 842, "WebGamepad has wrong size"); |
|
haraken
2016/09/19 23:55:13
I'm just curious but is this assert useful? WebGam
|
| #pragma pack(pop) |