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 /** | 6 /** |
7 * This file defines the API used to handle mouse and keyboard input events. | 7 * This file defines the API used to handle mouse and keyboard input events. |
8 */ | 8 */ |
9 | 9 |
10 /** | 10 /** |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 */ | 60 */ |
61 [assert_size(12)] | 61 [assert_size(12)] |
62 struct PP_InputEvent_Character { | 62 struct PP_InputEvent_Character { |
63 /** A combination of the <code>PP_InputEvent_Modifier</code> flags. */ | 63 /** A combination of the <code>PP_InputEvent_Modifier</code> flags. */ |
64 uint32_t modifier; | 64 uint32_t modifier; |
65 | 65 |
66 /** | 66 /** |
67 * This value represents the typed character as a single null-terminated UTF-8 | 67 * This value represents the typed character as a single null-terminated UTF-8 |
68 * character. Any unused bytes will be filled with null bytes. Since the | 68 * character. Any unused bytes will be filled with null bytes. Since the |
69 * maximum UTF-8 character is 4 bytes, there will always be at least one null | 69 * maximum UTF-8 character is 4 bytes, there will always be at least one null |
70 * at the end so you can treat this as a null-termianted UTF-8 string. | 70 * at the end so you can treat this as a null-terminated UTF-8 string. |
71 */ | 71 */ |
72 char[5] text; | 72 char[5] text; |
73 }; | 73 }; |
74 | 74 |
75 /** | 75 /** |
76 * The <code>PP_InputEvent_Mouse</code> struct represents all mouse events | 76 * The <code>PP_InputEvent_Mouse</code> struct represents all mouse events |
77 * except mouse wheel events. | 77 * except mouse wheel events. |
78 */ | 78 */ |
79 [assert_size(20)] | 79 [assert_size(20)] |
80 struct PP_InputEvent_Mouse { | 80 struct PP_InputEvent_Mouse { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 float_t wheel_ticks_y; | 194 float_t wheel_ticks_y; |
195 | 195 |
196 /** | 196 /** |
197 * Indicates if the scroll <code>delta_x</code>/<code>delta_y</code> | 197 * Indicates if the scroll <code>delta_x</code>/<code>delta_y</code> |
198 * indicates pages or lines to scroll by. When true, the user is requesting | 198 * indicates pages or lines to scroll by. When true, the user is requesting |
199 * to scroll by pages. | 199 * to scroll by pages. |
200 */ | 200 */ |
201 PP_Bool scroll_by_page; | 201 PP_Bool scroll_by_page; |
202 }; | 202 }; |
203 | 203 |
OLD | NEW |