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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
6 // 6 //
7 // Automatically generated code. See srpcgen.py 7 // Automatically generated code. See srpcgen.py
8 // 8 //
9 // NaCl Simple Remote Procedure Call interface abstractions. 9 // NaCl Simple Remote Procedure Call interface abstractions.
10 10
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 "PPB_Graphics3DTrusted_InitCommandBuffer:i:i", 1445 "PPB_Graphics3DTrusted_InitCommandBuffer:i:i",
1446 resource_id, 1446 resource_id,
1447 success 1447 success
1448 ); 1448 );
1449 return retval; 1449 return retval;
1450 } 1450 }
1451 1451
1452 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_SetGetBuffer( 1452 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_SetGetBuffer(
1453 NaClSrpcChannel* channel, 1453 NaClSrpcChannel* channel,
1454 PP_Resource resource_id, 1454 PP_Resource resource_id,
1455 int32_t transfer_buffer_id) { 1455 int32_t shm_id) {
1456 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 1456 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1457 ("%s: PPAPI calls are not supported off the main thread\n", 1457 ("%s: PPAPI calls are not supported off the main thread\n",
1458 __FUNCTION__)); 1458 __FUNCTION__));
1459 NaClSrpcError retval; 1459 NaClSrpcError retval;
1460 retval = NaClSrpcInvokeBySignature( 1460 retval = NaClSrpcInvokeBySignature(
1461 channel, 1461 channel,
1462 "PPB_Graphics3DTrusted_SetGetBuffer:ii:", 1462 "PPB_Graphics3DTrusted_SetGetBuffer:ii:",
1463 resource_id, 1463 resource_id,
1464 transfer_buffer_id 1464 shm_id
bbudge 2011/12/16 22:32:37 Not sure why this looks different in the review to
1465 ); 1465 );
1466 return retval; 1466 return retval;
1467 } 1467 }
1468 1468
1469 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_GetState( 1469 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_GetState(
1470 NaClSrpcChannel* channel, 1470 NaClSrpcChannel* channel,
1471 PP_Resource resource_id, 1471 PP_Resource resource_id,
1472 nacl_abi_size_t* state_bytes, char* state) { 1472 nacl_abi_size_t* state_bytes, char* state) {
1473 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 1473 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1474 ("%s: PPAPI calls are not supported off the main thread\n", 1474 ("%s: PPAPI calls are not supported off the main thread\n",
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
2546 NaClSrpcError retval; 2546 NaClSrpcError retval;
2547 retval = NaClSrpcInvokeBySignature( 2547 retval = NaClSrpcInvokeBySignature(
2548 channel, 2548 channel,
2549 "PPB_Testing_GetLiveObjectsForInstance:i:i", 2549 "PPB_Testing_GetLiveObjectsForInstance:i:i",
2550 instance, 2550 instance,
2551 live_object_count 2551 live_object_count
2552 ); 2552 );
2553 return retval; 2553 return retval;
2554 } 2554 }
2555 2555
2556 NaClSrpcError PpbTestingRpcClient::PPB_Testing_SimulateInputEvent(
2557 NaClSrpcChannel* channel,
2558 PP_Instance instance,
2559 PP_Resource input_event) {
2560 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2561 ("%s: PPAPI calls are not supported off the main thread\n",
2562 __FUNCTION__));
2563 NaClSrpcError retval;
2564 retval = NaClSrpcInvokeBySignature(
2565 channel,
2566 "PPB_Testing_SimulateInputEvent:ii:",
2567 instance,
2568 input_event
2569 );
2570 return retval;
2571 }
2572
2556 NaClSrpcError PpbTestingRpcClient::PPB_Testing_GetDocumentURL( 2573 NaClSrpcError PpbTestingRpcClient::PPB_Testing_GetDocumentURL(
2557 NaClSrpcChannel* channel, 2574 NaClSrpcChannel* channel,
2558 PP_Instance instance, 2575 PP_Instance instance,
2559 nacl_abi_size_t* components_bytes, char* components, 2576 nacl_abi_size_t* components_bytes, char* components,
2560 nacl_abi_size_t* url_bytes, char* url) { 2577 nacl_abi_size_t* url_bytes, char* url) {
2561 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 2578 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2562 ("%s: PPAPI calls are not supported off the main thread\n", 2579 ("%s: PPAPI calls are not supported off the main thread\n",
2563 __FUNCTION__)); 2580 __FUNCTION__));
2564 NaClSrpcError retval; 2581 NaClSrpcError retval;
2565 retval = NaClSrpcInvokeBySignature( 2582 retval = NaClSrpcInvokeBySignature(
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
3174 channel, 3191 channel,
3175 "PPB_Zoom_ZoomLimitsChanged:idd:", 3192 "PPB_Zoom_ZoomLimitsChanged:idd:",
3176 instance, 3193 instance,
3177 minimum_factor, 3194 minimum_factor,
3178 maximum_factor 3195 maximum_factor
3179 ); 3196 );
3180 return retval; 3197 return retval;
3181 } 3198 }
3182 3199
3183 3200
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698