1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EventTarget , typescript_type = "EventTarget" ) ]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `EventTarget` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"]
    pub type EventTarget;
    #[wasm_bindgen(catch, constructor, js_class = "EventTarget")]
    #[doc = "The `new EventTarget(..)` constructor, creating a new instance of `EventTarget`."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/EventTarget)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"]
    pub fn new() -> Result<EventTarget, JsValue>;
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ]
    #[doc = "The `addEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"]
    pub fn add_event_listener_with_callback(
        this: &EventTarget,
        type_: &str,
        listener: &::js_sys::Function,
    ) -> Result<(), JsValue>;
    #[cfg(feature = "EventListener")]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ]
    #[doc = "The `addEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"]
    pub fn add_event_listener_with_event_listener(
        this: &EventTarget,
        type_: &str,
        listener: &EventListener,
    ) -> Result<(), JsValue>;
    #[cfg(feature = "AddEventListenerOptions")]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ]
    #[doc = "The `addEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventTarget`*"]
    pub fn add_event_listener_with_callback_and_add_event_listener_options(
        this: &EventTarget,
        type_: &str,
        listener: &::js_sys::Function,
        options: &AddEventListenerOptions,
    ) -> Result<(), JsValue>;
    #[cfg(all(feature = "AddEventListenerOptions", feature = "EventListener",))]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ]
    #[doc = "The `addEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventListener`, `EventTarget`*"]
    pub fn add_event_listener_with_event_listener_and_add_event_listener_options(
        this: &EventTarget,
        type_: &str,
        listener: &EventListener,
        options: &AddEventListenerOptions,
    ) -> Result<(), JsValue>;
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ]
    #[doc = "The `addEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"]
    pub fn add_event_listener_with_callback_and_bool(
        this: &EventTarget,
        type_: &str,
        listener: &::js_sys::Function,
        options: bool,
    ) -> Result<(), JsValue>;
    #[cfg(feature = "EventListener")]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ]
    #[doc = "The `addEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"]
    pub fn add_event_listener_with_event_listener_and_bool(
        this: &EventTarget,
        type_: &str,
        listener: &EventListener,
        options: bool,
    ) -> Result<(), JsValue>;
    #[cfg(feature = "AddEventListenerOptions")]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ]
    #[doc = "The `addEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventTarget`*"]
    pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
        this: &EventTarget,
        type_: &str,
        listener: &::js_sys::Function,
        options: &AddEventListenerOptions,
        wants_untrusted: Option<bool>,
    ) -> Result<(), JsValue>;
    #[cfg(all(feature = "AddEventListenerOptions", feature = "EventListener",))]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ]
    #[doc = "The `addEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventListener`, `EventTarget`*"]
    pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
        this: &EventTarget,
        type_: &str,
        listener: &EventListener,
        options: &AddEventListenerOptions,
        wants_untrusted: Option<bool>,
    ) -> Result<(), JsValue>;
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ]
    #[doc = "The `addEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"]
    pub fn add_event_listener_with_callback_and_bool_and_wants_untrusted(
        this: &EventTarget,
        type_: &str,
        listener: &::js_sys::Function,
        options: bool,
        wants_untrusted: Option<bool>,
    ) -> Result<(), JsValue>;
    #[cfg(feature = "EventListener")]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ]
    #[doc = "The `addEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"]
    pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
        this: &EventTarget,
        type_: &str,
        listener: &EventListener,
        options: bool,
        wants_untrusted: Option<bool>,
    ) -> Result<(), JsValue>;
    #[cfg(feature = "Event")]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = dispatchEvent ) ]
    #[doc = "The `dispatchEvent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Event`, `EventTarget`*"]
    pub fn dispatch_event(this: &EventTarget, event: &Event) -> Result<bool, JsValue>;
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ]
    #[doc = "The `removeEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"]
    pub fn remove_event_listener_with_callback(
        this: &EventTarget,
        type_: &str,
        listener: &::js_sys::Function,
    ) -> Result<(), JsValue>;
    #[cfg(feature = "EventListener")]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ]
    #[doc = "The `removeEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"]
    pub fn remove_event_listener_with_event_listener(
        this: &EventTarget,
        type_: &str,
        listener: &EventListener,
    ) -> Result<(), JsValue>;
    #[cfg(feature = "EventListenerOptions")]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ]
    #[doc = "The `removeEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`, `EventTarget`*"]
    pub fn remove_event_listener_with_callback_and_event_listener_options(
        this: &EventTarget,
        type_: &str,
        listener: &::js_sys::Function,
        options: &EventListenerOptions,
    ) -> Result<(), JsValue>;
    #[cfg(all(feature = "EventListener", feature = "EventListenerOptions",))]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ]
    #[doc = "The `removeEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventListenerOptions`, `EventTarget`*"]
    pub fn remove_event_listener_with_event_listener_and_event_listener_options(
        this: &EventTarget,
        type_: &str,
        listener: &EventListener,
        options: &EventListenerOptions,
    ) -> Result<(), JsValue>;
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ]
    #[doc = "The `removeEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"]
    pub fn remove_event_listener_with_callback_and_bool(
        this: &EventTarget,
        type_: &str,
        listener: &::js_sys::Function,
        options: bool,
    ) -> Result<(), JsValue>;
    #[cfg(feature = "EventListener")]
    # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ]
    #[doc = "The `removeEventListener()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"]
    pub fn remove_event_listener_with_event_listener_and_bool(
        this: &EventTarget,
        type_: &str,
        listener: &EventListener,
        options: bool,
    ) -> Result<(), JsValue>;
}