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

Side by Side Diff: ppapi/c/pp_input_event.h

Issue 2394773002: Remove 'char' from IDL (Closed)
Patch Set: Remove 'char' from IDL 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
« no previous file with comments | « ppapi/api/private/ppb_net_address_private.idl ('k') | ppapi/c/ppb_gamepad.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 /* From pp_input_event.idl modified Thu Mar 28 10:52:59 2013. */ 6 /* From pp_input_event.idl modified Thu Mar 28 10:52:59 2013. */
7 7
8 #ifndef PPAPI_C_PP_INPUT_EVENT_H_ 8 #ifndef PPAPI_C_PP_INPUT_EVENT_H_
9 #define PPAPI_C_PP_INPUT_EVENT_H_ 9 #define PPAPI_C_PP_INPUT_EVENT_H_
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 */ 74 */
75 struct PP_InputEvent_Character { 75 struct PP_InputEvent_Character {
76 /** A combination of the <code>PP_InputEvent_Modifier</code> flags. */ 76 /** A combination of the <code>PP_InputEvent_Modifier</code> flags. */
77 uint32_t modifier; 77 uint32_t modifier;
78 /** 78 /**
79 * This value represents the typed character as a single null-terminated UTF-8 79 * This value represents the typed character as a single null-terminated UTF-8
80 * character. Any unused bytes will be filled with null bytes. Since the 80 * character. Any unused bytes will be filled with null bytes. Since the
81 * maximum UTF-8 character is 4 bytes, there will always be at least one null 81 * maximum UTF-8 character is 4 bytes, there will always be at least one null
82 * at the end so you can treat this as a null-terminated UTF-8 string. 82 * at the end so you can treat this as a null-terminated UTF-8 string.
83 */ 83 */
84 char text[5]; 84 int8_t text[5];
85 }; 85 };
86 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Character, 12); 86 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Character, 12);
87 87
88 /** 88 /**
89 * The <code>PP_InputEvent_Mouse</code> struct represents all mouse events 89 * The <code>PP_InputEvent_Mouse</code> struct represents all mouse events
90 * except mouse wheel events. 90 * except mouse wheel events.
91 */ 91 */
92 struct PP_InputEvent_Mouse { 92 struct PP_InputEvent_Mouse {
93 /** 93 /**
94 * This value is a bit field combination of the 94 * This value is a bit field combination of the
(...skipping 19 matching lines...) Expand all
114 /** 114 /**
115 * This values represents the y coordinate of the mouse when the event 115 * This values represents the y coordinate of the mouse when the event
116 * occurred. 116 * occurred.
117 * 117 *
118 * In most, but not all, cases these coordinates will just be integers. 118 * In most, but not all, cases these coordinates will just be integers.
119 * For example, the plugin element might be arbitrarily scaled or transformed 119 * For example, the plugin element might be arbitrarily scaled or transformed
120 * in the DOM, and translating a mouse event into the coordinate space of the 120 * in the DOM, and translating a mouse event into the coordinate space of the
121 * plugin will give non-integer values. 121 * plugin will give non-integer values.
122 */ 122 */
123 float y; 123 float y;
124 /* TODO(brettw) figure out exactly what this means. */
125 int32_t click_count; 124 int32_t click_count;
126 }; 125 };
127 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Mouse, 20); 126 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Mouse, 20);
128 127
129 /** 128 /**
130 * The <code>PP_InputEvent_Wheel</code> struct represents all mouse wheel 129 * The <code>PP_InputEvent_Wheel</code> struct represents all mouse wheel
131 * events. 130 * events.
132 */ 131 */
133 struct PP_InputEvent_Wheel { 132 struct PP_InputEvent_Wheel {
134 /** 133 /**
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 */ 204 */
206 PP_Bool scroll_by_page; 205 PP_Bool scroll_by_page;
207 }; 206 };
208 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Wheel, 24); 207 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Wheel, 24);
209 /** 208 /**
210 * @} 209 * @}
211 */ 210 */
212 211
213 #endif /* PPAPI_C_PP_INPUT_EVENT_H_ */ 212 #endif /* PPAPI_C_PP_INPUT_EVENT_H_ */
214 213
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_net_address_private.idl ('k') | ppapi/c/ppb_gamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698