Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: ppapi/c/pp_point.h

Issue 7399016: More trivial cleanupi of ppapi/c headers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/pp_module.h ('k') | ppapi/c/pp_rect.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 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
6 /* From pp_point.idl modified Sat Jul 16 16:50:26 2011. */
7
5 #ifndef PPAPI_C_PP_POINT_H_ 8 #ifndef PPAPI_C_PP_POINT_H_
6 #define PPAPI_C_PP_POINT_H_ 9 #define PPAPI_C_PP_POINT_H_
7 10
11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_stdint.h"
13
8 /** 14 /**
9 * @file 15 * @file
10 * This file defines the API to create a 2 dimensional point. 16 * This file defines the API to create a 2 dimensional point.
11 * 0,0 is the upper-left starting coordinate. 17 * 0,0 is the upper-left starting coordinate.
12 */ 18 */
13 19
14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_stdint.h"
16 20
17 /** 21 /**
18 *
19 * @addtogroup Structs 22 * @addtogroup Structs
20 * @{ 23 * @{
21 */ 24 */
22
23 /** 25 /**
24 * The PP_Point structure defines the integer x and y coordinates of a point. 26 * The PP_Point structure defines the integer x and y coordinates of a point.
25 */ 27 */
26 struct PP_Point { 28 struct PP_Point {
27 /** 29 /**
28 * This value represents the horizontal coordinate of a point, starting with 0 30 * This value represents the horizontal coordinate of a point, starting with 0
29 * as the left-most coordinate. 31 * as the left-most coordinate.
30 */ 32 */
31 int32_t x; 33 int32_t x;
32
33 /** 34 /**
34 * This value represents the vertical coordinate of a point, starting with 0 35 * This value represents the vertical coordinate of a point, starting with 0
35 * as the top-most coordinate. 36 * as the top-most coordinate.
36 */ 37 */
37 int32_t y; 38 int32_t y;
38 }; 39 };
39 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Point, 8); 40 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Point, 8);
40 41
41 /** 42 /**
42 * The PP_FloatPoint structure defines the floating-point x and y coordinates 43 * The PP_FloatPoint structure defines the floating-point x and y coordinates
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ret.x = x; 78 ret.x = x;
78 ret.y = y; 79 ret.y = y;
79 return ret; 80 return ret;
80 } 81 }
81 /** 82 /**
82 * @} 83 * @}
83 */ 84 */
84 85
85 #endif /* PPAPI_C_PP_POINT_H_ */ 86 #endif /* PPAPI_C_PP_POINT_H_ */
86 87
OLDNEW
« no previous file with comments | « ppapi/c/pp_module.h ('k') | ppapi/c/pp_rect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698