summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_OffscreenCanvas.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/web-sys/src/features/gen_OffscreenCanvas.rs
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_OffscreenCanvas.rs')
-rw-r--r--vendor/web-sys/src/features/gen_OffscreenCanvas.rs47
1 files changed, 19 insertions, 28 deletions
diff --git a/vendor/web-sys/src/features/gen_OffscreenCanvas.rs b/vendor/web-sys/src/features/gen_OffscreenCanvas.rs
index bcf859921..e925b0e12 100644
--- a/vendor/web-sys/src/features/gen_OffscreenCanvas.rs
+++ b/vendor/web-sys/src/features/gen_OffscreenCanvas.rs
@@ -1,4 +1,5 @@
#![allow(unused_imports)]
+#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
@@ -46,6 +47,24 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"]
pub fn new(width: u32, height: u32) -> Result<OffscreenCanvas, JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = convertToBlob)]
+ #[doc = "The `convertToBlob()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/convertToBlob)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"]
+ pub fn convert_to_blob(this: &OffscreenCanvas) -> Result<::js_sys::Promise, JsValue>;
+ #[cfg(feature = "ImageEncodeOptions")]
+ # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = convertToBlob)]
+ #[doc = "The `convertToBlob()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/convertToBlob)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ImageEncodeOptions`, `OffscreenCanvas`*"]
+ pub fn convert_to_blob_with_options(
+ this: &OffscreenCanvas,
+ options: &ImageEncodeOptions,
+ ) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = getContext)]
#[doc = "The `getContext()` method."]
#[doc = ""]
@@ -67,34 +86,6 @@ extern "C" {
context_id: &str,
context_options: &::wasm_bindgen::JsValue,
) -> Result<Option<::js_sys::Object>, JsValue>;
- # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob)]
- #[doc = "The `toBlob()` method."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"]
- pub fn to_blob(this: &OffscreenCanvas) -> Result<::js_sys::Promise, JsValue>;
- # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob)]
- #[doc = "The `toBlob()` method."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"]
- pub fn to_blob_with_type(
- this: &OffscreenCanvas,
- type_: &str,
- ) -> Result<::js_sys::Promise, JsValue>;
- # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob)]
- #[doc = "The `toBlob()` method."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"]
- pub fn to_blob_with_type_and_encoder_options(
- this: &OffscreenCanvas,
- type_: &str,
- encoder_options: &::wasm_bindgen::JsValue,
- ) -> Result<::js_sys::Promise, JsValue>;
#[cfg(feature = "ImageBitmap")]
# [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = transferToImageBitmap)]
#[doc = "The `transferToImageBitmap()` method."]