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

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

Issue 7308010: Formatting changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/api/pp_point.idl ('k') | ppapi/c/pp_completion_callback.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 5
6 /* From pp_bool.idl modified Sat Jul 16 16:50:26 2011. */ 6 /* From pp_bool.idl modified Wed Aug 10 15:19:02 2011. */
7 7
8 #ifndef PPAPI_C_PP_BOOL_H_ 8 #ifndef PPAPI_C_PP_BOOL_H_
9 #define PPAPI_C_PP_BOOL_H_ 9 #define PPAPI_C_PP_BOOL_H_
10 10
11 #include "ppapi/c/pp_macros.h" 11 #include "ppapi/c/pp_macros.h"
12 12
13 /** 13 /**
14 * @file 14 * @file
15 * This file defines the <code>PP_Bool</code> enumeration for use in PPAPI C 15 * This file defines the <code>PP_Bool</code> enumeration for use in PPAPI C
16 * headers. 16 * headers.
(...skipping 15 matching lines...) Expand all
32 PP_TRUE = 1 32 PP_TRUE = 1
33 } PP_Bool; 33 } PP_Bool;
34 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Bool, 4); 34 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Bool, 4);
35 /** 35 /**
36 * @} 36 * @}
37 */ 37 */
38 38
39 #ifdef __cplusplus 39 #ifdef __cplusplus
40 /** 40 /**
41 * Converts a C++ "bool" type to a PP_Bool. 41 * Converts a C++ "bool" type to a PP_Bool.
42 *
43 * @param[in] b A C++ "bool" type.
44 *
45 * @return A PP_Bool.
42 */ 46 */
43 inline PP_Bool PP_FromBool(bool b) { 47 inline PP_Bool PP_FromBool(bool b) {
44 return b ? PP_TRUE : PP_FALSE; 48 return b ? PP_TRUE : PP_FALSE;
45 } 49 }
46 50
47 /** 51 /**
48 * Converts a PP_Bool to a C++ "bool" type. 52 * Converts a PP_Bool to a C++ "bool" type.
53 *
54 * @param[in] b A PP_Bool.
55 *
56 * @return A C++ "bool" type.
49 */ 57 */
50 inline bool PP_ToBool(PP_Bool b) { 58 inline bool PP_ToBool(PP_Bool b) {
51 return (b != PP_FALSE); 59 return (b != PP_FALSE);
52 } 60 }
53 61
54 #endif // __cplusplus 62 #endif // __cplusplus
55 63
56 #endif /* PPAPI_C_PP_BOOL_H_ */ 64 #endif /* PPAPI_C_PP_BOOL_H_ */
57 65
OLDNEW
« no previous file with comments | « ppapi/api/pp_point.idl ('k') | ppapi/c/pp_completion_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698