Skip to main content

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(
8        extends = "Event",
9        extends = "::js_sys::Object",
10        js_name = "PopupBlockedEvent",
11        typescript_type = "PopupBlockedEvent"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `PopupBlockedEvent` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"]
19    pub type PopupBlockedEvent;
20    #[cfg(feature = "Window")]
21    #[wasm_bindgen(
22        method,
23        getter,
24        js_class = "PopupBlockedEvent",
25        js_name = "requestingWindow"
26    )]
27    #[doc = "Getter for the `requestingWindow` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/requestingWindow)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `Window`*"]
32    pub fn requesting_window(this: &PopupBlockedEvent) -> Option<Window>;
33    #[wasm_bindgen(
34        method,
35        getter,
36        js_class = "PopupBlockedEvent",
37        js_name = "popupWindowURI"
38    )]
39    #[doc = "Getter for the `popupWindowURI` field of this object."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowURI)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"]
44    pub fn popup_window_uri(this: &PopupBlockedEvent) -> Option<::alloc::string::String>;
45    #[wasm_bindgen(
46        method,
47        getter,
48        js_class = "PopupBlockedEvent",
49        js_name = "popupWindowName"
50    )]
51    #[doc = "Getter for the `popupWindowName` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowName)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"]
56    pub fn popup_window_name(this: &PopupBlockedEvent) -> Option<::alloc::string::String>;
57    #[wasm_bindgen(
58        method,
59        getter,
60        js_class = "PopupBlockedEvent",
61        js_name = "popupWindowFeatures"
62    )]
63    #[doc = "Getter for the `popupWindowFeatures` field of this object."]
64    #[doc = ""]
65    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowFeatures)"]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"]
68    pub fn popup_window_features(this: &PopupBlockedEvent) -> Option<::alloc::string::String>;
69    #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")]
70    #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."]
71    #[doc = ""]
72    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/PopupBlockedEvent)"]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"]
75    pub fn new(type_: &str) -> Result<PopupBlockedEvent, JsValue>;
76    #[cfg(feature = "PopupBlockedEventInit")]
77    #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")]
78    #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."]
79    #[doc = ""]
80    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/PopupBlockedEvent)"]
81    #[doc = ""]
82    #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `PopupBlockedEventInit`*"]
83    pub fn new_with_event_init_dict(
84        type_: &str,
85        event_init_dict: &PopupBlockedEventInit,
86    ) -> Result<PopupBlockedEvent, JsValue>;
87}