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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.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/ppb_rpc_server.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc (revision 114869)
+++ ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc (working copy)
@@ -2056,6 +2056,21 @@
);
}
+static void PPB_Testing_SimulateInputEventDispatcher(
+ NaClSrpcRpc* rpc,
+ NaClSrpcArg** inputs,
+ NaClSrpcArg** outputs,
+ NaClSrpcClosure* done
+) {
+ UNREFERENCED_PARAMETER(outputs);
+ PpbTestingRpcServer::PPB_Testing_SimulateInputEvent(
+ rpc,
+ done,
+ inputs[0]->u.ival,
+ inputs[1]->u.ival
+ );
+}
+
static void PPB_Testing_GetDocumentURLDispatcher(
NaClSrpcRpc* rpc,
NaClSrpcArg** inputs,
@@ -2692,6 +2707,7 @@
{ "PPB_Testing_RunMessageLoop:i:", PPB_Testing_RunMessageLoopDispatcher },
{ "PPB_Testing_QuitMessageLoop:i:", PPB_Testing_QuitMessageLoopDispatcher },
{ "PPB_Testing_GetLiveObjectsForInstance:i:i", PPB_Testing_GetLiveObjectsForInstanceDispatcher },
+ { "PPB_Testing_SimulateInputEvent:ii:", PPB_Testing_SimulateInputEventDispatcher },
{ "PPB_Testing_GetDocumentURL:i:CC", PPB_Testing_GetDocumentURLDispatcher },
{ "PPB_UDPSocket_Private_Create:i:i", PPB_UDPSocket_Private_CreateDispatcher },
{ "PPB_UDPSocket_Private_IsUDPSocket:i:i", PPB_UDPSocket_Private_IsUDPSocketDispatcher },

Powered by Google App Engine
This is Rietveld 408576698