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