diff options
author | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-13 03:35:35 +0000 |
---|---|---|
committer | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-13 03:35:35 +0000 |
commit | caf16c7156876a462d4e213279fa6baa1735bc08 (patch) | |
tree | 0268a0d20f4b194b55f23df25611a3a52221e648 /ppapi/proxy/ppapi_messages.h | |
parent | 9cef770978192902cc3d75979f3b2b3eb6d827ee (diff) | |
download | chromium_src-caf16c7156876a462d4e213279fa6baa1735bc08.zip chromium_src-caf16c7156876a462d4e213279fa6baa1735bc08.tar.gz chromium_src-caf16c7156876a462d4e213279fa6baa1735bc08.tar.bz2 |
Refactor 4 PPB_Flash functions to the new PPAPI resource model.
The functions being refactored are:
-SetInstanceAlwaysOnTop
-DrawGlyphs
-GetProxyForURL
-Navigate
Each of these functions was manually tested with a Flash movie that uses it.
Review URL: https://chromiumcodereview.appspot.com/11510008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172806 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppapi_messages.h')
-rw-r--r-- | ppapi/proxy/ppapi_messages.h | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h index 87f369d..7fa30fe 100644 --- a/ppapi/proxy/ppapi_messages.h +++ b/ppapi/proxy/ppapi_messages.h @@ -1257,30 +1257,10 @@ IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, ppapi::HostResource /* video_decoder */) // PPB_Flash. -IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop, - PP_Instance /* instance */, - PP_Bool /* on_top */) -// This has to be synchronous becuase the caller may want to composite on -// top of the resulting text after the call is complete. -IPC_SYNC_MESSAGE_ROUTED2_1( - PpapiHostMsg_PPBFlash_DrawGlyphs, - PP_Instance /* instance */, - ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */, - PP_Bool /* result */) -IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate, - PP_Instance /* instance */, - ppapi::URLRequestInfoData /* request_data */, - std::string /* target */, - PP_Bool /* from_user_action */, - int32_t /* result */) IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset, PP_Instance /* instance */, PP_Time /* t */, double /* offset */) -IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost, - PP_Instance /* instance */, - PP_Rect /* rect */, - PP_Bool /* result */) IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetSetting, PP_Instance /* instance */, PP_FlashSetting /* setting */, @@ -1613,6 +1593,33 @@ IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */) IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply, std::string /* proxy */) +// Notifies the renderer whether the Flash instance is in windowed mode. No +// reply is sent. +IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_SetInstanceAlwaysOnTop, + bool /* on_top */) + +// Notifies the renderer to draw text to the given PP_ImageData resource. All +// parmeters for drawing (including the resource to draw to) are contianed in +// the PPBFlash_DrawGlyphs_Params structure. An error code is sent in a reply +// message indicating success. +IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_DrawGlyphs, + ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */) + +// Notifies the renderer to navigate to the given URL contained in the +// URLRequestInfoData. An error code is sent in a reply message indicating +// success. +IPC_MESSAGE_CONTROL3(PpapiHostMsg_Flash_Navigate, + ppapi::URLRequestInfoData /* data */, + std::string /* target */, + bool /* from_user_action */) + +// Queries the renderer on whether the plugin instance is the topmost element +// in the area of the instance specified by the given PP_Rect. PP_OK is sent as +// the error code in a reply message if the rect is topmost otherwise +// PP_ERROR_FAILED is sent. +IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_IsRectTopmost, + PP_Rect /* rect */) + // Device enumeration messages used by audio input and video capture. IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices) IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply, |