summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_Performance.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_Performance.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_Performance.rs')
-rw-r--r--vendor/web-sys/src/features/gen_Performance.rs176
1 files changed, 176 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_Performance.rs b/vendor/web-sys/src/features/gen_Performance.rs
new file mode 100644
index 000000000..0e4212900
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_Performance.rs
@@ -0,0 +1,176 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Performance , typescript_type = "Performance")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `Performance` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub type Performance;
+ # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = timeOrigin)]
+ #[doc = "Getter for the `timeOrigin` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn time_origin(this: &Performance) -> f64;
+ #[cfg(feature = "PerformanceTiming")]
+ # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = timing)]
+ #[doc = "Getter for the `timing` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timing)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`, `PerformanceTiming`*"]
+ pub fn timing(this: &Performance) -> PerformanceTiming;
+ #[cfg(feature = "PerformanceNavigation")]
+ # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = navigation)]
+ #[doc = "Getter for the `navigation` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/navigation)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`, `PerformanceNavigation`*"]
+ pub fn navigation(this: &Performance) -> PerformanceNavigation;
+ # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = onresourcetimingbufferfull)]
+ #[doc = "Getter for the `onresourcetimingbufferfull` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn onresourcetimingbufferfull(this: &Performance) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "Performance" , js_name = onresourcetimingbufferfull)]
+ #[doc = "Setter for the `onresourcetimingbufferfull` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn set_onresourcetimingbufferfull(this: &Performance, value: Option<&::js_sys::Function>);
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMarks)]
+ #[doc = "The `clearMarks()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn clear_marks(this: &Performance);
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMarks)]
+ #[doc = "The `clearMarks()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn clear_marks_with_mark_name(this: &Performance, mark_name: &str);
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMeasures)]
+ #[doc = "The `clearMeasures()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn clear_measures(this: &Performance);
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMeasures)]
+ #[doc = "The `clearMeasures()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn clear_measures_with_measure_name(this: &Performance, measure_name: &str);
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearResourceTimings)]
+ #[doc = "The `clearResourceTimings()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearResourceTimings)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn clear_resource_timings(this: &Performance);
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntries)]
+ #[doc = "The `getEntries()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntries)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn get_entries(this: &Performance) -> ::js_sys::Array;
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntriesByName)]
+ #[doc = "The `getEntriesByName()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByName)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn get_entries_by_name(this: &Performance, name: &str) -> ::js_sys::Array;
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntriesByName)]
+ #[doc = "The `getEntriesByName()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByName)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn get_entries_by_name_with_entry_type(
+ this: &Performance,
+ name: &str,
+ entry_type: &str,
+ ) -> ::js_sys::Array;
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntriesByType)]
+ #[doc = "The `getEntriesByType()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByType)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn get_entries_by_type(this: &Performance, entry_type: &str) -> ::js_sys::Array;
+ # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = mark)]
+ #[doc = "The `mark()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn mark(this: &Performance, mark_name: &str) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = measure)]
+ #[doc = "The `measure()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn measure(this: &Performance, measure_name: &str) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = measure)]
+ #[doc = "The `measure()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn measure_with_start_mark(
+ this: &Performance,
+ measure_name: &str,
+ start_mark: &str,
+ ) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = measure)]
+ #[doc = "The `measure()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn measure_with_start_mark_and_end_mark(
+ this: &Performance,
+ measure_name: &str,
+ start_mark: &str,
+ end_mark: &str,
+ ) -> Result<(), JsValue>;
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = now)]
+ #[doc = "The `now()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn now(this: &Performance) -> f64;
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = setResourceTimingBufferSize)]
+ #[doc = "The `setResourceTimingBufferSize()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/setResourceTimingBufferSize)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn set_resource_timing_buffer_size(this: &Performance, max_size: u32);
+ # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = toJSON)]
+ #[doc = "The `toJSON()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`*"]
+ pub fn to_json(this: &Performance) -> ::js_sys::Object;
+}