Chromium Code Reviews| Index: webkit/plugins/ppapi/plugin_module.cc |
| diff --git a/webkit/plugins/ppapi/plugin_module.cc b/webkit/plugins/ppapi/plugin_module.cc |
| index 87bc066d362a29010f16df3f09c5dd50c1868498..d24292392d460ef65a2530d6d61ee235ea696ef8 100644 |
| --- a/webkit/plugins/ppapi/plugin_module.cc |
| +++ b/webkit/plugins/ppapi/plugin_module.cc |
| @@ -238,13 +238,21 @@ void SimulateInputEvent(PP_Instance instance, PP_Resource input_event) { |
| plugin_instance->SimulateInputEvent(input_event_data); |
| } |
| +PP_Var GetDocumentURL(PP_Instance instance, PP_URLComponents_Dev* components) { |
| + PluginInstance* plugin_instance = host_globals->GetInstance(instance); |
| + if (!plugin_instance) |
| + return PP_MakeUndefined(); |
| + return plugin_instance->GetDocumentURL(instance, components); |
| +} |
| + |
| const PPB_Testing_Dev testing_interface = { |
| &ReadImageData, |
| &RunMessageLoop, |
| &QuitMessageLoop, |
| &GetLiveObjectsForInstance, |
| &IsOutOfProcess, |
| - &SimulateInputEvent |
| + &SimulateInputEvent, |
| + &GetDocumentURL |
| }; |
| // GetInterface ---------------------------------------------------------------- |
| @@ -337,7 +345,8 @@ const void* GetInterface(const char* name) { |
| if (CommandLine::ForCurrentProcess()->HasSwitch( |
| switches::kEnablePepperTesting)) { |
| if (strcmp(name, PPB_TESTING_DEV_INTERFACE) == 0 || |
| - strcmp(name, PPB_TESTING_DEV_INTERFACE_0_7) == 0) { |
| + strcmp(name, PPB_TESTING_DEV_INTERFACE_0_7) == 0 || |
| + strcmp(name, PPB_TESTING_DEV_INTERFACE_0_8)) { |
|
yzshen1
2011/12/13 18:49:54
strcmp(...) == 0
ygorshenin
2011/12/14 17:41:10
Done.
|
| return &testing_interface; |
| } |
| } |