Chromium Code Reviews| 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 7bc1e6102e19c9f524899b140704f83fbee28d7c..ddeaf98e3510fd211357f3490b81a72bb150cf59 100644 |
| --- a/ppapi/shared_impl/ppb_gamepad_shared.h |
| +++ b/ppapi/shared_impl/ppb_gamepad_shared.h |
| @@ -17,10 +17,16 @@ namespace ppapi { |
| #pragma pack(push, 1) |
| +struct WebKitGamepadButton { |
| + bool pressed; |
| + float value; |
|
bbudge
2014/02/24 23:11:06
nit: indent should be 2 spaces
|
| +}; |
| + |
| // This must match the definition of blink::Gamepad. The GamepadHost unit test |
| // has some compile asserts to validate this. |
| struct WebKitGamepad { |
| static const size_t kIdLengthCap = 128; |
| + static const size_t kMappingLengthCap = 16; |
| static const size_t kAxesLengthCap = 16; |
| static const size_t kButtonsLengthCap = 32; |
| @@ -44,7 +50,10 @@ struct WebKitGamepad { |
| unsigned buttons_length; |
| // Normalized values representing buttons, in the range [0..1]. |
| - float buttons[kButtonsLengthCap]; |
| + WebKitGamepadButton buttons[kButtonsLengthCap]; |
| + |
| + // Mapping type (for example "standard") |
| + base::char16 mapping[kMappingLengthCap]; |
| }; |
| // This must match the definition of blink::Gamepads. The GamepadHost unit |