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_PPB_CORE_H_ | 5 #ifndef PPAPI_C_PPB_CORE_H_ |
6 #define PPAPI_C_PPB_CORE_H_ | 6 #define PPAPI_C_PPB_CORE_H_ |
7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" |
8 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
9 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
10 #include "ppapi/c/pp_time.h" | 11 #include "ppapi/c/pp_time.h" |
11 #include "ppapi/c/pp_var.h" | 12 #include "ppapi/c/pp_var.h" |
12 | 13 |
13 struct PP_CompletionCallback; | 14 struct PP_CompletionCallback; |
14 | 15 |
15 #define PPB_CORE_INTERFACE "PPB_Core;0.1" | 16 #define PPB_CORE_INTERFACE "PPB_Core;0.2" |
16 | 17 |
17 /** | 18 /** |
18 * @file | 19 * @file |
19 * Defines the API ... | 20 * Defines the API ... |
20 * | 21 * |
21 * @addtogroup PPB | 22 * @addtogroup PPB |
22 * @{ | 23 * @{ |
23 */ | 24 */ |
24 | 25 |
25 /** {PENDING: describe PPB_CORE} */ | 26 /** {PENDING: describe PPB_CORE} */ |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 void (*CallOnMainThread)(int32_t delay_in_milliseconds, | 76 void (*CallOnMainThread)(int32_t delay_in_milliseconds, |
76 struct PP_CompletionCallback callback, | 77 struct PP_CompletionCallback callback, |
77 int32_t result); | 78 int32_t result); |
78 | 79 |
79 /** | 80 /** |
80 * Returns true if the current thread is the main pepper thread. | 81 * Returns true if the current thread is the main pepper thread. |
81 * | 82 * |
82 * This is useful for implementing sanity checks, and deciding if dispatching | 83 * This is useful for implementing sanity checks, and deciding if dispatching |
83 * via CallOnMainThread() is required. | 84 * via CallOnMainThread() is required. |
84 */ | 85 */ |
85 bool (*IsMainThread)(); | 86 PP_Bool (*IsMainThread)(); |
86 }; | 87 }; |
87 | 88 |
88 /** | 89 /** |
89 * @} | 90 * @} |
90 * End addtogroup PPB | 91 * End addtogroup PPB |
91 */ | 92 */ |
92 #endif // PPAPI_C_DEV_PPB_CORE_DEV_H_ | 93 #endif // PPAPI_C_DEV_PPB_CORE_DEV_H_ |
OLD | NEW |