1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = StorageEvent , typescript_type = "StorageEvent")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `StorageEvent` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 13 pub type StorageEvent; 14 # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = key)] 15 #[doc = "Getter for the `key` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/key)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 20 pub fn key(this: &StorageEvent) -> Option<String>; 21 # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = oldValue)] 22 #[doc = "Getter for the `oldValue` field of this object."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/oldValue)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 27 pub fn old_value(this: &StorageEvent) -> Option<String>; 28 # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = newValue)] 29 #[doc = "Getter for the `newValue` field of this object."] 30 #[doc = ""] 31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/newValue)"] 32 #[doc = ""] 33 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 34 pub fn new_value(this: &StorageEvent) -> Option<String>; 35 # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = url)] 36 #[doc = "Getter for the `url` field of this object."] 37 #[doc = ""] 38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/url)"] 39 #[doc = ""] 40 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 41 pub fn url(this: &StorageEvent) -> Option<String>; 42 #[cfg(feature = "Storage")] 43 # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = storageArea)] 44 #[doc = "Getter for the `storageArea` field of this object."] 45 #[doc = ""] 46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/storageArea)"] 47 #[doc = ""] 48 #[doc = "*This API requires the following crate features to be activated: `Storage`, `StorageEvent`*"] 49 pub fn storage_area(this: &StorageEvent) -> Option<Storage>; 50 #[wasm_bindgen(catch, constructor, js_class = "StorageEvent")] rdn_name_add_callback(struct ldb_request * req,struct ldb_reply * ares)51 #[doc = "The `new StorageEvent(..)` constructor, creating a new instance of `StorageEvent`."] 52 #[doc = ""] 53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/StorageEvent)"] 54 #[doc = ""] 55 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 56 pub fn new(type_: &str) -> Result<StorageEvent, JsValue>; 57 #[cfg(feature = "StorageEventInit")] 58 #[wasm_bindgen(catch, constructor, js_class = "StorageEvent")] 59 #[doc = "The `new StorageEvent(..)` constructor, creating a new instance of `StorageEvent`."] 60 #[doc = ""] 61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/StorageEvent)"] 62 #[doc = ""] 63 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`, `StorageEventInit`*"] 64 pub fn new_with_event_init_dict( 65 type_: &str, 66 event_init_dict: &StorageEventInit, 67 ) -> Result<StorageEvent, JsValue>; 68 # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] 69 #[doc = "The `initStorageEvent()` method."] 70 #[doc = ""] 71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] 72 #[doc = ""] 73 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 74 pub fn init_storage_event(this: &StorageEvent, type_: &str); 75 # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] 76 #[doc = "The `initStorageEvent()` method."] 77 #[doc = ""] 78 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] 79 #[doc = ""] 80 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] rdn_name_add(struct ldb_module * module,struct ldb_request * req)81 pub fn init_storage_event_with_can_bubble(this: &StorageEvent, type_: &str, can_bubble: bool); 82 # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] 83 #[doc = "The `initStorageEvent()` method."] 84 #[doc = ""] 85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] 86 #[doc = ""] 87 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 88 pub fn init_storage_event_with_can_bubble_and_cancelable( 89 this: &StorageEvent, 90 type_: &str, 91 can_bubble: bool, 92 cancelable: bool, 93 ); 94 # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] 95 #[doc = "The `initStorageEvent()` method."] 96 #[doc = ""] 97 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] 98 #[doc = ""] 99 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 100 pub fn init_storage_event_with_can_bubble_and_cancelable_and_key( 101 this: &StorageEvent, 102 type_: &str, 103 can_bubble: bool, 104 cancelable: bool, 105 key: Option<&str>, 106 ); 107 # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] 108 #[doc = "The `initStorageEvent()` method."] 109 #[doc = ""] 110 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] 111 #[doc = ""] 112 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 113 pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value( 114 this: &StorageEvent, 115 type_: &str, 116 can_bubble: bool, 117 cancelable: bool, 118 key: Option<&str>, 119 old_value: Option<&str>, 120 ); 121 # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] 122 #[doc = "The `initStorageEvent()` method."] 123 #[doc = ""] 124 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] 125 #[doc = ""] 126 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 127 pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value( 128 this: &StorageEvent, 129 type_: &str, 130 can_bubble: bool, 131 cancelable: bool, 132 key: Option<&str>, 133 old_value: Option<&str>, 134 new_value: Option<&str>, 135 ); 136 # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] 137 #[doc = "The `initStorageEvent()` method."] 138 #[doc = ""] 139 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] 140 #[doc = ""] 141 #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] 142 pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value_and_url( 143 this: &StorageEvent, 144 type_: &str, 145 can_bubble: bool, 146 cancelable: bool, 147 key: Option<&str>, 148 old_value: Option<&str>, 149 new_value: Option<&str>, 150 url: Option<&str>, 151 ); 152 #[cfg(feature = "Storage")] 153 # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] 154 #[doc = "The `initStorageEvent()` method."] 155 #[doc = ""] 156 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] 157 #[doc = ""] 158 #[doc = "*This API requires the following crate features to be activated: `Storage`, `StorageEvent`*"] 159 pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value_and_url_and_storage_area( 160 this: &StorageEvent, 161 type_: &str, 162 can_bubble: bool, 163 cancelable: bool, 164 key: Option<&str>, 165 old_value: Option<&str>, 166 new_value: Option<&str>, 167 url: Option<&str>, 168 storage_area: Option<&Storage>, 169 ); 170 } 171