summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_TextTrack.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_TextTrack.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-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_TextTrack.rs')
-rw-r--r--vendor/web-sys/src/features/gen_TextTrack.rs120
1 files changed, 120 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_TextTrack.rs b/vendor/web-sys/src/features/gen_TextTrack.rs
new file mode 100644
index 000000000..9e3f5be74
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_TextTrack.rs
@@ -0,0 +1,120 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrack , typescript_type = "TextTrack")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `TextTrack` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"]
+ pub type TextTrack;
+ #[cfg(feature = "TextTrackKind")]
+ # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = kind)]
+ #[doc = "Getter for the `kind` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/kind)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackKind`*"]
+ pub fn kind(this: &TextTrack) -> TextTrackKind;
+ # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = label)]
+ #[doc = "Getter for the `label` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/label)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"]
+ pub fn label(this: &TextTrack) -> String;
+ # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = language)]
+ #[doc = "Getter for the `language` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/language)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"]
+ pub fn language(this: &TextTrack) -> String;
+ # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = id)]
+ #[doc = "Getter for the `id` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/id)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"]
+ pub fn id(this: &TextTrack) -> String;
+ # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = inBandMetadataTrackDispatchType)]
+ #[doc = "Getter for the `inBandMetadataTrackDispatchType` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"]
+ pub fn in_band_metadata_track_dispatch_type(this: &TextTrack) -> String;
+ #[cfg(feature = "TextTrackMode")]
+ # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = mode)]
+ #[doc = "Getter for the `mode` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/mode)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackMode`*"]
+ pub fn mode(this: &TextTrack) -> TextTrackMode;
+ #[cfg(feature = "TextTrackMode")]
+ # [wasm_bindgen (structural , method , setter , js_class = "TextTrack" , js_name = mode)]
+ #[doc = "Setter for the `mode` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/mode)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackMode`*"]
+ pub fn set_mode(this: &TextTrack, value: TextTrackMode);
+ #[cfg(feature = "TextTrackCueList")]
+ # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = cues)]
+ #[doc = "Getter for the `cues` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/cues)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCueList`*"]
+ pub fn cues(this: &TextTrack) -> Option<TextTrackCueList>;
+ #[cfg(feature = "TextTrackCueList")]
+ # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = activeCues)]
+ #[doc = "Getter for the `activeCues` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/activeCues)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCueList`*"]
+ pub fn active_cues(this: &TextTrack) -> Option<TextTrackCueList>;
+ # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = oncuechange)]
+ #[doc = "Getter for the `oncuechange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/oncuechange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"]
+ pub fn oncuechange(this: &TextTrack) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "TextTrack" , js_name = oncuechange)]
+ #[doc = "Setter for the `oncuechange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/oncuechange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"]
+ pub fn set_oncuechange(this: &TextTrack, value: Option<&::js_sys::Function>);
+ #[cfg(feature = "SourceBuffer")]
+ # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = sourceBuffer)]
+ #[doc = "Getter for the `sourceBuffer` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/sourceBuffer)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `TextTrack`*"]
+ pub fn source_buffer(this: &TextTrack) -> Option<SourceBuffer>;
+ #[cfg(feature = "VttCue")]
+ # [wasm_bindgen (method , structural , js_class = "TextTrack" , js_name = addCue)]
+ #[doc = "The `addCue()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/addCue)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `VttCue`*"]
+ pub fn add_cue(this: &TextTrack, cue: &VttCue);
+ #[cfg(feature = "VttCue")]
+ # [wasm_bindgen (catch , method , structural , js_class = "TextTrack" , js_name = removeCue)]
+ #[doc = "The `removeCue()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/removeCue)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `VttCue`*"]
+ pub fn remove_cue(this: &TextTrack, cue: &VttCue) -> Result<(), JsValue>;
+}