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 /** | 7 /** |
8 * This file defines the API to create a touch point or position where fingers
| 8 * This file defines the API to create a touch point or position where fingers
|
9 * makes contact with touch screen device. | 9 * makes contact with touch screen device. |
10 */ | 10 */ |
11 | 11 |
12 /** | 12 /** |
13 * The <code>PP_TouchPoint</code> struct represents all information about a | 13 * The <code>PP_TouchPoint</code> struct represents all information about a |
14 * single touch point, such ase position, id, rotation angle, and pressure. | 14 * single touch point, such as position, id, rotation angle, and pressure. |
15 */ | 15 */ |
16 [assert_size(28), returnByValue] | 16 [assert_size(28), returnByValue] |
17 struct PP_TouchPoint { | 17 struct PP_TouchPoint { |
18 /** | 18 /** |
19 * This value represents the identifier for this TouchPoint. The id | 19 * This value represents the identifier for this TouchPoint. The id |
20 * corresponds to the order in which the points were pressed. For example, | 20 * corresponds to the order in which the points were pressed. For example, |
21 * the first point to be pressed has an id of 0, the second has an id of 1, | 21 * the first point to be pressed has an id of 0, the second has an id of 1, |
22 * and so on. An id can be reused when a touch point is released. For | 22 * and so on. An id can be reused when a touch point is released. For |
23 * example, if two fingers are down, with id 0 and 1, and finger 0 releases, | 23 * example, if two fingers are down, with id 0 and 1, and finger 0 releases, |
24 * the next finger to be pressed can be assigned to id 0. | 24 * the next finger to be pressed can be assigned to id 0. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 */ | 65 */ |
66 PP_INLINE struct PP_TouchPoint PP_MakeTouchPoint(void) { | 66 PP_INLINE struct PP_TouchPoint PP_MakeTouchPoint(void) { |
67 struct PP_TouchPoint result = { 0, {0, 0}, {0, 0}, 0, 0 }; | 67 struct PP_TouchPoint result = { 0, {0, 0}, {0, 0}, 0, 0 }; |
68 return result; | 68 return result; |
69 } | 69 } |
70 /** | 70 /** |
71 * @} | 71 * @} |
72 */ | 72 */ |
73 | 73 |
74 #endinl | 74 #endinl |
OLD | NEW |