From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- .../src/features/gen_SpeechSynthesisEvent.rs | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs (limited to 'vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs') diff --git a/vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs b/vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs new file mode 100644 index 000000000..361fb54c9 --- /dev/null +++ b/vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SpeechSynthesisEvent , typescript_type = "SpeechSynthesisEvent")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechSynthesisEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] + pub type SpeechSynthesisEvent; + #[cfg(feature = "SpeechSynthesisUtterance")] + # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = utterance)] + #[doc = "Getter for the `utterance` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/utterance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`, `SpeechSynthesisUtterance`*"] + pub fn utterance(this: &SpeechSynthesisEvent) -> SpeechSynthesisUtterance; + # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = charIndex)] + #[doc = "Getter for the `charIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/charIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] + pub fn char_index(this: &SpeechSynthesisEvent) -> u32; + # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = charLength)] + #[doc = "Getter for the `charLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/charLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] + pub fn char_length(this: &SpeechSynthesisEvent) -> Option; + # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = elapsedTime)] + #[doc = "Getter for the `elapsedTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/elapsedTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] + pub fn elapsed_time(this: &SpeechSynthesisEvent) -> f32; + # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = name)] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] + pub fn name(this: &SpeechSynthesisEvent) -> Option; + #[cfg(feature = "SpeechSynthesisEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisEvent")] + #[doc = "The `new SpeechSynthesisEvent(..)` constructor, creating a new instance of `SpeechSynthesisEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/SpeechSynthesisEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`, `SpeechSynthesisEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &SpeechSynthesisEventInit, + ) -> Result; +} -- cgit v1.2.3