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

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
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, 1253 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
1270 PP_Instance /* instance */, 1254 PP_Instance /* instance */,
1271 PP_Time /* t */, 1255 PP_Time /* t */,
1272 double /* offset */) 1256 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_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetSetting, 1257 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetSetting,
1278 PP_Instance /* instance */, 1258 PP_Instance /* instance */,
1279 PP_FlashSetting /* setting */, 1259 PP_FlashSetting /* setting */,
1280 ppapi::proxy::SerializedVar /* result */) 1260 ppapi::proxy::SerializedVar /* result */)
1281 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFlash_InvokePrinting, 1261 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFlash_InvokePrinting,
1282 PP_Instance /* instance */) 1262 PP_Instance /* instance */)
1283 1263
1284 // PPB_Flash_MessageLoop. 1264 // PPB_Flash_MessageLoop.
1285 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create, 1265 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
1286 PP_Instance /* instance */, 1266 PP_Instance /* instance */,
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */) 1574 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */)
1595 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close) 1575 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close)
1596 1576
1597 // Flash. 1577 // Flash.
1598 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) 1578 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
1599 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity) 1579 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity)
1600 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */) 1580 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */)
1601 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply, 1581 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply,
1602 std::string /* proxy */) 1582 std::string /* proxy */)
1603 1583
1584 // Notifies the renderer whether the Flash instance is in windowed mode. No
1585 // reply is sent.
1586 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_SetInstanceAlwaysOnTop,
1587 bool /* on_top */)
1588
1589 // Notifies the renderer to draw text to the given PP_ImageData resource. All
1590 // parmeters for drawing (including the resource to draw to) are contianed in
1591 // the PPBFlash_DrawGlyphs_Params structure. An error code is sent in a reply
1592 // message indicating success.
1593 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_DrawGlyphs,
1594 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */)
1595
1596 // Notifies the renderer to navigate to the given URL contained in the
1597 // URLRequestInfoData. An error code is sent in a reply message indicating
1598 // success.
1599 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Flash_Navigate,
1600 ppapi::URLRequestInfoData /* data */,
1601 std::string /* target */,
1602 bool /* from_user_action */)
1603
1604 // Queries the renderer on whether the plugin instance is the topmost element
1605 // in the area of the instance specified by the given PP_Rect. PP_OK is sent as
1606 // the error code in a reply message if the rect is topmost otherwise
1607 // PP_ERROR_FAILED is sent.
1608 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_IsRectTopmost,
1609 PP_Rect /* rect */)
1610
1604 // Device enumeration messages used by audio input and video capture. 1611 // Device enumeration messages used by audio input and video capture.
1605 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices) 1612 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices)
1606 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply, 1613 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply,
1607 std::vector<ppapi::DeviceRefData> /* devices */) 1614 std::vector<ppapi::DeviceRefData> /* devices */)
1608 IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange, 1615 IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange,
1609 uint32_t /* callback_id */) 1616 uint32_t /* callback_id */)
1610 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange) 1617 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange)
1611 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange, 1618 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange,
1612 uint32_t /* callback_id */, 1619 uint32_t /* callback_id */,
1613 std::vector<ppapi::DeviceRefData> /* devices */) 1620 std::vector<ppapi::DeviceRefData> /* devices */)
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 std::vector<ppapi::HostResource> /* buffers */, 1723 std::vector<ppapi::HostResource> /* buffers */,
1717 uint32_t /* buffer_size */) 1724 uint32_t /* buffer_size */)
1718 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 1725 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1719 uint32_t /* status */) 1726 uint32_t /* status */)
1720 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 1727 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1721 uint32_t /* error */) 1728 uint32_t /* error */)
1722 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 1729 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1723 uint32_t /* buffer */) 1730 uint32_t /* buffer */)
1724 1731
1725 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1732 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698