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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc

Issue 9148044: Add NaCl proxy for pepper gamepad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing build file entry Created 8 years, 11 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 retval = NaClSrpcInvokeBySignature( 1151 retval = NaClSrpcInvokeBySignature(
1152 channel, 1152 channel,
1153 "PPB_Fullscreen_GetScreenSize:i:Ci", 1153 "PPB_Fullscreen_GetScreenSize:i:Ci",
1154 instance, 1154 instance,
1155 size_bytes, size, 1155 size_bytes, size,
1156 success 1156 success
1157 ); 1157 );
1158 return retval; 1158 return retval;
1159 } 1159 }
1160 1160
1161 NaClSrpcError PpbGamepadRpcClient::PPB_Gamepad_SampleGamepads(
1162 NaClSrpcChannel* channel,
1163 PP_Instance instance,
1164 nacl_abi_size_t* data_bytes, char* data) {
1165 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1166 ("%s: PPAPI calls are not supported off the main thread\n",
1167 __FUNCTION__));
1168 NaClSrpcError retval;
1169 retval = NaClSrpcInvokeBySignature(
1170 channel,
1171 "PPB_Gamepad_SampleGamepads:i:C",
1172 instance,
1173 data_bytes, data
1174 );
1175 return retval;
1176 }
1177
1161 NaClSrpcError PpbGraphics2DRpcClient::PPB_Graphics2D_Create( 1178 NaClSrpcError PpbGraphics2DRpcClient::PPB_Graphics2D_Create(
1162 NaClSrpcChannel* channel, 1179 NaClSrpcChannel* channel,
1163 PP_Instance instance, 1180 PP_Instance instance,
1164 nacl_abi_size_t size_bytes, char* size, 1181 nacl_abi_size_t size_bytes, char* size,
1165 int32_t is_always_opaque, 1182 int32_t is_always_opaque,
1166 PP_Resource* resource) { 1183 PP_Resource* resource) {
1167 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 1184 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1168 ("%s: PPAPI calls are not supported off the main thread\n", 1185 ("%s: PPAPI calls are not supported off the main thread\n",
1169 __FUNCTION__)); 1186 __FUNCTION__));
1170 NaClSrpcError retval; 1187 NaClSrpcError retval;
(...skipping 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after
3191 channel, 3208 channel,
3192 "PPB_Zoom_ZoomLimitsChanged:idd:", 3209 "PPB_Zoom_ZoomLimitsChanged:idd:",
3193 instance, 3210 instance,
3194 minimum_factor, 3211 minimum_factor,
3195 maximum_factor 3212 maximum_factor
3196 ); 3213 );
3197 return retval; 3214 return retval;
3198 } 3215 }
3199 3216
3200 3217
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698