Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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. */ | 124 /* (brettw) figure out exactly what this means. */ |
|
bbudge
2016/10/05 14:07:34
Delete comment
| |
| 125 int32_t click_count; | 125 int32_t click_count; |
| 126 }; | 126 }; |
| 127 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Mouse, 20); | 127 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Mouse, 20); |
| 128 | 128 |
| 129 /** | 129 /** |
| 130 * The <code>PP_InputEvent_Wheel</code> struct represents all mouse wheel | 130 * The <code>PP_InputEvent_Wheel</code> struct represents all mouse wheel |
| 131 * events. | 131 * events. |
| 132 */ | 132 */ |
| 133 struct PP_InputEvent_Wheel { | 133 struct PP_InputEvent_Wheel { |
| 134 /** | 134 /** |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 */ | 205 */ |
| 206 PP_Bool scroll_by_page; | 206 PP_Bool scroll_by_page; |
| 207 }; | 207 }; |
| 208 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Wheel, 24); | 208 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Wheel, 24); |
| 209 /** | 209 /** |
| 210 * @} | 210 * @} |
| 211 */ | 211 */ |
| 212 | 212 |
| 213 #endif /* PPAPI_C_PP_INPUT_EVENT_H_ */ | 213 #endif /* PPAPI_C_PP_INPUT_EVENT_H_ */ |
| 214 | 214 |
| OLD | NEW |