| Index: webkit/plugins/ppapi/plugin_module.cc
|
| ===================================================================
|
| --- webkit/plugins/ppapi/plugin_module.cc (revision 114053)
|
| +++ webkit/plugins/ppapi/plugin_module.cc (working copy)
|
| @@ -239,13 +239,24 @@
|
| plugin_instance->SimulateInputEvent(input_event_data);
|
| }
|
|
|
| +PP_Var ExecuteScript(PP_Instance instance, PP_Var script, PP_Var* exception) {
|
| + PluginInstance* plugin_instance = host_globals->GetInstance(instance);
|
| + if (!plugin_instance) {
|
| + *exception = PP_MakeUndefined();
|
| + return PP_MakeUndefined();
|
| + }
|
| +
|
| + return plugin_instance->ExecuteScript(instance, script, exception);
|
| +}
|
| +
|
| const PPB_Testing_Dev testing_interface = {
|
| &ReadImageData,
|
| &RunMessageLoop,
|
| &QuitMessageLoop,
|
| &GetLiveObjectsForInstance,
|
| &IsOutOfProcess,
|
| - &SimulateInputEvent
|
| + &SimulateInputEvent,
|
| + &ExecuteScript
|
| };
|
|
|
| // GetInterface ----------------------------------------------------------------
|
| @@ -338,6 +349,7 @@
|
| if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kEnablePepperTesting)) {
|
| if (strcmp(name, PPB_TESTING_DEV_INTERFACE) == 0 ||
|
| + strcmp(name, PPB_TESTING_DEV_INTERFACE_0_8) == 0 ||
|
| strcmp(name, PPB_TESTING_DEV_INTERFACE_0_7) == 0) {
|
| return &testing_interface;
|
| }
|
|
|