web_sys/features/
gen_PopupBlockedEvent.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PopupBlockedEvent , typescript_type = "PopupBlockedEvent")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `PopupBlockedEvent` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"]
14    pub type PopupBlockedEvent;
15    #[cfg(feature = "Window")]
16    # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = requestingWindow)]
17    #[doc = "Getter for the `requestingWindow` field of this object."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/requestingWindow)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `Window`*"]
22    pub fn requesting_window(this: &PopupBlockedEvent) -> Option<Window>;
23    # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowName)]
24    #[doc = "Getter for the `popupWindowName` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowName)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"]
29    pub fn popup_window_name(this: &PopupBlockedEvent) -> Option<::alloc::string::String>;
30    # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowFeatures)]
31    #[doc = "Getter for the `popupWindowFeatures` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowFeatures)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"]
36    pub fn popup_window_features(this: &PopupBlockedEvent) -> Option<::alloc::string::String>;
37    #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")]
38    #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/PopupBlockedEvent)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"]
43    pub fn new(type_: &str) -> Result<PopupBlockedEvent, JsValue>;
44    #[cfg(feature = "PopupBlockedEventInit")]
45    #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")]
46    #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/PopupBlockedEvent)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `PopupBlockedEventInit`*"]
51    pub fn new_with_event_init_dict(
52        type_: &str,
53        event_init_dict: &PopupBlockedEventInit,
54    ) -> Result<PopupBlockedEvent, JsValue>;
55}