diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_MediaKeys.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.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_MediaKeys.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_MediaKeys.rs | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_MediaKeys.rs b/vendor/web-sys/src/features/gen_MediaKeys.rs new file mode 100644 index 000000000..ecf90c11e --- /dev/null +++ b/vendor/web-sys/src/features/gen_MediaKeys.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeys , typescript_type = "MediaKeys")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeys` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] + pub type MediaKeys; + # [wasm_bindgen (structural , method , getter , js_class = "MediaKeys" , js_name = keySystem)] + #[doc = "Getter for the `keySystem` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/keySystem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] + pub fn key_system(this: &MediaKeys) -> String; + #[cfg(feature = "MediaKeySession")] + # [wasm_bindgen (catch , method , structural , js_class = "MediaKeys" , js_name = createSession)] + #[doc = "The `createSession()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/createSession)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeys`*"] + pub fn create_session(this: &MediaKeys) -> Result<MediaKeySession, JsValue>; + #[cfg(all(feature = "MediaKeySession", feature = "MediaKeySessionType",))] + # [wasm_bindgen (catch , method , structural , js_class = "MediaKeys" , js_name = createSession)] + #[doc = "The `createSession()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/createSession)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeySessionType`, `MediaKeys`*"] + pub fn create_session_with_session_type( + this: &MediaKeys, + session_type: MediaKeySessionType, + ) -> Result<MediaKeySession, JsValue>; + # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = getStatusForPolicy)] + #[doc = "The `getStatusForPolicy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/getStatusForPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] + pub fn get_status_for_policy(this: &MediaKeys) -> ::js_sys::Promise; + #[cfg(feature = "MediaKeysPolicy")] + # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = getStatusForPolicy)] + #[doc = "The `getStatusForPolicy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/getStatusForPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`, `MediaKeysPolicy`*"] + pub fn get_status_for_policy_with_policy( + this: &MediaKeys, + policy: &MediaKeysPolicy, + ) -> ::js_sys::Promise; + # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = setServerCertificate)] + #[doc = "The `setServerCertificate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/setServerCertificate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] + pub fn set_server_certificate_with_buffer_source( + this: &MediaKeys, + server_certificate: &::js_sys::Object, + ) -> ::js_sys::Promise; + # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = setServerCertificate)] + #[doc = "The `setServerCertificate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/setServerCertificate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] + pub fn set_server_certificate_with_u8_array( + this: &MediaKeys, + server_certificate: &mut [u8], + ) -> ::js_sys::Promise; +} |