Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / common / media / video_capture_messages.h
index a7745a6..6adc443 100644 (file)
@@ -13,7 +13,8 @@
 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
 #define IPC_MESSAGE_START VideoCaptureMsgStart
 
-IPC_ENUM_TRAITS(content::VideoCaptureState)
+IPC_ENUM_TRAITS_MAX_VALUE(content::VideoCaptureState,
+                          content::VIDEO_CAPTURE_STATE_LAST)
 
 IPC_STRUCT_TRAITS_BEGIN(media::VideoCaptureParams)
   IPC_STRUCT_TRAITS_MEMBER(requested_format)
@@ -55,6 +56,12 @@ IPC_MESSAGE_CONTROL2(VideoCaptureMsg_DeviceSupportedFormatsEnumerated,
                      int /* device_id */,
                      media::VideoCaptureFormats /* supported_formats */)
 
+// Notify the renderer about a device's format(s) in use; this is a response
+// to a VideoCaptureHostMsg_GetDeviceFormatInUse request.
+IPC_MESSAGE_CONTROL2(VideoCaptureMsg_DeviceFormatsInUseReceived,
+                     int /* device_id */,
+                     media::VideoCaptureFormats /* formats_in_use */)
+
 // Start a video capture as |device_id|, a new id picked by the renderer
 // process. The session to be started is determined by |params.session_id|.
 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Start,
@@ -76,7 +83,12 @@ IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_BufferReady,
                      int /* device_id */,
                      int /* buffer_id */)
 
-// Get the formats supported by device referenced by |capture_session_id|.
+// Get the formats supported by device referenced by |capture_session_id|.
 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats,
                      int /* device_id */,
                      media::VideoCaptureSessionId /* session_id */)
+
+// Get the format(s) in use by a device referenced by |capture_session_id|.
+IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse,
+                     int /* device_id */,
+                     media::VideoCaptureSessionId /* session_id */)