Chromium Code Reviews
DescriptionRevise gamepad interface
Per API review, revision to gamepad interface. Still in _dev for now, will move to stable as separate change once we're happy with the interface.
Change summary:
- renames of various fields, and main function in idl per discussion
- timestamp to double, connected to PP_Bool
- remove #pragma pack in header, now copied member-by-member
- update examples
One complication was in removing the #pragma pack. Copying by member in webkit/plugins/ppapi/ppapi_plugin_instance.cc avoids the need to keep webkit and pepper in sync and exactly the same layout (a good thing).
However, when the native_client ppapi proxy is going between 32 and 64 the data structure ends up being a different size due to padding (all the fields are teh same sizes though). To workaround this, I added padding fields, and assert_sizes to confirm the sizes are the same on both "sides". This is similar to how PP_Point, input events, etc. get rpc'd, but perhaps there's a better way.
BUG=112879
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124375
Patch Set 1 #Patch Set 2 : remove local hacks due to webkit.org being down #Patch Set 3 : check connected in example #Patch Set 4 : add explicit include of gamepad header #Patch Set 5 : #Patch Set 6 : pad for 32<->64 proxy #Patch Set 7 : update comment #
Total comments: 4
Patch Set 8 : bump version, move some code to event_conversion #Patch Set 9 : rebase #
Total comments: 3
Patch Set 10 : rebase #Messages
Total messages: 10 (0 generated)
|