diff options
Diffstat (limited to 'vendor/web-sys/src/features/gen_MediaKeySession.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_MediaKeySession.rs | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_MediaKeySession.rs b/vendor/web-sys/src/features/gen_MediaKeySession.rs new file mode 100644 index 000000000..df29983ca --- /dev/null +++ b/vendor/web-sys/src/features/gen_MediaKeySession.rs @@ -0,0 +1,139 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaKeySession , typescript_type = "MediaKeySession")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeySession` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub type MediaKeySession; + #[cfg(feature = "MediaKeyError")] + # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = error)] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyError`, `MediaKeySession`*"] + pub fn error(this: &MediaKeySession) -> Option<MediaKeyError>; + # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = sessionId)] + #[doc = "Getter for the `sessionId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/sessionId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn session_id(this: &MediaKeySession) -> String; + # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = expiration)] + #[doc = "Getter for the `expiration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/expiration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn expiration(this: &MediaKeySession) -> f64; + # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = closed)] + #[doc = "Getter for the `closed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/closed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn closed(this: &MediaKeySession) -> ::js_sys::Promise; + #[cfg(feature = "MediaKeyStatusMap")] + # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = keyStatuses)] + #[doc = "Getter for the `keyStatuses` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/keyStatuses)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeyStatusMap`*"] + pub fn key_statuses(this: &MediaKeySession) -> MediaKeyStatusMap; + # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = onkeystatuseschange)] + #[doc = "Getter for the `onkeystatuseschange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn onkeystatuseschange(this: &MediaKeySession) -> Option<::js_sys::Function>; + # [wasm_bindgen (structural , method , setter , js_class = "MediaKeySession" , js_name = onkeystatuseschange)] + #[doc = "Setter for the `onkeystatuseschange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn set_onkeystatuseschange(this: &MediaKeySession, value: Option<&::js_sys::Function>); + # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = onmessage)] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn onmessage(this: &MediaKeySession) -> Option<::js_sys::Function>; + # [wasm_bindgen (structural , method , setter , js_class = "MediaKeySession" , js_name = onmessage)] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn set_onmessage(this: &MediaKeySession, value: Option<&::js_sys::Function>); + # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = close)] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn close(this: &MediaKeySession) -> ::js_sys::Promise; + # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = generateRequest)] + #[doc = "The `generateRequest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/generateRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn generate_request_with_buffer_source( + this: &MediaKeySession, + init_data_type: &str, + init_data: &::js_sys::Object, + ) -> ::js_sys::Promise; + # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = generateRequest)] + #[doc = "The `generateRequest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/generateRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn generate_request_with_u8_array( + this: &MediaKeySession, + init_data_type: &str, + init_data: &mut [u8], + ) -> ::js_sys::Promise; + # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = load)] + #[doc = "The `load()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/load)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn load(this: &MediaKeySession, session_id: &str) -> ::js_sys::Promise; + # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = remove)] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn remove(this: &MediaKeySession) -> ::js_sys::Promise; + # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = update)] + #[doc = "The `update()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn update_with_buffer_source( + this: &MediaKeySession, + response: &::js_sys::Object, + ) -> ::js_sys::Promise; + # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = update)] + #[doc = "The `update()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn update_with_u8_array(this: &MediaKeySession, response: &mut [u8]) -> ::js_sys::Promise; +} |