OLD | NEW |
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 ppb_core.idl modified Tue Jul 19 13:37:04 2011. */ | 6 /* From ppb_core.idl modified Tue Aug 23 11:13:37 2011. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_CORE_H_ | 8 #ifndef PPAPI_C_PPB_CORE_H_ |
9 #define PPAPI_C_PPB_CORE_H_ | 9 #define PPAPI_C_PPB_CORE_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
16 #include "ppapi/c/pp_time.h" | 16 #include "ppapi/c/pp_time.h" |
(...skipping 16 matching lines...) Expand all Loading... |
33 /** | 33 /** |
34 * The <code>PPB_Core</code> interface contains pointers to functions related | 34 * The <code>PPB_Core</code> interface contains pointers to functions related |
35 * to memory management, time, and threads on the browser. | 35 * to memory management, time, and threads on the browser. |
36 * | 36 * |
37 */ | 37 */ |
38 struct PPB_Core { | 38 struct PPB_Core { |
39 /** | 39 /** |
40 * | 40 * |
41 * AddRefResource() adds a reference to a resource. | 41 * AddRefResource() adds a reference to a resource. |
42 * | 42 * |
43 * @param[in] config A <code>PP_Resource</code> containing the resource. | 43 * @param[in] config A <code>PP_Resource</code> corresponding to a |
| 44 * resource. |
44 */ | 45 */ |
45 void (*AddRefResource)(PP_Resource resource); | 46 void (*AddRefResource)(PP_Resource resource); |
46 /** | 47 /** |
47 * ReleaseResource() removes a reference from a resource. | 48 * ReleaseResource() removes a reference from a resource. |
48 * | 49 * |
49 * @param[in] config A <code>PP_Resource</code> containing the resource. | 50 * @param[in] config A <code>PP_Resource</code> corresponding to a |
| 51 * resource. |
50 */ | 52 */ |
51 void (*ReleaseResource)(PP_Resource resource); | 53 void (*ReleaseResource)(PP_Resource resource); |
52 /** | 54 /** |
53 * GetTime() returns the "wall clock time" according to the | 55 * GetTime() returns the "wall clock time" according to the |
54 * browser. | 56 * browser. |
55 * | 57 * |
56 * @return A <code>PP_Time</code> containing the "wall clock time" according | 58 * @return A <code>PP_Time</code> containing the "wall clock time" according |
57 * to the browser. | 59 * to the browser. |
58 */ | 60 */ |
59 PP_Time (*GetTime)(); | 61 PP_Time (*GetTime)(); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 * current thread is the main pepper thread, otherwise <code>PP_FALSE</code>. | 108 * current thread is the main pepper thread, otherwise <code>PP_FALSE</code>. |
107 */ | 109 */ |
108 PP_Bool (*IsMainThread)(); | 110 PP_Bool (*IsMainThread)(); |
109 }; | 111 }; |
110 /** | 112 /** |
111 * @} | 113 * @} |
112 */ | 114 */ |
113 | 115 |
114 #endif /* PPAPI_C_PPB_CORE_H_ */ | 116 #endif /* PPAPI_C_PPB_CORE_H_ */ |
115 | 117 |
OLD | NEW |