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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc

Issue 8920005: Add TestingInstance::EvalScript method which posts a message that the test page can eval(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc (revision 114869)
+++ ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc (working copy)
@@ -102,6 +102,19 @@
return PP_FALSE;
}
+void SimulateInputEvent(PP_Instance instance, PP_Resource input_event) {
+ DebugPrintf("PPB_Testing::SimulateInputEvent: instance=%"NACL_PRId32", "
+ "input_event=%"NACL_PRId32"\n",
+ instance, input_event);
+
+ NaClSrpcError srpc_result =
+ PpbTestingRpcClient::PPB_Testing_SimulateInputEvent(GetMainSrpcChannel(),
+ instance,
+ input_event);
+ DebugPrintf("PPB_Testing::SimulateInputEvent: %s\n",
+ NaClSrpcErrorString(srpc_result));
+}
+
struct PP_Var GetDocumentURL(PP_Instance instance,
struct PP_URLComponents_Dev* components) {
DebugPrintf("PPB_Testing::GetDocumentURL: "
@@ -140,7 +153,7 @@
QuitMessageLoop,
GetLiveObjectsForInstance,
IsOutOfProcess,
- NULL,
+ SimulateInputEvent,
GetDocumentURL
};
return &testing_interface;

Powered by Google App Engine
This is Rietveld 408576698