Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: ppapi/api/ppb_gamepad.idl

Issue 280713004: Update Gamepad API to match the latest specification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/api/ppb_gamepad.idl
diff --git a/ppapi/api/ppb_gamepad.idl b/ppapi/api/ppb_gamepad.idl
index 1552fd67d7101881800ae992b129e086b1aaa6e6..50e2107cfdb04c73dad303f38b7a36159a778546 100644
--- a/ppapi/api/ppb_gamepad.idl
+++ b/ppapi/api/ppb_gamepad.idl
@@ -17,7 +17,7 @@ label Chrome {
/**
* The data for one gamepad device.
*/
-[assert_size(472)]
+[assert_size(672)]
struct PP_GamepadSampleData {
/**
* Number of valid elements in the |axes| array.
@@ -28,7 +28,7 @@ struct PP_GamepadSampleData {
* Normalized values for the axes, indices valid up to |axes_length|-1. Axis
* values range from -1..1, and are in order of "importance".
*/
- float_t[16] axes;
+ double_t[16] axes;
/**
* Number of valid elements in the |buttons| array.
@@ -39,7 +39,7 @@ struct PP_GamepadSampleData {
* Normalized values for the buttons, indices valid up to |buttons_length|
* - 1. Button values range from 0..1, and are in order of importance.
*/
- float_t[32] buttons;
+ double_t[32] buttons;
/**
* Monotonically increasing value that is incremented when the data have
@@ -65,7 +65,7 @@ struct PP_GamepadSampleData {
/**
* The data for all gamepads connected to the system.
*/
-[assert_size(1896)]
+[assert_size(2696)]
struct PP_GamepadsSampleData {
/**
* Number of valid elements in the |items| array.
« build/common.gypi ('K') | « build/common.gypi ('k') | ppapi/c/ppb_gamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698