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

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

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/ppb_class.h ('k') | ppapi/c/ppb_graphics_2d.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) 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
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_
OLDNEW
« no previous file with comments | « ppapi/c/ppb_class.h ('k') | ppapi/c/ppb_graphics_2d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698