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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.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_client.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc (revision 114869)
+++ ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc (working copy)
@@ -1452,7 +1452,7 @@
NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_SetGetBuffer(
NaClSrpcChannel* channel,
PP_Resource resource_id,
- int32_t transfer_buffer_id) {
+ int32_t shm_id) {
VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
("%s: PPAPI calls are not supported off the main thread\n",
__FUNCTION__));
@@ -1461,7 +1461,7 @@
channel,
"PPB_Graphics3DTrusted_SetGetBuffer:ii:",
resource_id,
- transfer_buffer_id
+ shm_id
bbudge 2011/12/16 22:32:37 Not sure why this looks different in the review to
);
return retval;
}
@@ -2553,6 +2553,23 @@
return retval;
}
+NaClSrpcError PpbTestingRpcClient::PPB_Testing_SimulateInputEvent(
+ NaClSrpcChannel* channel,
+ PP_Instance instance,
+ PP_Resource input_event) {
+ VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
+ ("%s: PPAPI calls are not supported off the main thread\n",
+ __FUNCTION__));
+ NaClSrpcError retval;
+ retval = NaClSrpcInvokeBySignature(
+ channel,
+ "PPB_Testing_SimulateInputEvent:ii:",
+ instance,
+ input_event
+ );
+ return retval;
+}
+
NaClSrpcError PpbTestingRpcClient::PPB_Testing_GetDocumentURL(
NaClSrpcChannel* channel,
PP_Instance instance,

Powered by Google App Engine
This is Rietveld 408576698