Skip to content

Commit

Permalink
Take dictionaries into account that are only returned
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Jun 27, 2024
1 parent 586982f commit 51d56ef
Show file tree
Hide file tree
Showing 23 changed files with 200 additions and 144 deletions.
20 changes: 11 additions & 9 deletions crates/web-sys/src/features/gen_ComputedEffectTiming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
#[wasm_bindgen(method, getter = "delay")]
pub fn get_delay(this: &ComputedEffectTiming) -> Option<f64>;
pub fn get_delay(this: &ComputedEffectTiming) -> f64;
#[doc = "Change the `delay` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
Expand All @@ -25,7 +25,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `PlaybackDirection`*"]
#[wasm_bindgen(method, getter = "direction")]
pub fn get_direction(this: &ComputedEffectTiming) -> Option<PlaybackDirection>;
pub fn get_direction(this: &ComputedEffectTiming) -> PlaybackDirection;
#[cfg(feature = "PlaybackDirection")]
#[doc = "Change the `direction` field of this object."]
#[doc = ""]
Expand All @@ -46,7 +46,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
#[wasm_bindgen(method, getter = "easing")]
pub fn get_easing(this: &ComputedEffectTiming) -> Option<String>;
pub fn get_easing(this: &ComputedEffectTiming) -> String;
#[doc = "Change the `easing` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
Expand All @@ -56,7 +56,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
#[wasm_bindgen(method, getter = "endDelay")]
pub fn get_end_delay(this: &ComputedEffectTiming) -> Option<f64>;
pub fn get_end_delay(this: &ComputedEffectTiming) -> f64;
#[doc = "Change the `endDelay` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
Expand All @@ -67,7 +67,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `FillMode`*"]
#[wasm_bindgen(method, getter = "fill")]
pub fn get_fill(this: &ComputedEffectTiming) -> Option<FillMode>;
pub fn get_fill(this: &ComputedEffectTiming) -> FillMode;
#[cfg(feature = "FillMode")]
#[doc = "Change the `fill` field of this object."]
#[doc = ""]
Expand All @@ -78,7 +78,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
#[wasm_bindgen(method, getter = "iterationStart")]
pub fn get_iteration_start(this: &ComputedEffectTiming) -> Option<f64>;
pub fn get_iteration_start(this: &ComputedEffectTiming) -> f64;
#[doc = "Change the `iterationStart` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
Expand All @@ -88,7 +88,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
#[wasm_bindgen(method, getter = "iterations")]
pub fn get_iterations(this: &ComputedEffectTiming) -> Option<f64>;
pub fn get_iterations(this: &ComputedEffectTiming) -> f64;
#[doc = "Change the `iterations` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
Expand All @@ -98,7 +98,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
#[wasm_bindgen(method, getter = "activeDuration")]
pub fn get_active_duration(this: &ComputedEffectTiming) -> Option<f64>;
pub fn get_active_duration(this: &ComputedEffectTiming) -> f64;
#[doc = "Change the `activeDuration` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
Expand All @@ -118,7 +118,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
#[wasm_bindgen(method, getter = "endTime")]
pub fn get_end_time(this: &ComputedEffectTiming) -> Option<f64>;
pub fn get_end_time(this: &ComputedEffectTiming) -> f64;
#[doc = "Change the `endTime` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
Expand Down Expand Up @@ -149,6 +149,7 @@ impl ComputedEffectTiming {
#[doc = "Construct a new `ComputedEffectTiming`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
#[deprecated]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
Expand Down Expand Up @@ -222,6 +223,7 @@ impl ComputedEffectTiming {
self
}
}
#[deprecated]
impl Default for ComputedEffectTiming {
fn default() -> Self {
Self::new()
Expand Down
10 changes: 6 additions & 4 deletions crates/web-sys/src/features/gen_DomQuadJson.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"]
#[wasm_bindgen(method, getter = "p1")]
pub fn get_p1(this: &DomQuadJson) -> Option<DomPoint>;
pub fn get_p1(this: &DomQuadJson) -> DomPoint;
#[cfg(feature = "DomPoint")]
#[doc = "Change the `p1` field of this object."]
#[doc = ""]
Expand All @@ -27,7 +27,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"]
#[wasm_bindgen(method, getter = "p2")]
pub fn get_p2(this: &DomQuadJson) -> Option<DomPoint>;
pub fn get_p2(this: &DomQuadJson) -> DomPoint;
#[cfg(feature = "DomPoint")]
#[doc = "Change the `p2` field of this object."]
#[doc = ""]
Expand All @@ -39,7 +39,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"]
#[wasm_bindgen(method, getter = "p3")]
pub fn get_p3(this: &DomQuadJson) -> Option<DomPoint>;
pub fn get_p3(this: &DomQuadJson) -> DomPoint;
#[cfg(feature = "DomPoint")]
#[doc = "Change the `p3` field of this object."]
#[doc = ""]
Expand All @@ -51,7 +51,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"]
#[wasm_bindgen(method, getter = "p4")]
pub fn get_p4(this: &DomQuadJson) -> Option<DomPoint>;
pub fn get_p4(this: &DomQuadJson) -> DomPoint;
#[cfg(feature = "DomPoint")]
#[doc = "Change the `p4` field of this object."]
#[doc = ""]
Expand All @@ -63,6 +63,7 @@ impl DomQuadJson {
#[doc = "Construct a new `DomQuadJson`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `DomQuadJson`*"]
#[deprecated]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
Expand Down Expand Up @@ -93,6 +94,7 @@ impl DomQuadJson {
self
}
}
#[deprecated]
impl Default for DomQuadJson {
fn default() -> Self {
Self::new()
Expand Down
16 changes: 9 additions & 7 deletions crates/web-sys/src/features/gen_EffectTiming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
#[wasm_bindgen(method, getter = "delay")]
pub fn get_delay(this: &EffectTiming) -> Option<f64>;
pub fn get_delay(this: &EffectTiming) -> f64;
#[doc = "Change the `delay` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
Expand All @@ -25,7 +25,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`, `PlaybackDirection`*"]
#[wasm_bindgen(method, getter = "direction")]
pub fn get_direction(this: &EffectTiming) -> Option<PlaybackDirection>;
pub fn get_direction(this: &EffectTiming) -> PlaybackDirection;
#[cfg(feature = "PlaybackDirection")]
#[doc = "Change the `direction` field of this object."]
#[doc = ""]
Expand All @@ -46,7 +46,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
#[wasm_bindgen(method, getter = "easing")]
pub fn get_easing(this: &EffectTiming) -> Option<String>;
pub fn get_easing(this: &EffectTiming) -> String;
#[doc = "Change the `easing` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
Expand All @@ -56,7 +56,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
#[wasm_bindgen(method, getter = "endDelay")]
pub fn get_end_delay(this: &EffectTiming) -> Option<f64>;
pub fn get_end_delay(this: &EffectTiming) -> f64;
#[doc = "Change the `endDelay` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
Expand All @@ -67,7 +67,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`, `FillMode`*"]
#[wasm_bindgen(method, getter = "fill")]
pub fn get_fill(this: &EffectTiming) -> Option<FillMode>;
pub fn get_fill(this: &EffectTiming) -> FillMode;
#[cfg(feature = "FillMode")]
#[doc = "Change the `fill` field of this object."]
#[doc = ""]
Expand All @@ -78,7 +78,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
#[wasm_bindgen(method, getter = "iterationStart")]
pub fn get_iteration_start(this: &EffectTiming) -> Option<f64>;
pub fn get_iteration_start(this: &EffectTiming) -> f64;
#[doc = "Change the `iterationStart` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
Expand All @@ -88,7 +88,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
#[wasm_bindgen(method, getter = "iterations")]
pub fn get_iterations(this: &EffectTiming) -> Option<f64>;
pub fn get_iterations(this: &EffectTiming) -> f64;
#[doc = "Change the `iterations` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
Expand All @@ -99,6 +99,7 @@ impl EffectTiming {
#[doc = "Construct a new `EffectTiming`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
#[deprecated]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
Expand Down Expand Up @@ -147,6 +148,7 @@ impl EffectTiming {
self
}
}
#[deprecated]
impl Default for EffectTiming {
fn default() -> Self {
Self::new()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ impl FontFaceSetIteratorResult {
#[doc = "Construct a new `FontFaceSetIteratorResult`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"]
#[deprecated]
pub fn new(done: bool, value: &::wasm_bindgen::JsValue) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
Expand Down
19 changes: 9 additions & 10 deletions crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
#[wasm_bindgen(method, getter = "audioCapabilities")]
pub fn get_audio_capabilities(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>;
pub fn get_audio_capabilities(this: &MediaKeySystemConfiguration) -> ::js_sys::Array;
#[doc = "Change the `audioCapabilities` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
Expand All @@ -28,9 +28,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`, `MediaKeysRequirement`*"]
#[wasm_bindgen(method, getter = "distinctiveIdentifier")]
pub fn get_distinctive_identifier(
this: &MediaKeySystemConfiguration,
) -> Option<MediaKeysRequirement>;
pub fn get_distinctive_identifier(this: &MediaKeySystemConfiguration) -> MediaKeysRequirement;
#[cfg(feature = "MediaKeysRequirement")]
#[doc = "Change the `distinctiveIdentifier` field of this object."]
#[doc = ""]
Expand All @@ -44,7 +42,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
#[wasm_bindgen(method, getter = "initDataTypes")]
pub fn get_init_data_types(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>;
pub fn get_init_data_types(this: &MediaKeySystemConfiguration) -> ::js_sys::Array;
#[doc = "Change the `initDataTypes` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
Expand All @@ -54,7 +52,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
#[wasm_bindgen(method, getter = "label")]
pub fn get_label(this: &MediaKeySystemConfiguration) -> Option<String>;
pub fn get_label(this: &MediaKeySystemConfiguration) -> String;
#[doc = "Change the `label` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
Expand All @@ -65,8 +63,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`, `MediaKeysRequirement`*"]
#[wasm_bindgen(method, getter = "persistentState")]
pub fn get_persistent_state(this: &MediaKeySystemConfiguration)
-> Option<MediaKeysRequirement>;
pub fn get_persistent_state(this: &MediaKeySystemConfiguration) -> MediaKeysRequirement;
#[cfg(feature = "MediaKeysRequirement")]
#[doc = "Change the `persistentState` field of this object."]
#[doc = ""]
Expand All @@ -77,7 +74,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
#[wasm_bindgen(method, getter = "sessionTypes")]
pub fn get_session_types(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>;
pub fn get_session_types(this: &MediaKeySystemConfiguration) -> ::js_sys::Array;
#[doc = "Change the `sessionTypes` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
Expand All @@ -87,7 +84,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
#[wasm_bindgen(method, getter = "videoCapabilities")]
pub fn get_video_capabilities(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>;
pub fn get_video_capabilities(this: &MediaKeySystemConfiguration) -> ::js_sys::Array;
#[doc = "Change the `videoCapabilities` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
Expand All @@ -101,6 +98,7 @@ impl MediaKeySystemConfiguration {
#[doc = "Construct a new `MediaKeySystemConfiguration`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
#[deprecated]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
Expand Down Expand Up @@ -144,6 +142,7 @@ impl MediaKeySystemConfiguration {
self
}
}
#[deprecated]
impl Default for MediaKeySystemConfiguration {
fn default() -> Self {
Self::new()
Expand Down
Loading

0 comments on commit 51d56ef

Please sign in to comment.