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

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

Issue 9814015: Add new MouseCursor interface for setting the mouse cursor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 retval = NaClSrpcInvokeBySignature( 378 retval = NaClSrpcInvokeBySignature(
379 channel, 379 channel,
380 "PPB_Core_CallOnMainThread:iii:", 380 "PPB_Core_CallOnMainThread:iii:",
381 delay_in_milliseconds, 381 delay_in_milliseconds,
382 callback_id, 382 callback_id,
383 result 383 result
384 ); 384 );
385 return retval; 385 return retval;
386 } 386 }
387 387
388 NaClSrpcError PpbCursorControlRpcClient::PPB_CursorControl_SetCursor(
389 NaClSrpcChannel* channel,
390 PP_Instance instance,
391 int32_t type,
392 PP_Resource custom_image,
393 nacl_abi_size_t hot_spot_bytes, char* hot_spot,
394 int32_t* success) {
395 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
396 ("%s: PPAPI calls are not supported off the main thread\n",
397 __FUNCTION__));
398 NaClSrpcError retval;
399 retval = NaClSrpcInvokeBySignature(
400 channel,
401 "PPB_CursorControl_SetCursor:iiiC:i",
402 instance,
403 type,
404 custom_image,
405 hot_spot_bytes, hot_spot,
406 success
407 );
408 return retval;
409 }
410
411 NaClSrpcError PpbCursorControlRpcClient::PPB_CursorControl_LockCursor(
412 NaClSrpcChannel* channel,
413 PP_Instance instance,
414 int32_t* success) {
415 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
416 ("%s: PPAPI calls are not supported off the main thread\n",
417 __FUNCTION__));
418 NaClSrpcError retval;
419 retval = NaClSrpcInvokeBySignature(
420 channel,
421 "PPB_CursorControl_LockCursor:i:i",
422 instance,
423 success
424 );
425 return retval;
426 }
427
428 NaClSrpcError PpbCursorControlRpcClient::PPB_CursorControl_UnlockCursor(
429 NaClSrpcChannel* channel,
430 PP_Instance instance,
431 int32_t* success) {
432 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
433 ("%s: PPAPI calls are not supported off the main thread\n",
434 __FUNCTION__));
435 NaClSrpcError retval;
436 retval = NaClSrpcInvokeBySignature(
437 channel,
438 "PPB_CursorControl_UnlockCursor:i:i",
439 instance,
440 success
441 );
442 return retval;
443 }
444
445 NaClSrpcError PpbCursorControlRpcClient::PPB_CursorControl_HasCursorLock(
446 NaClSrpcChannel* channel,
447 PP_Instance instance,
448 int32_t* success) {
449 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
450 ("%s: PPAPI calls are not supported off the main thread\n",
451 __FUNCTION__));
452 NaClSrpcError retval;
453 retval = NaClSrpcInvokeBySignature(
454 channel,
455 "PPB_CursorControl_HasCursorLock:i:i",
456 instance,
457 success
458 );
459 return retval;
460 }
461
462 NaClSrpcError PpbCursorControlRpcClient::PPB_CursorControl_CanLockCursor(
463 NaClSrpcChannel* channel,
464 PP_Instance instance,
465 int32_t* success) {
466 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
467 ("%s: PPAPI calls are not supported off the main thread\n",
468 __FUNCTION__));
469 NaClSrpcError retval;
470 retval = NaClSrpcInvokeBySignature(
471 channel,
472 "PPB_CursorControl_CanLockCursor:i:i",
473 instance,
474 success
475 );
476 return retval;
477 }
478
479 NaClSrpcError PpbFileIORpcClient::PPB_FileIO_Create( 388 NaClSrpcError PpbFileIORpcClient::PPB_FileIO_Create(
480 NaClSrpcChannel* channel, 389 NaClSrpcChannel* channel,
481 PP_Instance instance, 390 PP_Instance instance,
482 PP_Resource* resource) { 391 PP_Resource* resource) {
483 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 392 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
484 ("%s: PPAPI calls are not supported off the main thread\n", 393 ("%s: PPAPI calls are not supported off the main thread\n",
485 __FUNCTION__)); 394 __FUNCTION__));
486 NaClSrpcError retval; 395 NaClSrpcError retval;
487 retval = NaClSrpcInvokeBySignature( 396 retval = NaClSrpcInvokeBySignature(
488 channel, 397 channel,
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 NaClSrpcError retval; 1949 NaClSrpcError retval;
2041 retval = NaClSrpcInvokeBySignature( 1950 retval = NaClSrpcInvokeBySignature(
2042 channel, 1951 channel,
2043 "PPB_Messaging_PostMessage:iC:", 1952 "PPB_Messaging_PostMessage:iC:",
2044 instance, 1953 instance,
2045 message_bytes, message 1954 message_bytes, message
2046 ); 1955 );
2047 return retval; 1956 return retval;
2048 } 1957 }
2049 1958
1959 NaClSrpcError PpbMouseCursorRpcClient::PPB_MouseCursor_SetCursor(
1960 NaClSrpcChannel* channel,
1961 PP_Instance instance,
1962 int32_t type,
1963 PP_Resource custom_image,
1964 nacl_abi_size_t hot_spot_bytes, char* hot_spot,
1965 int32_t* success) {
1966 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1967 ("%s: PPAPI calls are not supported off the main thread\n",
1968 __FUNCTION__));
1969 NaClSrpcError retval;
1970 retval = NaClSrpcInvokeBySignature(
1971 channel,
1972 "PPB_MouseCursor_SetCursor:iiiC:i",
1973 instance,
1974 type,
1975 custom_image,
1976 hot_spot_bytes, hot_spot,
1977 success
1978 );
1979 return retval;
1980 }
1981
2050 NaClSrpcError PpbMouseLockRpcClient::PPB_MouseLock_LockMouse( 1982 NaClSrpcError PpbMouseLockRpcClient::PPB_MouseLock_LockMouse(
2051 NaClSrpcChannel* channel, 1983 NaClSrpcChannel* channel,
2052 PP_Instance instance, 1984 PP_Instance instance,
2053 int32_t callback_id, 1985 int32_t callback_id,
2054 int32_t* pp_error) { 1986 int32_t* pp_error) {
2055 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 1987 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
2056 ("%s: PPAPI calls are not supported off the main thread\n", 1988 ("%s: PPAPI calls are not supported off the main thread\n",
2057 __FUNCTION__)); 1989 __FUNCTION__));
2058 NaClSrpcError retval; 1990 NaClSrpcError retval;
2059 retval = NaClSrpcInvokeBySignature( 1991 retval = NaClSrpcInvokeBySignature(
(...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after
3935 channel, 3867 channel,
3936 "PPB_Zoom_ZoomLimitsChanged:idd:", 3868 "PPB_Zoom_ZoomLimitsChanged:idd:",
3937 instance, 3869 instance,
3938 minimum_factor, 3870 minimum_factor,
3939 maximum_factor 3871 maximum_factor
3940 ); 3872 );
3941 return retval; 3873 return retval;
3942 } 3874 }
3943 3875
3944 3876
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698