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_ |
- |