summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_ShadowRoot.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:42 +0000
commit837b550238aa671a591ccf282dddeab29cadb206 (patch)
tree914b6b8862bace72bd3245ca184d374b08d8a672 /vendor/web-sys/src/features/gen_ShadowRoot.rs
parentAdding debian version 1.70.0+dfsg2-1. (diff)
downloadrustc-837b550238aa671a591ccf282dddeab29cadb206.tar.xz
rustc-837b550238aa671a591ccf282dddeab29cadb206.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_ShadowRoot.rs')
-rw-r--r--vendor/web-sys/src/features/gen_ShadowRoot.rs127
1 files changed, 127 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_ShadowRoot.rs b/vendor/web-sys/src/features/gen_ShadowRoot.rs
new file mode 100644
index 000000000..a0186ea2e
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_ShadowRoot.rs
@@ -0,0 +1,127 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = DocumentFragment , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = ShadowRoot , typescript_type = "ShadowRoot")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `ShadowRoot` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"]
+ pub type ShadowRoot;
+ #[cfg(feature = "ShadowRootMode")]
+ # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = mode)]
+ #[doc = "Getter for the `mode` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`, `ShadowRootMode`*"]
+ pub fn mode(this: &ShadowRoot) -> ShadowRootMode;
+ #[cfg(feature = "Element")]
+ # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = host)]
+ #[doc = "Getter for the `host` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
+ pub fn host(this: &ShadowRoot) -> Element;
+ # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = innerHTML)]
+ #[doc = "Getter for the `innerHTML` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"]
+ pub fn inner_html(this: &ShadowRoot) -> String;
+ # [wasm_bindgen (structural , method , setter , js_class = "ShadowRoot" , js_name = innerHTML)]
+ #[doc = "Setter for the `innerHTML` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"]
+ pub fn set_inner_html(this: &ShadowRoot, value: &str);
+ #[cfg(feature = "Element")]
+ # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = activeElement)]
+ #[doc = "Getter for the `activeElement` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/activeElement)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
+ pub fn active_element(this: &ShadowRoot) -> Option<Element>;
+ #[cfg(feature = "StyleSheetList")]
+ # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = styleSheets)]
+ #[doc = "Getter for the `styleSheets` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/styleSheets)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`, `StyleSheetList`*"]
+ pub fn style_sheets(this: &ShadowRoot) -> StyleSheetList;
+ #[cfg(feature = "Element")]
+ # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = pointerLockElement)]
+ #[doc = "Getter for the `pointerLockElement` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/pointerLockElement)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
+ pub fn pointer_lock_element(this: &ShadowRoot) -> Option<Element>;
+ #[cfg(feature = "Element")]
+ # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = fullscreenElement)]
+ #[doc = "Getter for the `fullscreenElement` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/fullscreenElement)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
+ pub fn fullscreen_element(this: &ShadowRoot) -> Option<Element>;
+ #[cfg(feature = "Element")]
+ # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementById)]
+ #[doc = "The `getElementById()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementById)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
+ pub fn get_element_by_id(this: &ShadowRoot, element_id: &str) -> Option<Element>;
+ #[cfg(feature = "HtmlCollection")]
+ # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByClassName)]
+ #[doc = "The `getElementsByClassName()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByClassName)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"]
+ pub fn get_elements_by_class_name(this: &ShadowRoot, class_names: &str) -> HtmlCollection;
+ #[cfg(feature = "HtmlCollection")]
+ # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByTagName)]
+ #[doc = "The `getElementsByTagName()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagName)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"]
+ pub fn get_elements_by_tag_name(this: &ShadowRoot, local_name: &str) -> HtmlCollection;
+ #[cfg(feature = "HtmlCollection")]
+ # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByTagNameNS)]
+ #[doc = "The `getElementsByTagNameNS()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagNameNS)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"]
+ pub fn get_elements_by_tag_name_ns(
+ this: &ShadowRoot,
+ namespace: Option<&str>,
+ local_name: &str,
+ ) -> HtmlCollection;
+ #[cfg(feature = "Element")]
+ # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = elementFromPoint)]
+ #[doc = "The `elementFromPoint()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementFromPoint)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
+ pub fn element_from_point(this: &ShadowRoot, x: f32, y: f32) -> Option<Element>;
+ # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = elementsFromPoint)]
+ #[doc = "The `elementsFromPoint()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementsFromPoint)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"]
+ pub fn elements_from_point(this: &ShadowRoot, x: f32, y: f32) -> ::js_sys::Array;
+}