| 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_SIZE_H_ | 5 #ifndef PPAPI_C_PP_SIZE_H_ |
| 6 #define PPAPI_C_PP_SIZE_H_ | 6 #define PPAPI_C_PP_SIZE_H_ |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * @file | 9 * @file |
| 10 * Defines the API ... | 10 * Defines the API ... |
| 11 * | |
| 12 * @addtogroup PP | |
| 13 * @{ | |
| 14 */ | 11 */ |
| 15 | 12 |
| 16 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 17 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
| 18 | 15 |
| 16 /** |
| 17 * @addtogroup Structs |
| 18 * @{ |
| 19 */ |
| 19 struct PP_Size { | 20 struct PP_Size { |
| 20 int32_t width; | 21 int32_t width; |
| 21 int32_t height; | 22 int32_t height; |
| 22 }; | 23 }; |
| 23 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Size, 8); | 24 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Size, 8); |
| 25 /** |
| 26 * @} |
| 27 */ |
| 24 | 28 |
| 29 /** |
| 30 * @addtogroup Functions |
| 31 * @{ |
| 32 */ |
| 25 PP_INLINE struct PP_Size PP_MakeSize(int32_t w, int32_t h) { | 33 PP_INLINE struct PP_Size PP_MakeSize(int32_t w, int32_t h) { |
| 26 struct PP_Size ret; | 34 struct PP_Size ret; |
| 27 ret.width = w; | 35 ret.width = w; |
| 28 ret.height = h; | 36 ret.height = h; |
| 29 return ret; | 37 return ret; |
| 30 } | 38 } |
| 31 | |
| 32 /** | 39 /** |
| 33 * @} | 40 * @} |
| 34 * End addtogroup PP | |
| 35 */ | 41 */ |
| 36 #endif /* PPAPI_C_PP_SIZE_H_ */ | 42 #endif /* PPAPI_C_PP_SIZE_H_ */ |
| 37 | 43 |
| OLD | NEW |