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

Unified Diff: ppapi/c/ppb_class.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/c/pp_var.h ('k') | ppapi/c/ppb_core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppb_class.h
===================================================================
--- ppapi/c/ppb_class.h (revision 65116)
+++ ppapi/c/ppb_class.h (working copy)
@@ -8,9 +8,10 @@
#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/pp_var.h"
#include "ppapi/c/ppb_var.h"
-#define PPB_CLASS_INTERFACE "PPB_Class;0.1"
+#define PPB_CLASS_INTERFACE "PPB_Class;0.2"
/**
* @file
@@ -29,9 +30,11 @@
* different native_ptr information, make sure you can handle the case of
* JS calling one object's function with another object set as this.
*/
-typedef PP_Var (*PP_ClassFunction)(void* native_ptr, PP_Var this_object,
- PP_Var* args, uint32_t argc,
- PP_Var* exception);
+typedef struct PP_Var (*PP_ClassFunction)(void* native_ptr,
+ struct PP_Var this_object, /*NOLINT*/
+ struct PP_Var* args,
+ uint32_t argc,
+ struct PP_Var* exception);
typedef void (*PP_ClassDestructor)(void* native_ptr);
@@ -101,7 +104,7 @@
PP_Resource (*Create)(PP_Module module,
PP_ClassDestructor destruct,
PP_ClassFunction invoke,
- PP_ClassProperty* properties);
+ struct PP_ClassProperty* properties);
/**
* Creates an instance of the given class, and attaches given native pointer
@@ -109,8 +112,9 @@
*
* If the class_object is invalid, throws an exception.
*/
- PP_Var (*Instantiate)(PP_Resource class_object,
- void* native_ptr, PP_Var* exception);
+ struct PP_Var (*Instantiate)(PP_Resource class_object,
+ void* native_ptr,
+ struct PP_Var* exception);
};
/**
@@ -118,4 +122,3 @@
* End addtogroup PPP
*/
#endif // PPAPI_C_PPP_CLASS_H_
-
« no previous file with comments | « ppapi/c/pp_var.h ('k') | ppapi/c/ppb_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698