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

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

Issue 2394773002: Remove 'char' from IDL (Closed)
Patch Set: Created 4 years, 2 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
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</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
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 */ 52 */
53 uint16_t[128] id; 53 uint16_t[128] id;
54 54
55 /** 55 /**
56 * Is there a gamepad connected at this index? If this is false, no other 56 * Is there a gamepad connected at this index? If this is false, no other
57 * data in this structure is valid. 57 * data in this structure is valid.
58 */ 58 */
59 PP_Bool connected; 59 PP_Bool connected;
60 60
61 /* Padding to make the struct the same size between 64 and 32. */ 61 /* Padding to make the struct the same size between 64 and 32. */
62 char[4] unused_pad_; 62 int8_t[4] unused_pad_;
63 }; 63 };
64 64
65 /** 65 /**
66 * The data for all gamepads connected to the system. 66 * The data for all gamepads connected to the system.
67 */ 67 */
68 [assert_size(1896)] 68 [assert_size(1896)]
69 struct PP_GamepadsSampleData { 69 struct PP_GamepadsSampleData {
70 /** 70 /**
71 * Number of valid elements in the |items| array. 71 * Number of valid elements in the |items| array.
72 */ 72 */
73 uint32_t length; 73 uint32_t length;
74 74
75 /* Padding to make the struct the same size between 64 and 32. */ 75 /* Padding to make the struct the same size between 64 and 32. */
76 char[4] unused_pad_; 76 int8_t[4] unused_pad_;
77 77
78 /** 78 /**
79 * Data for an individual gamepad device connected to the system. 79 * Data for an individual gamepad device connected to the system.
80 */ 80 */
81 PP_GamepadSampleData[4] items; 81 PP_GamepadSampleData[4] items;
82 }; 82 };
83 83
84 /** 84 /**
85 * The <code>PPB_Gamepad</code> interface allows retrieving data from 85 * The <code>PPB_Gamepad</code> interface allows retrieving data from
86 * gamepad/joystick devices that are connected to the system. 86 * gamepad/joystick devices that are connected to the system.
87 */ 87 */
88 [version=1.0, macro="PPB_GAMEPAD_INTERFACE", singleton] 88 [version=1.0, macro="PPB_GAMEPAD_INTERFACE", singleton]
89 interface PPB_Gamepad { 89 interface PPB_Gamepad {
90 /** 90 /**
91 * Samples the current state of the available gamepads. 91 * Samples the current state of the available gamepads.
92 */ 92 */
93 [always_set_output_parameters] 93 [always_set_output_parameters]
94 void Sample( 94 void Sample(
95 [in] PP_Instance instance, 95 [in] PP_Instance instance,
96 [out] PP_GamepadsSampleData data); 96 [out] PP_GamepadsSampleData data);
97 }; 97 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698