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

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

Issue 11415140: Refactor 3 PPB_Flash functions to the new 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 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop, 1299 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop,
1300 PP_Instance /* instance */, 1300 PP_Instance /* instance */,
1301 PP_Bool /* on_top */) 1301 PP_Bool /* on_top */)
1302 // This has to be synchronous becuase the caller may want to composite on 1302 // This has to be synchronous becuase the caller may want to composite on
1303 // top of the resulting text after the call is complete. 1303 // top of the resulting text after the call is complete.
1304 IPC_SYNC_MESSAGE_ROUTED2_1( 1304 IPC_SYNC_MESSAGE_ROUTED2_1(
1305 PpapiHostMsg_PPBFlash_DrawGlyphs, 1305 PpapiHostMsg_PPBFlash_DrawGlyphs,
1306 PP_Instance /* instance */, 1306 PP_Instance /* instance */,
1307 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */, 1307 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */,
1308 PP_Bool /* result */) 1308 PP_Bool /* result */)
1309 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL,
1310 PP_Instance /* instance */,
1311 std::string /* url */,
1312 ppapi::proxy::SerializedVar /* result */)
1313 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate, 1309 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate,
1314 PP_Instance /* instance */, 1310 PP_Instance /* instance */,
1315 ppapi::URLRequestInfoData /* request_data */, 1311 ppapi::URLRequestInfoData /* request_data */,
1316 std::string /* target */, 1312 std::string /* target */,
1317 PP_Bool /* from_user_action */, 1313 PP_Bool /* from_user_action */,
1318 int32_t /* result */) 1314 int32_t /* result */)
1319 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset, 1315 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
1320 PP_Instance /* instance */, 1316 PP_Instance /* instance */,
1321 PP_Time /* t */, 1317 PP_Time /* t */,
1322 double /* offset */) 1318 double /* offset */)
1323 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost, 1319 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost,
1324 PP_Instance /* instance */, 1320 PP_Instance /* instance */,
1325 PP_Rect /* rect */, 1321 PP_Rect /* rect */,
1326 PP_Bool /* result */) 1322 PP_Bool /* result */)
1327 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_FlashSetFullscreen, 1323 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_FlashSetFullscreen,
1328 PP_Instance /* instance */, 1324 PP_Instance /* instance */,
1329 PP_Bool /* fullscreen */, 1325 PP_Bool /* fullscreen */,
1330 PP_Bool /* result */) 1326 PP_Bool /* result */)
1331 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFlash_FlashGetScreenSize, 1327 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFlash_FlashGetScreenSize,
1332 PP_Instance /* instance */, 1328 PP_Instance /* instance */,
1333 PP_Bool /* result */, 1329 PP_Bool /* result */,
1334 PP_Size /* size */) 1330 PP_Size /* size */)
1335 IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBFlash_UpdateActivity)
1336 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlash_OpenFileRef, 1331 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlash_OpenFileRef,
1337 PP_Instance /* instance */, 1332 PP_Instance /* instance */,
1338 ppapi::HostResource /* file_ref */, 1333 ppapi::HostResource /* file_ref */,
1339 int32_t /* mode */, 1334 int32_t /* mode */,
1340 IPC::PlatformFileForTransit /* file_handle */, 1335 IPC::PlatformFileForTransit /* file_handle */,
1341 int32_t /* result */) 1336 int32_t /* result */)
1342 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlash_QueryFileRef, 1337 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlash_QueryFileRef,
1343 PP_Instance /* instance */, 1338 PP_Instance /* instance */,
1344 ppapi::HostResource /* file_ref */, 1339 ppapi::HostResource /* file_ref */,
1345 PP_FileInfo /* info */, 1340 PP_FileInfo /* info */,
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, 1609 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
1615 std::string /* device_id */, 1610 std::string /* device_id */,
1616 PP_AudioSampleRate /* sample_rate */, 1611 PP_AudioSampleRate /* sample_rate */,
1617 uint32_t /* sample_frame_count */) 1612 uint32_t /* sample_frame_count */)
1618 // Reply to an Open call. This supplies a socket handle and a shared memory 1613 // Reply to an Open call. This supplies a socket handle and a shared memory
1619 // handle. Both handles are passed in the ReplyParams struct. 1614 // handle. Both handles are passed in the ReplyParams struct.
1620 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply) 1615 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply)
1621 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */) 1616 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */)
1622 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close) 1617 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close)
1623 1618
1619 // Flash.
1620 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
1621 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity)
1622 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */)
1623 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply,
1624 std::string /* proxy */)
1625
1624 // Flash clipboard. 1626 // Flash clipboard.
1625 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create) 1627 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create)
1626 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat, 1628 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat,
1627 std::string /* format_name */) 1629 std::string /* format_name */)
1628 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply, 1630 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply,
1629 uint32_t /* format */) 1631 uint32_t /* format */)
1630 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable, 1632 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable,
1631 uint32_t /* clipboard_type */, 1633 uint32_t /* clipboard_type */,
1632 uint32_t /* format */) 1634 uint32_t /* format */)
1633 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData, 1635 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData,
(...skipping 23 matching lines...) Expand all
1657 1659
1658 // Shows the menu at the given location relative to the plugin instance. 1660 // Shows the menu at the given location relative to the plugin instance.
1659 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Show, 1661 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Show,
1660 PP_Point /* location */) 1662 PP_Point /* location */)
1661 1663
1662 // Reply to a show command. If the resource reply is PP_OK, the selected_id 1664 // Reply to a show command. If the resource reply is PP_OK, the selected_id
1663 // will be the menu item ID chosen by the user. 1665 // will be the menu item ID chosen by the user.
1664 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply, 1666 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply,
1665 int32_t /* selected_id */) 1667 int32_t /* selected_id */)
1666 1668
1667 // Flash functions.
1668 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
1669
1670 // VideoCapture_Dev, plugin -> host 1669 // VideoCapture_Dev, plugin -> host
1671 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create) 1670 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create)
1672 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture) 1671 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture)
1673 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer, 1672 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer,
1674 uint32_t /* buffer */) 1673 uint32_t /* buffer */)
1675 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture) 1674 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture)
1676 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close) 1675 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close)
1677 1676
1678 // VideoCapture_Dev, plugin -> host -> plugin 1677 // VideoCapture_Dev, plugin -> host -> plugin
1679 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_EnumerateDevices) 1678 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_EnumerateDevices)
(...skipping 11 matching lines...) Expand all
1691 std::vector<ppapi::HostResource> /* buffers */, 1690 std::vector<ppapi::HostResource> /* buffers */,
1692 uint32_t /* buffer_size */) 1691 uint32_t /* buffer_size */)
1693 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 1692 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1694 uint32_t /* status */) 1693 uint32_t /* status */)
1695 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 1694 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1696 uint32_t /* error */) 1695 uint32_t /* error */)
1697 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 1696 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1698 uint32_t /* buffer */) 1697 uint32_t /* buffer */)
1699 1698
1700 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1699 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698