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

Unified Diff: webkit/plugins/ppapi/plugin_module.cc

Issue 8840007: GetDocumentURL is added to PPB_Testing_Dev. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years 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
« ppapi/tests/test_utils.cc ('K') | « ppapi/tests/test_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« ppapi/tests/test_utils.cc ('K') | « ppapi/tests/test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698