diff options
Diffstat (limited to 'vendor/web-sys/src/features/gen_PopupBlockedEvent.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_PopupBlockedEvent.rs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_PopupBlockedEvent.rs b/vendor/web-sys/src/features/gen_PopupBlockedEvent.rs new file mode 100644 index 000000000..22b008868 --- /dev/null +++ b/vendor/web-sys/src/features/gen_PopupBlockedEvent.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PopupBlockedEvent , typescript_type = "PopupBlockedEvent")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PopupBlockedEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] + pub type PopupBlockedEvent; + #[cfg(feature = "Window")] + # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = requestingWindow)] + #[doc = "Getter for the `requestingWindow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/requestingWindow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `Window`*"] + pub fn requesting_window(this: &PopupBlockedEvent) -> Option<Window>; + # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowName)] + #[doc = "Getter for the `popupWindowName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] + pub fn popup_window_name(this: &PopupBlockedEvent) -> Option<String>; + # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowFeatures)] + #[doc = "Getter for the `popupWindowFeatures` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowFeatures)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] + pub fn popup_window_features(this: &PopupBlockedEvent) -> Option<String>; + #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")] + #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/PopupBlockedEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] + pub fn new(type_: &str) -> Result<PopupBlockedEvent, JsValue>; + #[cfg(feature = "PopupBlockedEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")] + #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/PopupBlockedEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `PopupBlockedEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &PopupBlockedEventInit, + ) -> Result<PopupBlockedEvent, JsValue>; +} |