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