diff options
Diffstat (limited to 'vendor/web-sys/src/features/gen_Notification.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_Notification.rs | 71 |
1 files changed, 56 insertions, 15 deletions
diff --git a/vendor/web-sys/src/features/gen_Notification.rs b/vendor/web-sys/src/features/gen_Notification.rs index 857ad0089..b0eaed5e8 100644 --- a/vendor/web-sys/src/features/gen_Notification.rs +++ b/vendor/web-sys/src/features/gen_Notification.rs @@ -20,6 +20,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationPermission`*"] pub fn permission() -> NotificationPermission; + # [wasm_bindgen (structural , static_method_of = Notification , getter , js_class = "Notification" , js_name = maxActions)] + #[doc = "Getter for the `maxActions` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/maxActions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn max_actions() -> u32; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = onclick)] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] @@ -112,6 +119,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn tag(this: &Notification) -> Option<String>; + # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = image)] + #[doc = "Getter for the `image` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/image)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn image(this: &Notification) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = icon)] #[doc = "Getter for the `icon` field of this object."] #[doc = ""] @@ -119,6 +133,41 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn icon(this: &Notification) -> Option<String>; + # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = badge)] + #[doc = "Getter for the `badge` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/badge)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn badge(this: &Notification) -> String; + # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = vibrate)] + #[doc = "Getter for the `vibrate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/vibrate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn vibrate(this: &Notification) -> ::js_sys::Array; + # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = timestamp)] + #[doc = "Getter for the `timestamp` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/timestamp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn timestamp(this: &Notification) -> f64; + # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = renotify)] + #[doc = "Getter for the `renotify` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/renotify)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn renotify(this: &Notification) -> bool; + # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = silent)] + #[doc = "Getter for the `silent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/silent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn silent(this: &Notification) -> Option<bool>; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = requireInteraction)] #[doc = "Getter for the `requireInteraction` field of this object."] #[doc = ""] @@ -133,6 +182,13 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn data(this: &Notification) -> ::wasm_bindgen::JsValue; + # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = actions)] + #[doc = "Getter for the `actions` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/actions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn actions(this: &Notification) -> ::js_sys::Array; #[wasm_bindgen(catch, constructor, js_class = "Notification")] #[doc = "The `new Notification(..)` constructor, creating a new instance of `Notification`."] #[doc = ""] @@ -158,21 +214,6 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn close(this: &Notification); - # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = get)] - #[doc = "The `get()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/get)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `Notification`*"] - pub fn get() -> Result<::js_sys::Promise, JsValue>; - #[cfg(feature = "GetNotificationOptions")] - # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = get)] - #[doc = "The `get()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/get)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`, `Notification`*"] - pub fn get_with_filter(filter: &GetNotificationOptions) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = requestPermission)] #[doc = "The `requestPermission()` method."] #[doc = ""] |