OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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_message_loop.idl modified Mon Nov 12 13:33:16 2012. */ | 6 /* From ppb_message_loop.idl modified Tue Nov 20 08:49:26 2012. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_MESSAGE_LOOP_H_ | 8 #ifndef PPAPI_C_PPB_MESSAGE_LOOP_H_ |
9 #define PPAPI_C_PPB_MESSAGE_LOOP_H_ | 9 #define PPAPI_C_PPB_MESSAGE_LOOP_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_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 * | 148 * |
149 * This may be called from any thread. After your thread starts but before | 149 * This may be called from any thread. After your thread starts but before |
150 * issuing any other PPAPI calls on it, you must associate it with a message | 150 * issuing any other PPAPI calls on it, you must associate it with a message |
151 * loop by calling AttachToCurrentThread. | 151 * loop by calling AttachToCurrentThread. |
152 */ | 152 */ |
153 PP_Resource (*Create)(PP_Instance instance); | 153 PP_Resource (*Create)(PP_Instance instance); |
154 /** | 154 /** |
155 * Returns a resource identifying the message loop for the main thread. The | 155 * Returns a resource identifying the message loop for the main thread. The |
156 * main thread always has a message loop created by the system. | 156 * main thread always has a message loop created by the system. |
157 */ | 157 */ |
158 PP_Resource (*GetForMainThread)(); | 158 PP_Resource (*GetForMainThread)(void); |
159 /** | 159 /** |
160 * Returns a reference to the PPB_MessageLoop object attached to the current | 160 * Returns a reference to the PPB_MessageLoop object attached to the current |
161 * thread. If there is no attached message loop, the return value will be 0. | 161 * thread. If there is no attached message loop, the return value will be 0. |
162 */ | 162 */ |
163 PP_Resource (*GetCurrent)(); | 163 PP_Resource (*GetCurrent)(void); |
164 /** | 164 /** |
165 * Sets the given message loop resource as being the associated message loop | 165 * Sets the given message loop resource as being the associated message loop |
166 * for the currently running thread. | 166 * for the currently running thread. |
167 * | 167 * |
168 * You must call this function exactly once on a thread before making any | 168 * You must call this function exactly once on a thread before making any |
169 * PPAPI calls. A message loop can only be attached to one thread, and the | 169 * PPAPI calls. A message loop can only be attached to one thread, and the |
170 * message loop can not be changed later. The message loop will be attached | 170 * message loop can not be changed later. The message loop will be attached |
171 * as long as the thread is running or until you quit with should_destroy | 171 * as long as the thread is running or until you quit with should_destroy |
172 * set to PP_TRUE. | 172 * set to PP_TRUE. |
173 * | 173 * |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 int32_t (*PostQuit)(PP_Resource message_loop, PP_Bool should_destroy); | 280 int32_t (*PostQuit)(PP_Resource message_loop, PP_Bool should_destroy); |
281 }; | 281 }; |
282 | 282 |
283 typedef struct PPB_MessageLoop_1_0 PPB_MessageLoop; | 283 typedef struct PPB_MessageLoop_1_0 PPB_MessageLoop; |
284 /** | 284 /** |
285 * @} | 285 * @} |
286 */ | 286 */ |
287 | 287 |
288 #endif /* PPAPI_C_PPB_MESSAGE_LOOP_H_ */ | 288 #endif /* PPAPI_C_PPB_MESSAGE_LOOP_H_ */ |
289 | 289 |
OLD | NEW |