OLD | NEW |
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 // Multiply-included message header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 ppapi::HostResource /* resource */, | 443 ppapi::HostResource /* resource */, |
444 int /* callback_id */, | 444 int /* callback_id */, |
445 int32_t /* result */) | 445 int32_t /* result */) |
446 | 446 |
447 // PPB_FileSystem. | 447 // PPB_FileSystem. |
448 IPC_MESSAGE_ROUTED2( | 448 IPC_MESSAGE_ROUTED2( |
449 PpapiMsg_PPBFileSystem_OpenComplete, | 449 PpapiMsg_PPBFileSystem_OpenComplete, |
450 ppapi::HostResource /* filesystem */, | 450 ppapi::HostResource /* filesystem */, |
451 int32_t /* result */) | 451 int32_t /* result */) |
452 | 452 |
453 // PPB_Graphics2D. | |
454 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, | |
455 ppapi::HostResource /* graphics_2d */, | |
456 int32_t /* pp_error */) | |
457 | |
458 // PPB_Graphics3D. | 453 // PPB_Graphics3D. |
459 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, | 454 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, |
460 ppapi::HostResource /* graphics_3d */, | 455 ppapi::HostResource /* graphics_3d */, |
461 int32_t /* pp_error */) | 456 int32_t /* pp_error */) |
462 | 457 |
463 // PPB_ImageData. | 458 // PPB_ImageData. |
464 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData, | 459 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData, |
465 ppapi::HostResource /* old_image_data */) | 460 ppapi::HostResource /* old_image_data */) |
466 | 461 |
467 // PPB_Instance. | 462 // PPB_Instance. |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 | 880 |
886 // PPB_FileSystem. | 881 // PPB_FileSystem. |
887 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, | 882 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, |
888 PP_Instance /* instance */, | 883 PP_Instance /* instance */, |
889 int /* type */, | 884 int /* type */, |
890 ppapi::HostResource /* result */) | 885 ppapi::HostResource /* result */) |
891 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, | 886 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, |
892 ppapi::HostResource /* result */, | 887 ppapi::HostResource /* result */, |
893 int64_t /* expected_size */) | 888 int64_t /* expected_size */) |
894 | 889 |
895 // PPB_Graphics2D. | |
896 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, | |
897 PP_Instance /* instance */, | |
898 PP_Size /* size */, | |
899 PP_Bool /* is_always_opaque */, | |
900 ppapi::HostResource /* result */) | |
901 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, | |
902 ppapi::HostResource /* graphics_2d */, | |
903 ppapi::HostResource /* image_data */, | |
904 PP_Point /* top_left */, | |
905 bool /* src_rect_specified */, | |
906 PP_Rect /* src_rect */) | |
907 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll, | |
908 ppapi::HostResource /* graphics_2d */, | |
909 bool /* clip_specified */, | |
910 PP_Rect /* clip */, | |
911 PP_Point /* amount */) | |
912 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents, | |
913 ppapi::HostResource /* graphics_2d */, | |
914 ppapi::HostResource /* image_data */) | |
915 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush, | |
916 ppapi::HostResource /* graphics_2d */) | |
917 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_Dev_SetScale, | |
918 ppapi::HostResource /* graphics_2d */, | |
919 float /* scale */) | |
920 | |
921 // PPB_Graphics3D. | 890 // PPB_Graphics3D. |
922 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, | 891 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, |
923 PP_Instance /* instance */, | 892 PP_Instance /* instance */, |
924 ppapi::HostResource /* share_context */, | 893 ppapi::HostResource /* share_context */, |
925 std::vector<int32_t> /* attrib_list */, | 894 std::vector<int32_t> /* attrib_list */, |
926 ppapi::HostResource /* result */) | 895 ppapi::HostResource /* result */) |
927 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, | 896 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, |
928 ppapi::HostResource /* context */) | 897 ppapi::HostResource /* context */) |
929 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, | 898 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, |
930 ppapi::HostResource /* context */, | 899 ppapi::HostResource /* context */, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 | 945 |
977 // PPB_Instance. | 946 // PPB_Instance. |
978 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, | 947 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, |
979 PP_Instance /* instance */, | 948 PP_Instance /* instance */, |
980 ppapi::proxy::SerializedVar /* result */) | 949 ppapi::proxy::SerializedVar /* result */) |
981 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, | 950 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, |
982 PP_Instance /* instance */, | 951 PP_Instance /* instance */, |
983 ppapi::proxy::SerializedVar /* result */) | 952 ppapi::proxy::SerializedVar /* result */) |
984 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics, | 953 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics, |
985 PP_Instance /* instance */, | 954 PP_Instance /* instance */, |
986 ppapi::HostResource /* device */, | 955 PP_Resource /* device */, |
987 PP_Bool /* result */) | 956 PP_Bool /* result */) |
988 IPC_SYNC_MESSAGE_ROUTED1_1( | 957 IPC_SYNC_MESSAGE_ROUTED1_1( |
989 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate, | 958 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate, |
990 PP_Instance /* instance */, | 959 PP_Instance /* instance */, |
991 uint32_t /* result */) | 960 uint32_t /* result */) |
992 IPC_SYNC_MESSAGE_ROUTED1_1( | 961 IPC_SYNC_MESSAGE_ROUTED1_1( |
993 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize, | 962 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize, |
994 PP_Instance /* instance */, | 963 PP_Instance /* instance */, |
995 uint32_t /* result */) | 964 uint32_t /* result */) |
996 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame, | 965 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame, |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) | 1488 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
1520 | 1489 |
1521 // Requests that the gamepad host send the shared memory handle to the plugin | 1490 // Requests that the gamepad host send the shared memory handle to the plugin |
1522 // process. | 1491 // process. |
1523 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) | 1492 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) |
1524 | 1493 |
1525 // Reply to a RequestMemory call. This supplies the shared memory handle. The | 1494 // Reply to a RequestMemory call. This supplies the shared memory handle. The |
1526 // actual handle is passed in the ReplyParams struct. | 1495 // actual handle is passed in the ReplyParams struct. |
1527 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory) | 1496 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory) |
1528 | 1497 |
| 1498 |
| 1499 // Graphics2D, plugin -> host |
| 1500 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create, |
| 1501 PP_Size /* size */, |
| 1502 PP_Bool /* is_always_opaque */) |
| 1503 IPC_MESSAGE_CONTROL4(PpapiHostMsg_Graphics2D_PaintImageData, |
| 1504 ppapi::HostResource /* image_data */, |
| 1505 PP_Point /* top_left */, |
| 1506 bool /* src_rect_specified */, |
| 1507 PP_Rect /* src_rect */) |
| 1508 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll, |
| 1509 bool /* clip_specified */, |
| 1510 PP_Rect /* clip */, |
| 1511 PP_Point /* amount */) |
| 1512 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents, |
| 1513 ppapi::HostResource /* image_data */) |
| 1514 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_Dev_SetScale, |
| 1515 float /* scale */) |
| 1516 |
| 1517 // Graphics2D, plugin -> host -> plugin |
| 1518 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) |
| 1519 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) |
| 1520 |
| 1521 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, |
| 1522 PP_Resource /* image */, |
| 1523 PP_Point /* top_left */) |
| 1524 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) |
| 1525 |
| 1526 |
1529 // Printing. | 1527 // Printing. |
1530 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) | 1528 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
1531 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) | 1529 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
1532 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, | 1530 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
1533 PP_PrintSettings_Dev /* print_settings */) | 1531 PP_PrintSettings_Dev /* print_settings */) |
1534 | 1532 |
1535 // WebSocket ------------------------------------------------------------------ | 1533 // WebSocket ------------------------------------------------------------------ |
1536 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) | 1534 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) |
1537 | 1535 |
1538 // Establishes the connection to a server. This message requires | 1536 // Establishes the connection to a server. This message requires |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1698 std::vector<ppapi::HostResource> /* buffers */, | 1696 std::vector<ppapi::HostResource> /* buffers */, |
1699 uint32_t /* buffer_size */) | 1697 uint32_t /* buffer_size */) |
1700 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1698 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1701 uint32_t /* status */) | 1699 uint32_t /* status */) |
1702 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1700 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1703 uint32_t /* error */) | 1701 uint32_t /* error */) |
1704 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1702 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1705 uint32_t /* buffer */) | 1703 uint32_t /* buffer */) |
1706 | 1704 |
1707 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1705 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |