Index: ppapi/api/dev/ppb_device_ref_dev.idl |
diff --git a/ppapi/api/dev/ppb_device_ref_dev.idl b/ppapi/api/dev/ppb_device_ref_dev.idl |
index 660e389336a2c77e47d4c45755db81079cbbc414..98d127234f4be87d559478d6a680825a60374a69 100644 |
--- a/ppapi/api/dev/ppb_device_ref_dev.idl |
+++ b/ppapi/api/dev/ppb_device_ref_dev.idl |
@@ -14,6 +14,22 @@ label Chrome { |
}; |
/** |
+ * Defines the callback type to receive device change notifications for |
+ * <code>PPB_AudioInput_Dev.MonitorDeviceChange()</code> and |
+ * <code>PPB_VideoCapture_Dev.MonitorDeviceChange()</code>. |
+ * |
+ * @param[inout] user_data The opaque pointer that the caller passed into |
+ * <code>MonitorDeviceChange()</code>. |
+ * @param[in] device_count How many devices in the array. |
+ * @param[in] devices An array of <code>PPB_DeviceRef_Dev</code>. Please note |
+ * that the ref count of the elements is not increased on behalf of the plugin. |
+ */ |
+typedef void PP_MonitorDeviceChangeCallback( |
+ [inout] mem_t user_data, |
+ [in] uint32_t device_count, |
+ [in, size_is(device_count)] PP_Resource[] devices); |
+ |
+/** |
* Device types. |
*/ |
[assert_size(4)] |