| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef PPAPI_C_PP_POINT_H_ | 5 #ifndef PPAPI_C_PP_POINT_H_ |
| 6 #define PPAPI_C_PP_POINT_H_ | 6 #define PPAPI_C_PP_POINT_H_ |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * @file | 9 * @file |
| 10 * Defines the API ... | 10 * Defines the API ... |
| 11 * | 11 * |
| 12 * @addtogroup PP | 12 * @addtogroup PP |
| 13 * @{ | 13 * @{ |
| 14 */ | 14 */ |
| 15 | 15 |
| 16 #include "ppapi/c/pp_macros.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
| 17 | 18 |
| 18 struct PP_Point { | 19 struct PP_Point { |
| 19 int32_t x; | 20 int32_t x; |
| 20 int32_t y; | 21 int32_t y; |
| 21 }; | 22 }; |
| 22 | 23 |
| 23 inline struct PP_Point PP_MakePoint(int32_t x, int32_t y) { | 24 PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y) { |
| 24 struct PP_Point ret; | 25 struct PP_Point ret; |
| 25 ret.x = x; | 26 ret.x = x; |
| 26 ret.y = y; | 27 ret.y = y; |
| 27 return ret; | 28 return ret; |
| 28 } | 29 } |
| 29 | 30 |
| 30 /** | 31 /** |
| 31 * @} | 32 * @} |
| 32 * End addtogroup PP | 33 * End addtogroup PP |
| 33 */ | 34 */ |
| 34 | 35 |
| 35 #endif // PPAPI_C_PP_POINT_H_ | 36 #endif // PPAPI_C_PP_POINT_H_ |
| OLD | NEW |