diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
commit | dc0db358abe19481e475e10c32149b53370f1a1c (patch) | |
tree | ab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/web-sys/src/features/gen_Window.rs | |
parent | Releasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_Window.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_Window.rs | 61 |
1 files changed, 44 insertions, 17 deletions
diff --git a/vendor/web-sys/src/features/gen_Window.rs b/vendor/web-sys/src/features/gen_Window.rs index 724f293ba..55a200144 100644 --- a/vendor/web-sys/src/features/gen_Window.rs +++ b/vendor/web-sys/src/features/gen_Window.rs @@ -1,4 +1,5 @@ #![allow(unused_imports)] +#![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] @@ -1966,13 +1967,6 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn blur(this: &Window) -> Result<(), JsValue>; - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = cancelAnimationFrame)] - #[doc = "The `cancelAnimationFrame()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `Window`*"] - pub fn cancel_animation_frame(this: &Window, handle: i32) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Window" , js_name = cancelIdleCallback)] #[doc = "The `cancelIdleCallback()` method."] #[doc = ""] @@ -2160,6 +2154,32 @@ extern "C" { message: &str, default: &str, ) -> Result<Option<String>, JsValue>; + #[cfg(web_sys_unstable_apis)] + # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = queryLocalFonts)] + #[doc = "The `queryLocalFonts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/queryLocalFonts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn query_local_fonts(this: &Window) -> Result<::js_sys::Promise, JsValue>; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "QueryOptions")] + # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = queryLocalFonts)] + #[doc = "The `queryLocalFonts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/queryLocalFonts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `QueryOptions`, `Window`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn query_local_fonts_with_options( + this: &Window, + options: &QueryOptions, + ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (method , structural , js_class = "Window" , js_name = releaseEvents)] #[doc = "The `releaseEvents()` method."] #[doc = ""] @@ -2167,16 +2187,6 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn release_events(this: &Window); - # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = requestAnimationFrame)] - #[doc = "The `requestAnimationFrame()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `Window`*"] - pub fn request_animation_frame( - this: &Window, - callback: &::js_sys::Function, - ) -> Result<i32, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = requestIdleCallback)] #[doc = "The `requestIdleCallback()` method."] #[doc = ""] @@ -2293,6 +2303,23 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn get(this: &Window, name: &str) -> Option<::js_sys::Object>; + # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = cancelAnimationFrame)] + #[doc = "The `cancelAnimationFrame()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn cancel_animation_frame(this: &Window, handle: i32) -> Result<(), JsValue>; + # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = requestAnimationFrame)] + #[doc = "The `requestAnimationFrame()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn request_animation_frame( + this: &Window, + callback: &::js_sys::Function, + ) -> Result<i32, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = atob)] #[doc = "The `atob()` method."] #[doc = ""] |