diff options
author | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-11 02:02:11 +0000 |
---|---|---|
committer | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-11 02:02:11 +0000 |
commit | 11d0c36550b865bc690712a07bca9de01b91000c (patch) | |
tree | 58aa6ffaabbfbdfe4dcb99ca7dd1010336ab5928 /ppapi/proxy/ppapi_messages.h | |
parent | 70c7b2f7275b0815a97df029ed599ed7e46c7bfb (diff) | |
download | chromium_src-11d0c36550b865bc690712a07bca9de01b91000c.zip chromium_src-11d0c36550b865bc690712a07bca9de01b91000c.tar.gz chromium_src-11d0c36550b865bc690712a07bca9de01b91000c.tar.bz2 |
Implement plugin side of sync EnumerateVideoCaptureDevices
This implements the plugin side of PPB_Flash::EnumerateVideoCaptureDevices which is a synchronous version of PPB_VideoCapture::EnumerateVideoDevices. The result is output into a PP_ArrayOutput. This also adds a unittest which does some basic testing of the messages sent, but mainly demonstrates how to write PluginResource unittests when dealing with sync messages (and adds some infrastructure to make it easy to do this).
Once VideoCapture is implemented as a new-style resource, the code for this will simplify a lot.
Review URL: https://chromiumcodereview.appspot.com/11039012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppapi_messages.h')
-rw-r--r-- | ppapi/proxy/ppapi_messages.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h index 863cc4c6..238564c 100644 --- a/ppapi/proxy/ppapi_messages.h +++ b/ppapi/proxy/ppapi_messages.h @@ -1675,4 +1675,11 @@ IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable, uint32_t /* table */) IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, std::string /* output */) + +// Flash functions. +IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) +IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_EnumerateVideoCaptureDevices, + ppapi::HostResource /* video_capture */) +IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_EnumerateVideoCaptureDevicesReply, + std::vector<ppapi::DeviceRefData> /* devices */) #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |