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

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 2539 matching lines...) Expand 10 before | Expand all | Expand 10 after
2550 NaClSrpcError retval; 2550 NaClSrpcError retval;
2551 retval = NaClSrpcInvokeBySignature( 2551 retval = NaClSrpcInvokeBySignature(
2552 channel, 2552 channel,
2553 "PPB_Testing_GetLiveObjectsForInstance:i:i", 2553 "PPB_Testing_GetLiveObjectsForInstance:i:i",
2554 instance, 2554 instance,
2555 live_object_count 2555 live_object_count
2556 ); 2556 );
2557 return retval; 2557 return retval;
2558 } 2558 }
2559 2559
2560 NaClSrpcError PpbTestingRpcClient::PPB_Testing_SimulateInputEvent(
2561 NaClSrpcChannel* channel,
2562 PP_Instance instance,
2563 PP_Resource input_event) {
2564 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2565 ("%s: PPAPI calls are not supported off the main thread\n",
2566 __FUNCTION__));
2567 NaClSrpcError retval;
2568 retval = NaClSrpcInvokeBySignature(
2569 channel,
2570 "PPB_Testing_SimulateInputEvent:ii:",
2571 instance,
2572 input_event
2573 );
2574 return retval;
2575 }
2576
2577 NaClSrpcError PpbTestingRpcClient::PPB_Testing_ExecuteScript(
2578 NaClSrpcChannel* channel,
2579 PP_Instance instance,
2580 nacl_abi_size_t script_bytes, char* script,
2581 nacl_abi_size_t* result_bytes, char* result,
2582 nacl_abi_size_t* exception_bytes, char* exception) {
2583 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2584 ("%s: PPAPI calls are not supported off the main thread\n",
2585 __FUNCTION__));
2586 NaClSrpcError retval;
2587 retval = NaClSrpcInvokeBySignature(
2588 channel,
2589 "PPB_Testing_ExecuteScript:iC:CC",
2590 instance,
2591 script_bytes, script,
2592 result_bytes, result,
2593 exception_bytes, exception
2594 );
2595 return retval;
2596 }
2597
2560 NaClSrpcError PpbUDPSocketPrivateRpcClient::PPB_UDPSocket_Private_Create( 2598 NaClSrpcError PpbUDPSocketPrivateRpcClient::PPB_UDPSocket_Private_Create(
2561 NaClSrpcChannel* channel, 2599 NaClSrpcChannel* channel,
2562 PP_Instance instance_id, 2600 PP_Instance instance_id,
2563 PP_Resource* resource) { 2601 PP_Resource* resource) {
2564 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 2602 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2565 ("%s: PPAPI calls are not supported off the main thread\n", 2603 ("%s: PPAPI calls are not supported off the main thread\n",
2566 __FUNCTION__)); 2604 __FUNCTION__));
2567 NaClSrpcError retval; 2605 NaClSrpcError retval;
2568 retval = NaClSrpcInvokeBySignature( 2606 retval = NaClSrpcInvokeBySignature(
2569 channel, 2607 channel,
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
3159 channel, 3197 channel,
3160 "PPB_Zoom_ZoomLimitsChanged:idd:", 3198 "PPB_Zoom_ZoomLimitsChanged:idd:",
3161 instance, 3199 instance,
3162 minimum_factor, 3200 minimum_factor,
3163 maximum_factor 3201 maximum_factor
3164 ); 3202 );
3165 return retval; 3203 return retval;
3166 } 3204 }
3167 3205
3168 3206
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698