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

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

Issue 11510008: Refactor 4 PPB_Flash functions to the new PPAPI resource model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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
« no previous file with comments | « ppapi/proxy/flash_resource.cc ('k') | ppapi/proxy/ppb_flash_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 ppapi::HostResource /* video_decoder */, 1243 ppapi::HostResource /* video_decoder */,
1244 int32_t /* picture buffer id */) 1244 int32_t /* picture buffer id */)
1245 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, 1245 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
1246 ppapi::HostResource /* video_decoder */) 1246 ppapi::HostResource /* video_decoder */)
1247 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, 1247 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
1248 ppapi::HostResource /* video_decoder */) 1248 ppapi::HostResource /* video_decoder */)
1249 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, 1249 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
1250 ppapi::HostResource /* video_decoder */) 1250 ppapi::HostResource /* video_decoder */)
1251 1251
1252 // PPB_Flash. 1252 // PPB_Flash.
1253 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop,
1254 PP_Instance /* instance */,
1255 PP_Bool /* on_top */)
1256 // This has to be synchronous becuase the caller may want to composite on
1257 // top of the resulting text after the call is complete.
1258 IPC_SYNC_MESSAGE_ROUTED2_1(
1259 PpapiHostMsg_PPBFlash_DrawGlyphs,
1260 PP_Instance /* instance */,
1261 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */,
1262 PP_Bool /* result */)
1263 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate,
1264 PP_Instance /* instance */,
1265 ppapi::URLRequestInfoData /* request_data */,
1266 std::string /* target */,
1267 PP_Bool /* from_user_action */,
1268 int32_t /* result */)
1269 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
1270 PP_Instance /* instance */,
1271 PP_Time /* t */,
1272 double /* offset */)
1273 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost,
1274 PP_Instance /* instance */,
1275 PP_Rect /* rect */,
1276 PP_Bool /* result */)
1277 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFlash_InvokePrinting, 1253 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFlash_InvokePrinting,
1278 PP_Instance /* instance */) 1254 PP_Instance /* instance */)
1279 1255
1280 // PPB_Flash_MessageLoop. 1256 // PPB_Flash_MessageLoop.
1281 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create, 1257 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
1282 PP_Instance /* instance */, 1258 PP_Instance /* instance */,
1283 ppapi::HostResource /* result */) 1259 ppapi::HostResource /* result */)
1284 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run, 1260 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run,
1285 ppapi::HostResource /* flash_message_loop */, 1261 ppapi::HostResource /* flash_message_loop */,
1286 int32_t /* result */) 1262 int32_t /* result */)
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalTimeZoneOffsetReply, 1585 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalTimeZoneOffsetReply,
1610 double /* offset */) 1586 double /* offset */)
1611 1587
1612 // Query the browser for the restrictions on storing Flash LSOs. 1588 // Query the browser for the restrictions on storing Flash LSOs.
1613 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_GetLocalDataRestrictions) 1589 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_GetLocalDataRestrictions)
1614 // Reply message for GetLocalDataRestrictions containing the restrictions to 1590 // Reply message for GetLocalDataRestrictions containing the restrictions to
1615 // use. These are PP_FlashLSORestrictions cast to an int32_t. 1591 // use. These are PP_FlashLSORestrictions cast to an int32_t.
1616 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply, 1592 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply,
1617 int32_t /* restrictions */) 1593 int32_t /* restrictions */)
1618 1594
1595 // Notifies the renderer whether the Flash instance is in windowed mode. No
1596 // reply is sent.
1597 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_SetInstanceAlwaysOnTop,
1598 bool /* on_top */)
1599
1600 // Notifies the renderer to draw text to the given PP_ImageData resource. All
1601 // parmeters for drawing (including the resource to draw to) are contianed in
1602 // the PPBFlash_DrawGlyphs_Params structure. An error code is sent in a reply
1603 // message indicating success.
1604 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_DrawGlyphs,
1605 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */)
1606
1607 // Notifies the renderer to navigate to the given URL contained in the
1608 // URLRequestInfoData. An error code is sent in a reply message indicating
1609 // success.
1610 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Flash_Navigate,
1611 ppapi::URLRequestInfoData /* data */,
1612 std::string /* target */,
1613 bool /* from_user_action */)
1614
1615 // Queries the renderer on whether the plugin instance is the topmost element
1616 // in the area of the instance specified by the given PP_Rect. PP_OK is sent as
1617 // the error code in a reply message if the rect is topmost otherwise
1618 // PP_ERROR_FAILED is sent.
1619 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_IsRectTopmost,
1620 PP_Rect /* rect */)
1621
1619 // DeviceEnumeration ----------------------------------------------------------- 1622 // DeviceEnumeration -----------------------------------------------------------
1620 // Device enumeration messages used by audio input and video capture. 1623 // Device enumeration messages used by audio input and video capture.
1621 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices) 1624 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices)
1622 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply, 1625 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply,
1623 std::vector<ppapi::DeviceRefData> /* devices */) 1626 std::vector<ppapi::DeviceRefData> /* devices */)
1624 IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange, 1627 IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange,
1625 uint32_t /* callback_id */) 1628 uint32_t /* callback_id */)
1626 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange) 1629 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange)
1627 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange, 1630 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange,
1628 uint32_t /* callback_id */, 1631 uint32_t /* callback_id */,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 std::vector<ppapi::HostResource> /* buffers */, 1735 std::vector<ppapi::HostResource> /* buffers */,
1733 uint32_t /* buffer_size */) 1736 uint32_t /* buffer_size */)
1734 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 1737 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1735 uint32_t /* status */) 1738 uint32_t /* status */)
1736 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 1739 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1737 uint32_t /* error */) 1740 uint32_t /* error */)
1738 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 1741 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1739 uint32_t /* buffer */) 1742 uint32_t /* buffer */)
1740 1743
1741 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1744 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/flash_resource.cc ('k') | ppapi/proxy/ppb_flash_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698