Skip to main content

web_sys/features/
gen_ViewTransition.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    #[wasm_bindgen(
9        extends = "::js_sys::Object",
10        js_name = "ViewTransition",
11        typescript_type = "ViewTransition"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `ViewTransition` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
19    #[doc = ""]
20    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22    pub type ViewTransition;
23    #[cfg(web_sys_unstable_apis)]
24    #[wasm_bindgen(
25        method,
26        getter,
27        js_class = "ViewTransition",
28        js_name = "updateCallbackDone"
29    )]
30    #[doc = "Getter for the `updateCallbackDone` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/updateCallbackDone)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
35    #[doc = ""]
36    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
37    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
38    pub fn update_callback_done(this: &ViewTransition) -> ::js_sys::Promise<::js_sys::Undefined>;
39    #[cfg(web_sys_unstable_apis)]
40    #[wasm_bindgen(method, getter, js_class = "ViewTransition", js_name = "ready")]
41    #[doc = "Getter for the `ready` field of this object."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/ready)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
46    #[doc = ""]
47    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
48    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
49    pub fn ready(this: &ViewTransition) -> ::js_sys::Promise<::js_sys::Undefined>;
50    #[cfg(web_sys_unstable_apis)]
51    #[wasm_bindgen(method, getter, js_class = "ViewTransition", js_name = "finished")]
52    #[doc = "Getter for the `finished` field of this object."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/finished)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
57    #[doc = ""]
58    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
59    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
60    pub fn finished(this: &ViewTransition) -> ::js_sys::Promise<::js_sys::Undefined>;
61    #[cfg(web_sys_unstable_apis)]
62    #[wasm_bindgen(catch, method, js_class = "ViewTransition", js_name = "skipTransition")]
63    #[doc = "The `skipTransition()` method."]
64    #[doc = ""]
65    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/skipTransition)"]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
68    #[doc = ""]
69    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
70    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
71    pub fn skip_transition(this: &ViewTransition) -> Result<(), JsValue>;
72}