wasm-bindgen/crates/web-sys/src/features/gen_PerformanceTiming.rs

183 lines
12 KiB
Rust
Raw Normal View History

Dramatically improving the build time of web-sys (#2012) * Pre-generating web-sys * Fixing build errors * Minor refactor for the unit tests * Changing to generate #[wasm_bindgen} annotations * Fixing code generation * Adding in main bin to wasm-bindgen-webidl * Fixing more problems * Adding in support for unstable APIs * Fixing bug with code generation * More code generation fixes * Improving the webidl program * Removing unnecessary cfg from the generated code * Splitting doc comments onto separate lines * Improving the generation for unstable features * Adding in support for string values in enums * Now runs rustfmt on the mod.rs file * Fixing codegen for constructors * Fixing webidl-tests * Fixing build errors * Another fix for build errors * Renaming typescript_name to typescript_type * Adding in docs for typescript_type * Adding in CI script to verify that web-sys is up to date * Fixing CI script * Fixing CI script * Don't suppress git diff output * Remove duplicate definitions of `Location` Looks to be a preexisting bug in wasm-bindgen? * Regenerate webidl * Try to get the git diff command right * Handle named constructors in WebIDL * Remove stray rustfmt.toml * Add back NamedConstructorBar definition in tests * Run stable rustfmt over everything * Don't run Cargo in a build script Instead refactor things so webidl-tests can use the Rust-code-generation as a library in a build script. Also fixes `cargo fmt` in the repository. * Fixup generated code * Running web-sys checks on stable * Improving the code generation a little * Running rustfmt Co-authored-by: Alex Crichton <alex@alexcrichton.com>
2020-03-03 00:39:36 +01:00
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PerformanceTiming , typescript_type = "PerformanceTiming" ) ]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `PerformanceTiming` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub type PerformanceTiming;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = navigationStart ) ]
#[doc = "Getter for the `navigationStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/navigationStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn navigation_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = unloadEventStart ) ]
#[doc = "Getter for the `unloadEventStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/unloadEventStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn unload_event_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = unloadEventEnd ) ]
#[doc = "Getter for the `unloadEventEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/unloadEventEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn unload_event_end(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = redirectStart ) ]
#[doc = "Getter for the `redirectStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/redirectStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn redirect_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = redirectEnd ) ]
#[doc = "Getter for the `redirectEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/redirectEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn redirect_end(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = fetchStart ) ]
#[doc = "Getter for the `fetchStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/fetchStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn fetch_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domainLookupStart ) ]
#[doc = "Getter for the `domainLookupStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domainLookupStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn domain_lookup_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domainLookupEnd ) ]
#[doc = "Getter for the `domainLookupEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domainLookupEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn domain_lookup_end(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = connectStart ) ]
#[doc = "Getter for the `connectStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/connectStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn connect_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = connectEnd ) ]
#[doc = "Getter for the `connectEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/connectEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn connect_end(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = secureConnectionStart ) ]
#[doc = "Getter for the `secureConnectionStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/secureConnectionStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn secure_connection_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = requestStart ) ]
#[doc = "Getter for the `requestStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/requestStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn request_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = responseStart ) ]
#[doc = "Getter for the `responseStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/responseStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn response_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = responseEnd ) ]
#[doc = "Getter for the `responseEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/responseEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn response_end(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domLoading ) ]
#[doc = "Getter for the `domLoading` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domLoading)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn dom_loading(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domInteractive ) ]
#[doc = "Getter for the `domInteractive` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domInteractive)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn dom_interactive(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domContentLoadedEventStart ) ]
#[doc = "Getter for the `domContentLoadedEventStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn dom_content_loaded_event_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domContentLoadedEventEnd ) ]
#[doc = "Getter for the `domContentLoadedEventEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn dom_content_loaded_event_end(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domComplete ) ]
#[doc = "Getter for the `domComplete` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domComplete)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn dom_complete(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = loadEventStart ) ]
#[doc = "Getter for the `loadEventStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/loadEventStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn load_event_start(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = loadEventEnd ) ]
#[doc = "Getter for the `loadEventEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/loadEventEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn load_event_end(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = timeToNonBlankPaint ) ]
#[doc = "Getter for the `timeToNonBlankPaint` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/timeToNonBlankPaint)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn time_to_non_blank_paint(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = timeToDOMContentFlushed ) ]
#[doc = "Getter for the `timeToDOMContentFlushed` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/timeToDOMContentFlushed)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn time_to_dom_content_flushed(this: &PerformanceTiming) -> f64;
# [ wasm_bindgen ( method , structural , js_class = "PerformanceTiming" , js_name = toJSON ) ]
#[doc = "The `toJSON()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/toJSON)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
pub fn to_json(this: &PerformanceTiming) -> ::js_sys::Object;
}