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

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

Issue 13004012: Implement the host side of the PPB_PDF proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 // 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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 PP_Resource /* audio_frames, PPB_Buffer_Dev */, 1113 PP_Resource /* audio_frames, PPB_Buffer_Dev */,
1114 std::string /* serialized_block_info */) 1114 std::string /* serialized_block_info */)
1115 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1115 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
1116 1116
1117 // PPB_NetworkMonitor_Private. 1117 // PPB_NetworkMonitor_Private.
1118 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, 1118 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start,
1119 uint32 /* plugin_dispatcher_id */) 1119 uint32 /* plugin_dispatcher_id */)
1120 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, 1120 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop,
1121 uint32 /* plugin_dispatcher_id */) 1121 uint32 /* plugin_dispatcher_id */)
1122 1122
1123 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1124 // PPB_PDF
1125 IPC_SYNC_MESSAGE_ROUTED3_1(
1126 PpapiHostMsg_PPBPDF_GetFontFileWithFallback,
1127 PP_Instance /* instance */,
1128 ppapi::proxy::SerializedFontDescription /* description */,
1129 int32_t /* charset */,
1130 ppapi::HostResource /* result */)
1131 IPC_SYNC_MESSAGE_ROUTED2_1(
1132 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile,
1133 ppapi::HostResource /* font_file */,
1134 uint32_t /* table */,
1135 std::string /* result */)
1136 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
1137
1138 // PPB_Testing. 1123 // PPB_Testing.
1139 IPC_SYNC_MESSAGE_ROUTED3_1( 1124 IPC_SYNC_MESSAGE_ROUTED3_1(
1140 PpapiHostMsg_PPBTesting_ReadImageData, 1125 PpapiHostMsg_PPBTesting_ReadImageData,
1141 ppapi::HostResource /* device_context_2d */, 1126 ppapi::HostResource /* device_context_2d */,
1142 ppapi::HostResource /* image */, 1127 ppapi::HostResource /* image */,
1143 PP_Point /* top_left */, 1128 PP_Point /* top_left */,
1144 PP_Bool /* result */) 1129 PP_Bool /* result */)
1145 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, 1130 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1146 PP_Instance /* instance */, 1131 PP_Instance /* instance */,
1147 uint32 /* result */) 1132 uint32 /* result */)
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 // Notifies the renderer to save the current PDF. 1755 // Notifies the renderer to save the current PDF.
1771 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs) 1756 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs)
1772 1757
1773 // Requests a resource image for the plugin at a particular scale. 1758 // Requests a resource image for the plugin at a particular scale.
1774 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PDF_GetResourceImage, 1759 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PDF_GetResourceImage,
1775 int /* image_id */, 1760 int /* image_id */,
1776 float /* scale */) 1761 float /* scale */)
1777 // Reply for PpapiHostMsg_PDF_GetResourceImage containing the host resource id 1762 // Reply for PpapiHostMsg_PDF_GetResourceImage containing the host resource id
1778 // of the image and a string (representing a PP_ImageDataDesc) containing the 1763 // of the image and a string (representing a PP_ImageDataDesc) containing the
1779 // properties of the image. Also carries a shared memory handle pointing to the 1764 // properties of the image. Also carries a shared memory handle pointing to the
1780 // memory containg the image. 1765 // memory containg the image. On linux, the handle is transmitted in this
1781 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_PDF_GetResourceImageReply, 1766 // message as |fd|. This is due to the unfortunate way that ImageHandles are
yzshen1 2013/04/03 18:32:39 Does it make sense to have a TODO to make Serializ
raymes 2013/04/03 23:18:21 Done. I put it in serialized_structs.h
1767 // defined for use with PPB_ImageData.
1768 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_PDF_GetResourceImageReply,
1782 ppapi::HostResource /* resource_id */, 1769 ppapi::HostResource /* resource_id */,
1783 std::string /* image_data_desc */) 1770 std::string /* image_data_desc */,
1771 int /* fd */)
1784 1772
1785 // VideoCapture_Dev, plugin -> host 1773 // VideoCapture_Dev, plugin -> host
1786 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create) 1774 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create)
1787 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture) 1775 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture)
1788 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer, 1776 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer,
1789 uint32_t /* buffer */) 1777 uint32_t /* buffer */)
1790 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture) 1778 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture)
1791 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close) 1779 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close)
1792 1780
1793 // VideoCapture_Dev, plugin -> host -> plugin 1781 // VideoCapture_Dev, plugin -> host -> plugin
(...skipping 21 matching lines...) Expand all
1815 std::vector<ppapi::HostResource> /* buffers */, 1803 std::vector<ppapi::HostResource> /* buffers */,
1816 uint32_t /* buffer_size */) 1804 uint32_t /* buffer_size */)
1817 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 1805 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1818 uint32_t /* status */) 1806 uint32_t /* status */)
1819 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 1807 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1820 uint32_t /* error */) 1808 uint32_t /* error */)
1821 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 1809 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1822 uint32_t /* buffer */) 1810 uint32_t /* buffer */)
1823 1811
1824 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1812 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698