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

Side by Side Diff: ppapi/api/ppb_gamepad.idl

Issue 9566022: Rename NaCl/pepper gamepad interface from _dev to stable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/api/dev/ppb_gamepad_dev.idl ('k') | ppapi/c/dev/ppb_gamepad_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /** 6 /**
7 * This file defines the <code>PPB_Gamepad_Dev</code> interface, which 7 * This file defines the <code>PPB_Gamepad</code> interface, which
8 * provides access to gamepad devices. 8 * provides access to gamepad devices.
9 */ 9 */
10 10
11 label Chrome { 11 label Chrome {
12 M19 = 0.2 12 M19 = 1.0
13 }; 13 };
14 14
15 /** 15 /**
16 * The data for one gamepad device. 16 * The data for one gamepad device.
17 */ 17 */
18 [assert_size(472)] 18 [assert_size(472)]
19 struct PP_GamepadSampleData_Dev { 19 struct PP_GamepadSampleData {
20 /** 20 /**
21 * Number of valid elements in the |axes| array. 21 * Number of valid elements in the |axes| array.
22 */ 22 */
23 uint32_t axes_length; 23 uint32_t axes_length;
24 24
25 /** 25 /**
26 * Normalized values for the axes, indices valid up to |axes_length|-1. Axis 26 * Normalized values for the axes, indices valid up to |axes_length|-1. Axis
27 * values range from -1..1, and are in order of "importance". 27 * values range from -1..1, and are in order of "importance".
28 */ 28 */
29 float_t[16] axes; 29 float_t[16] axes;
(...skipping 27 matching lines...) Expand all
57 PP_Bool connected; 57 PP_Bool connected;
58 58
59 /* Padding to make the struct the same size between 64 and 32. */ 59 /* Padding to make the struct the same size between 64 and 32. */
60 char[4] unused_pad_; 60 char[4] unused_pad_;
61 }; 61 };
62 62
63 /** 63 /**
64 * The data for all gamepads connected to the system. 64 * The data for all gamepads connected to the system.
65 */ 65 */
66 [assert_size(1896)] 66 [assert_size(1896)]
67 struct PP_GamepadsSampleData_Dev { 67 struct PP_GamepadsSampleData {
68 /** 68 /**
69 * Number of valid elements in the |items| array. 69 * Number of valid elements in the |items| array.
70 */ 70 */
71 uint32_t length; 71 uint32_t length;
72 72
73 /* Padding to make the struct the same size between 64 and 32. */ 73 /* Padding to make the struct the same size between 64 and 32. */
74 char[4] unused_pad_; 74 char[4] unused_pad_;
75 75
76 /** 76 /**
77 * Data for an individual gamepad device connected to the system. 77 * Data for an individual gamepad device connected to the system.
78 */ 78 */
79 PP_GamepadSampleData_Dev[4] items; 79 PP_GamepadSampleData[4] items;
80 }; 80 };
81 81
82 /** 82 /**
83 * The <code>PPB_Gamepad_Dev</code> interface allows retrieving data from 83 * The <code>PPB_Gamepad</code> interface allows retrieving data from
84 * gamepad/joystick devices that are connected to the system. 84 * gamepad/joystick devices that are connected to the system.
85 */ 85 */
86 [version=0.2, macro="PPB_GAMEPAD_DEV_INTERFACE"] 86 [version=1.0, macro="PPB_GAMEPAD_INTERFACE"]
87 interface PPB_Gamepad_Dev { 87 interface PPB_Gamepad {
88 /** 88 /**
89 * Samples the current state of the connected gamepads. 89 * Samples the current state of the connected gamepads.
90 */ 90 */
91 void Sample( 91 void Sample(
92 [in] PP_Instance instance, 92 [in] PP_Instance instance,
93 [out] PP_GamepadsSampleData_Dev data); 93 [out] PP_GamepadsSampleData data);
94 94
95 }; 95 };
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_gamepad_dev.idl ('k') | ppapi/c/dev/ppb_gamepad_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698