| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 * a '%'. The key down and up events will give you the scan code for the "5" | 47 * a '%'. The key down and up events will give you the scan code for the "5" |
| 48 * key, and the character event will give you the '%' character. | 48 * key, and the character event will give you the '%' character. |
| 49 * | 49 * |
| 50 * You may not get a character event for all key down events if the key doesn't | 50 * You may not get a character event for all key down events if the key doesn't |
| 51 * generate a character. Likewise, you may actually get multiple character | 51 * generate a character. Likewise, you may actually get multiple character |
| 52 * events in a row. For example, some locales have an accent key that modifies | 52 * events in a row. For example, some locales have an accent key that modifies |
| 53 * the next character typed. You might get this stream of events: accent down, | 53 * the next character typed. You might get this stream of events: accent down, |
| 54 * accent up (it didn't generate a character), letter key down, letter with | 54 * accent up (it didn't generate a character), letter key down, letter with |
| 55 * accent character event (it was modified by the previous accent key), letter | 55 * accent character event (it was modified by the previous accent key), letter |
| 56 * key up. If the letter can't be combined with the accent, like an umlaut and | 56 * key up. If the letter can't be combined with the accent, like an umlaut and |
| 57 * an 'R', the system might send unlaut down, umlaut up, 'R' key down, umlaut | 57 * an 'R', the system might send umlaut down, umlaut up, 'R' key down, umlaut |
| 58 * character (can't combine it with 'R', so just send the raw unlaut so it | 58 * character (can't combine it with 'R', so just send the raw umlaut so it |
| 59 * isn't lost"), 'R' character event, 'R' key up. | 59 * isn't lost"), 'R' character event, 'R' key up. |
| 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 |
| (...skipping 125 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 |