diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_HashChangeEvent.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-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_HashChangeEvent.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_HashChangeEvent.rs | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_HashChangeEvent.rs b/vendor/web-sys/src/features/gen_HashChangeEvent.rs new file mode 100644 index 000000000..9623ed333 --- /dev/null +++ b/vendor/web-sys/src/features/gen_HashChangeEvent.rs @@ -0,0 +1,103 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = HashChangeEvent , typescript_type = "HashChangeEvent")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HashChangeEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub type HashChangeEvent; + # [wasm_bindgen (structural , method , getter , js_class = "HashChangeEvent" , js_name = oldURL)] + #[doc = "Getter for the `oldURL` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/oldURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn old_url(this: &HashChangeEvent) -> String; + # [wasm_bindgen (structural , method , getter , js_class = "HashChangeEvent" , js_name = newURL)] + #[doc = "Getter for the `newURL` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/newURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn new_url(this: &HashChangeEvent) -> String; + #[wasm_bindgen(catch, constructor, js_class = "HashChangeEvent")] + #[doc = "The `new HashChangeEvent(..)` constructor, creating a new instance of `HashChangeEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/HashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn new(type_: &str) -> Result<HashChangeEvent, JsValue>; + #[cfg(feature = "HashChangeEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "HashChangeEvent")] + #[doc = "The `new HashChangeEvent(..)` constructor, creating a new instance of `HashChangeEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/HashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`, `HashChangeEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &HashChangeEventInit, + ) -> Result<HashChangeEvent, JsValue>; + # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] + #[doc = "The `initHashChangeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn init_hash_change_event(this: &HashChangeEvent, type_arg: &str); + # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] + #[doc = "The `initHashChangeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn init_hash_change_event_with_can_bubble_arg( + this: &HashChangeEvent, + type_arg: &str, + can_bubble_arg: bool, + ); + # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] + #[doc = "The `initHashChangeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg( + this: &HashChangeEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + ); + # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] + #[doc = "The `initHashChangeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg_and_old_url_arg( + this: &HashChangeEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + old_url_arg: &str, + ); + # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] + #[doc = "The `initHashChangeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg_and_old_url_arg_and_new_url_arg( + this: &HashChangeEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + old_url_arg: &str, + new_url_arg: &str, + ); +} |