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_touch_point.idl modified Mon Feb 11 15:42:54 2013. */ | 6 /* From pp_touch_point.idl modified Thu Mar 28 10:13:07 2013. */ |
7 | 7 |
8 #ifndef PPAPI_C_PP_TOUCH_POINT_H_ | 8 #ifndef PPAPI_C_PP_TOUCH_POINT_H_ |
9 #define PPAPI_C_PP_TOUCH_POINT_H_ | 9 #define PPAPI_C_PP_TOUCH_POINT_H_ |
10 | 10 |
11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
12 #include "ppapi/c/pp_point.h" | 12 #include "ppapi/c/pp_point.h" |
13 #include "ppapi/c/pp_stdint.h" | 13 #include "ppapi/c/pp_stdint.h" |
14 | 14 |
15 /** | 15 /** |
16 * @file | 16 * @file |
17 * This file defines the API to create a touch point or position where fingers | 17 * This file defines the API to create a touch point or position where fingers |
18 * makes contact with touch screen device. | 18 * makes contact with touch screen device. |
19 */ | 19 */ |
20 | 20 |
21 | 21 |
22 /** | 22 /** |
23 * @addtogroup Structs | 23 * @addtogroup Structs |
24 * @{ | 24 * @{ |
25 */ | 25 */ |
26 /** | 26 /** |
27 * The <code>PP_TouchPoint</code> struct represents all information about a | 27 * The <code>PP_TouchPoint</code> struct represents all information about a |
28 * single touch point, such ase position, id, rotation angle, and pressure. | 28 * single touch point, such as position, id, rotation angle, and pressure. |
29 */ | 29 */ |
30 struct PP_TouchPoint { | 30 struct PP_TouchPoint { |
31 /** | 31 /** |
32 * This value represents the identifier for this TouchPoint. The id | 32 * This value represents the identifier for this TouchPoint. The id |
33 * corresponds to the order in which the points were pressed. For example, | 33 * corresponds to the order in which the points were pressed. For example, |
34 * the first point to be pressed has an id of 0, the second has an id of 1, | 34 * the first point to be pressed has an id of 0, the second has an id of 1, |
35 * and so on. An id can be reused when a touch point is released. For | 35 * and so on. An id can be reused when a touch point is released. For |
36 * example, if two fingers are down, with id 0 and 1, and finger 0 releases, | 36 * example, if two fingers are down, with id 0 and 1, and finger 0 releases, |
37 * the next finger to be pressed can be assigned to id 0. | 37 * the next finger to be pressed can be assigned to id 0. |
38 */ | 38 */ |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 PP_INLINE struct PP_TouchPoint PP_MakeTouchPoint(void) { | 78 PP_INLINE struct PP_TouchPoint PP_MakeTouchPoint(void) { |
79 struct PP_TouchPoint result = { 0, {0, 0}, {0, 0}, 0, 0 }; | 79 struct PP_TouchPoint result = { 0, {0, 0}, {0, 0}, 0, 0 }; |
80 return result; | 80 return result; |
81 } | 81 } |
82 /** | 82 /** |
83 * @} | 83 * @} |
84 */ | 84 */ |
85 | 85 |
86 #endif /* PPAPI_C_PP_TOUCH_POINT_H_ */ | 86 #endif /* PPAPI_C_PP_TOUCH_POINT_H_ */ |
87 | 87 |
OLD | NEW |