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    #[cfg(feature = "ViewTransitionTypeSet")]
63    #[wasm_bindgen(method, getter, js_class = "ViewTransition", js_name = "types")]
64    #[doc = "Getter for the `types` field of this object."]
65    #[doc = ""]
66    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/types)"]
67    #[doc = ""]
68    #[doc = "*This API requires the following crate features to be activated: `ViewTransition`, `ViewTransitionTypeSet`*"]
69    #[doc = ""]
70    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
71    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
72    pub fn types(this: &ViewTransition) -> ViewTransitionTypeSet;
73    #[cfg(web_sys_unstable_apis)]
74    #[cfg(feature = "Element")]
75    #[wasm_bindgen(
76        method,
77        getter,
78        js_class = "ViewTransition",
79        js_name = "transitionRoot"
80    )]
81    #[doc = "Getter for the `transitionRoot` field of this object."]
82    #[doc = ""]
83    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/transitionRoot)"]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `Element`, `ViewTransition`*"]
86    #[doc = ""]
87    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
89    pub fn transition_root(this: &ViewTransition) -> Element;
90    #[cfg(web_sys_unstable_apis)]
91    #[wasm_bindgen(catch, method, js_class = "ViewTransition", js_name = "skipTransition")]
92    #[doc = "The `skipTransition()` method."]
93    #[doc = ""]
94    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/skipTransition)"]
95    #[doc = ""]
96    #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
97    #[doc = ""]
98    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
99    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
100    pub fn skip_transition(this: &ViewTransition) -> Result<(), JsValue>;
101    #[cfg(web_sys_unstable_apis)]
102    #[wasm_bindgen(method, js_class = "ViewTransition", js_name = "waitUntil")]
103    #[doc = "The `waitUntil()` method."]
104    #[doc = ""]
105    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/waitUntil)"]
106    #[doc = ""]
107    #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
108    #[doc = ""]
109    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
110    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
111    pub fn wait_until(this: &ViewTransition, promise: &::js_sys::Promise);
112}