diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_DataTransfer.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-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_DataTransfer.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_DataTransfer.rs | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_DataTransfer.rs b/vendor/web-sys/src/features/gen_DataTransfer.rs new file mode 100644 index 000000000..9b6b79428 --- /dev/null +++ b/vendor/web-sys/src/features/gen_DataTransfer.rs @@ -0,0 +1,132 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DataTransfer , typescript_type = "DataTransfer")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DataTransfer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub type DataTransfer; + # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = dropEffect)] + #[doc = "Getter for the `dropEffect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn drop_effect(this: &DataTransfer) -> String; + # [wasm_bindgen (structural , method , setter , js_class = "DataTransfer" , js_name = dropEffect)] + #[doc = "Setter for the `dropEffect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn set_drop_effect(this: &DataTransfer, value: &str); + # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = effectAllowed)] + #[doc = "Getter for the `effectAllowed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn effect_allowed(this: &DataTransfer) -> String; + # [wasm_bindgen (structural , method , setter , js_class = "DataTransfer" , js_name = effectAllowed)] + #[doc = "Setter for the `effectAllowed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn set_effect_allowed(this: &DataTransfer, value: &str); + #[cfg(feature = "DataTransferItemList")] + # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = items)] + #[doc = "Getter for the `items` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DataTransferItemList`*"] + pub fn items(this: &DataTransfer) -> DataTransferItemList; + # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = types)] + #[doc = "Getter for the `types` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn types(this: &DataTransfer) -> ::js_sys::Array; + #[cfg(feature = "FileList")] + # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = files)] + #[doc = "Getter for the `files` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/files)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `FileList`*"] + pub fn files(this: &DataTransfer) -> Option<FileList>; + #[wasm_bindgen(catch, constructor, js_class = "DataTransfer")] + #[doc = "The `new DataTransfer(..)` constructor, creating a new instance of `DataTransfer`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/DataTransfer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn new() -> Result<DataTransfer, JsValue>; + # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = clearData)] + #[doc = "The `clearData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn clear_data(this: &DataTransfer) -> Result<(), JsValue>; + # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = clearData)] + #[doc = "The `clearData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn clear_data_with_format(this: &DataTransfer, format: &str) -> Result<(), JsValue>; + # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getData)] + #[doc = "The `getData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn get_data(this: &DataTransfer, format: &str) -> Result<String, JsValue>; + # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getFiles)] + #[doc = "The `getFiles()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFiles)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn get_files(this: &DataTransfer) -> Result<::js_sys::Promise, JsValue>; + # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getFiles)] + #[doc = "The `getFiles()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFiles)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn get_files_with_recursive_flag( + this: &DataTransfer, + recursive_flag: bool, + ) -> Result<::js_sys::Promise, JsValue>; + # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getFilesAndDirectories)] + #[doc = "The `getFilesAndDirectories()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFilesAndDirectories)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn get_files_and_directories(this: &DataTransfer) -> Result<::js_sys::Promise, JsValue>; + # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = setData)] + #[doc = "The `setData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn set_data(this: &DataTransfer, format: &str, data: &str) -> Result<(), JsValue>; + #[cfg(feature = "Element")] + # [wasm_bindgen (method , structural , js_class = "DataTransfer" , js_name = setDragImage)] + #[doc = "The `setDragImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setDragImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `Element`*"] + pub fn set_drag_image(this: &DataTransfer, image: &Element, x: i32, y: i32); +} |