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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 11053003: Migrate Graphics2D to new design. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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 // 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 ppapi::HostResource /* resource */, 440 ppapi::HostResource /* resource */,
441 int /* callback_id */, 441 int /* callback_id */,
442 int32_t /* result */) 442 int32_t /* result */)
443 443
444 // PPB_FileSystem. 444 // PPB_FileSystem.
445 IPC_MESSAGE_ROUTED2( 445 IPC_MESSAGE_ROUTED2(
446 PpapiMsg_PPBFileSystem_OpenComplete, 446 PpapiMsg_PPBFileSystem_OpenComplete,
447 ppapi::HostResource /* filesystem */, 447 ppapi::HostResource /* filesystem */,
448 int32_t /* result */) 448 int32_t /* result */)
449 449
450 // PPB_Graphics2D.
451 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK,
452 ppapi::HostResource /* graphics_2d */,
453 int32_t /* pp_error */)
454
455 // PPB_Graphics3D. 450 // PPB_Graphics3D.
456 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, 451 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
457 ppapi::HostResource /* graphics_3d */, 452 ppapi::HostResource /* graphics_3d */,
458 int32_t /* pp_error */) 453 int32_t /* pp_error */)
459 454
460 // PPB_ImageData. 455 // PPB_ImageData.
461 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData, 456 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData,
462 ppapi::HostResource /* old_image_data */) 457 ppapi::HostResource /* old_image_data */)
463 458
464 // PPB_Instance. 459 // PPB_Instance.
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 902
908 // PPB_FileSystem. 903 // PPB_FileSystem.
909 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, 904 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create,
910 PP_Instance /* instance */, 905 PP_Instance /* instance */,
911 int /* type */, 906 int /* type */,
912 ppapi::HostResource /* result */) 907 ppapi::HostResource /* result */)
913 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, 908 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open,
914 ppapi::HostResource /* result */, 909 ppapi::HostResource /* result */,
915 int64_t /* expected_size */) 910 int64_t /* expected_size */)
916 911
917 // PPB_Graphics2D.
918 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
919 PP_Instance /* instance */,
920 PP_Size /* size */,
921 PP_Bool /* is_always_opaque */,
922 ppapi::HostResource /* result */)
923 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
924 ppapi::HostResource /* graphics_2d */,
925 ppapi::HostResource /* image_data */,
926 PP_Point /* top_left */,
927 bool /* src_rect_specified */,
928 PP_Rect /* src_rect */)
929 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll,
930 ppapi::HostResource /* graphics_2d */,
931 bool /* clip_specified */,
932 PP_Rect /* clip */,
933 PP_Point /* amount */)
934 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents,
935 ppapi::HostResource /* graphics_2d */,
936 ppapi::HostResource /* image_data */)
937 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush,
938 ppapi::HostResource /* graphics_2d */)
939 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_Dev_SetScale,
940 ppapi::HostResource /* graphics_2d */,
941 float /* scale */)
942
943 // PPB_Graphics3D. 912 // PPB_Graphics3D.
944 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, 913 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create,
945 PP_Instance /* instance */, 914 PP_Instance /* instance */,
946 ppapi::HostResource /* share_context */, 915 ppapi::HostResource /* share_context */,
947 std::vector<int32_t> /* attrib_list */, 916 std::vector<int32_t> /* attrib_list */,
948 ppapi::HostResource /* result */) 917 ppapi::HostResource /* result */)
949 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, 918 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer,
950 ppapi::HostResource /* context */) 919 ppapi::HostResource /* context */)
951 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, 920 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
952 ppapi::HostResource /* context */, 921 ppapi::HostResource /* context */,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 967
999 // PPB_Instance. 968 // PPB_Instance.
1000 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, 969 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
1001 PP_Instance /* instance */, 970 PP_Instance /* instance */,
1002 ppapi::proxy::SerializedVar /* result */) 971 ppapi::proxy::SerializedVar /* result */)
1003 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, 972 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
1004 PP_Instance /* instance */, 973 PP_Instance /* instance */,
1005 ppapi::proxy::SerializedVar /* result */) 974 ppapi::proxy::SerializedVar /* result */)
1006 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics, 975 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics,
1007 PP_Instance /* instance */, 976 PP_Instance /* instance */,
1008 ppapi::HostResource /* device */, 977 PP_Resource /* device */,
1009 PP_Bool /* result */) 978 PP_Bool /* result */)
1010 IPC_SYNC_MESSAGE_ROUTED1_1( 979 IPC_SYNC_MESSAGE_ROUTED1_1(
1011 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate, 980 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate,
1012 PP_Instance /* instance */, 981 PP_Instance /* instance */,
1013 uint32_t /* result */) 982 uint32_t /* result */)
1014 IPC_SYNC_MESSAGE_ROUTED1_1( 983 IPC_SYNC_MESSAGE_ROUTED1_1(
1015 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize, 984 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize,
1016 PP_Instance /* instance */, 985 PP_Instance /* instance */,
1017 uint32_t /* result */) 986 uint32_t /* result */)
1018 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame, 987 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) 1555 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
1587 1556
1588 // Requests that the gamepad host send the shared memory handle to the plugin 1557 // Requests that the gamepad host send the shared memory handle to the plugin
1589 // process. 1558 // process.
1590 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) 1559 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory)
1591 1560
1592 // Reply to a RequestMemory call. This supplies the shared memory handle. The 1561 // Reply to a RequestMemory call. This supplies the shared memory handle. The
1593 // actual handle is passed in the ReplyParams struct. 1562 // actual handle is passed in the ReplyParams struct.
1594 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory) 1563 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory)
1595 1564
1565
1566 // Graphics2D, plugin -> host
1567 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create,
1568 PP_Size /* size */,
1569 PP_Bool /* is_always_opaque */)
1570 IPC_MESSAGE_CONTROL4(PpapiHostMsg_Graphics2D_PaintImageData,
1571 ppapi::HostResource /* image_data */,
1572 PP_Point /* top_left */,
1573 bool /* src_rect_specified */,
1574 PP_Rect /* src_rect */)
1575 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll,
1576 bool /* clip_specified */,
1577 PP_Rect /* clip */,
1578 PP_Point /* amount */)
1579 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents,
1580 ppapi::HostResource /* image_data */)
1581 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_Dev_SetScale,
1582 float /* scale */)
1583
1584 // Graphics2D, plugin -> host -> plugin
1585 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush)
1586 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck)
1587
1588 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData,
1589 PP_Resource /* image */,
1590 PP_Point /* top_left */)
1591 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck)
1592
1593
1596 // Printing. 1594 // Printing.
1597 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) 1595 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1598 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) 1596 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1599 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, 1597 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1600 PP_PrintSettings_Dev /* print_settings */) 1598 PP_PrintSettings_Dev /* print_settings */)
1601 1599
1602 // WebSocket ------------------------------------------------------------------ 1600 // WebSocket ------------------------------------------------------------------
1603 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) 1601 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create)
1604 1602
1605 // Establishes the connection to a server. This message requires 1603 // Establishes the connection to a server. This message requires
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, 1721 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply,
1724 std::string /* output */) 1722 std::string /* output */)
1725 1723
1726 // Flash functions. 1724 // Flash functions.
1727 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) 1725 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
1728 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_EnumerateVideoCaptureDevices, 1726 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_EnumerateVideoCaptureDevices,
1729 ppapi::HostResource /* video_capture */) 1727 ppapi::HostResource /* video_capture */)
1730 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_EnumerateVideoCaptureDevicesReply, 1728 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_EnumerateVideoCaptureDevicesReply,
1731 std::vector<ppapi::DeviceRefData> /* devices */) 1729 std::vector<ppapi::DeviceRefData> /* devices */)
1732 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1730 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698