| Index: ppapi/c/dev/ppb_testing_dev.h
|
| ===================================================================
|
| --- ppapi/c/dev/ppb_testing_dev.h (revision 114053)
|
| +++ ppapi/c/dev/ppb_testing_dev.h (working copy)
|
| @@ -3,7 +3,7 @@
|
| * found in the LICENSE file.
|
| */
|
|
|
| -/* From dev/ppb_testing_dev.idl modified Sat Nov 19 15:58:18 2011. */
|
| +/* From dev/ppb_testing_dev.idl modified Mon Dec 12 11:28:14 2011. */
|
|
|
| #ifndef PPAPI_C_DEV_PPB_TESTING_DEV_H_
|
| #define PPAPI_C_DEV_PPB_TESTING_DEV_H_
|
| @@ -14,10 +14,12 @@
|
| #include "ppapi/c/pp_point.h"
|
| #include "ppapi/c/pp_resource.h"
|
| #include "ppapi/c/pp_stdint.h"
|
| +#include "ppapi/c/pp_var.h"
|
|
|
| #define PPB_TESTING_DEV_INTERFACE_0_7 "PPB_Testing(Dev);0.7"
|
| #define PPB_TESTING_DEV_INTERFACE_0_8 "PPB_Testing(Dev);0.8"
|
| -#define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_8
|
| +#define PPB_TESTING_DEV_INTERFACE_0_9 "PPB_Testing(Dev);0.9"
|
| +#define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_9
|
|
|
| /**
|
| * @file
|
| @@ -112,6 +114,27 @@
|
| * performs.
|
| */
|
| void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event);
|
| + /**
|
| + * ExecuteScript is a pointer to a function that executes the given
|
| + * script in the context of the frame containing the module.
|
| + *
|
| + * The exception, if any, will be returned in *exception. As with the PPB_Var
|
| + * interface, the exception parameter, if non-NULL, must be initialized
|
| + * to a void exception or the function will immediately return. On success,
|
| + * the exception parameter will be set to a "void" var. On failure, the
|
| + * return value will be a "void" var.
|
| + *
|
| + * @param[in] script A string containing the JavaScript to execute.
|
| + * @param[in/out] exception PP_Var containing the exception. Initialize
|
| + * this to NULL if you don't want exception info; initialize this to a void
|
| + * exception if want exception info.
|
| + *
|
| + * @return The result of the script execution, or a "void" var
|
| + * if execution failed.
|
| + */
|
| + struct PP_Var (*ExecuteScript)(PP_Instance instance,
|
| + struct PP_Var script,
|
| + struct PP_Var* exception);
|
| };
|
|
|
| struct PPB_Testing_Dev_0_7 {
|
| @@ -123,6 +146,17 @@
|
| uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance);
|
| PP_Bool (*IsOutOfProcess)();
|
| };
|
| +
|
| +struct PPB_Testing_Dev_0_8 {
|
| + PP_Bool (*ReadImageData)(PP_Resource device_context_2d,
|
| + PP_Resource image,
|
| + const struct PP_Point* top_left);
|
| + void (*RunMessageLoop)(PP_Instance instance);
|
| + void (*QuitMessageLoop)(PP_Instance instance);
|
| + uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance);
|
| + PP_Bool (*IsOutOfProcess)();
|
| + void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event);
|
| +};
|
| /**
|
| * @}
|
| */
|
|
|