diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:42 +0000 |
commit | 837b550238aa671a591ccf282dddeab29cadb206 (patch) | |
tree | 914b6b8862bace72bd3245ca184d374b08d8a672 /vendor/web-sys/src/features/gen_MediaDevices.rs | |
parent | Adding debian version 1.70.0+dfsg2-1. (diff) | |
download | rustc-837b550238aa671a591ccf282dddeab29cadb206.tar.xz rustc-837b550238aa671a591ccf282dddeab29cadb206.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_MediaDevices.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_MediaDevices.rs | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_MediaDevices.rs b/vendor/web-sys/src/features/gen_MediaDevices.rs new file mode 100644 index 000000000..d8a76c67f --- /dev/null +++ b/vendor/web-sys/src/features/gen_MediaDevices.rs @@ -0,0 +1,79 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaDevices , typescript_type = "MediaDevices")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaDevices` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub type MediaDevices; + # [wasm_bindgen (structural , method , getter , js_class = "MediaDevices" , js_name = ondevicechange)] + #[doc = "Getter for the `ondevicechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub fn ondevicechange(this: &MediaDevices) -> Option<::js_sys::Function>; + # [wasm_bindgen (structural , method , setter , js_class = "MediaDevices" , js_name = ondevicechange)] + #[doc = "Setter for the `ondevicechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub fn set_ondevicechange(this: &MediaDevices, value: Option<&::js_sys::Function>); + # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = enumerateDevices)] + #[doc = "The `enumerateDevices()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub fn enumerate_devices(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>; + # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getDisplayMedia)] + #[doc = "The `getDisplayMedia()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub fn get_display_media(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "DisplayMediaStreamConstraints")] + # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getDisplayMedia)] + #[doc = "The `getDisplayMedia()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`, `MediaDevices`*"] + pub fn get_display_media_with_constraints( + this: &MediaDevices, + constraints: &DisplayMediaStreamConstraints, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "MediaTrackSupportedConstraints")] + # [wasm_bindgen (method , structural , js_class = "MediaDevices" , js_name = getSupportedConstraints)] + #[doc = "The `getSupportedConstraints()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getSupportedConstraints)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `MediaTrackSupportedConstraints`*"] + pub fn get_supported_constraints(this: &MediaDevices) -> MediaTrackSupportedConstraints; + # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getUserMedia)] + #[doc = "The `getUserMedia()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub fn get_user_media(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "MediaStreamConstraints")] + # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getUserMedia)] + #[doc = "The `getUserMedia()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `MediaStreamConstraints`*"] + pub fn get_user_media_with_constraints( + this: &MediaDevices, + constraints: &MediaStreamConstraints, + ) -> Result<::js_sys::Promise, JsValue>; +} |