From 7a53d2113c9dacf305c8d50732c386ced1e15184 Mon Sep 17 00:00:00 2001 From: Olzhas Suleimen Date: Fri, 21 Feb 2025 20:40:53 +0500 Subject: [PATCH 1/3] Add variadic arguments. --- web/CHANGELOG.md | 5 +- web/lib/src/dom.dart | 2 +- web/lib/src/dom/accelerometer.dart | 2 +- web/lib/src/dom/angle_instanced_arrays.dart | 2 +- .../src/dom/attribution_reporting_api.dart | 2 +- web/lib/src/dom/background_sync.dart | 2 +- web/lib/src/dom/battery_status.dart | 2 +- web/lib/src/dom/clipboard_apis.dart | 2 +- web/lib/src/dom/compression.dart | 2 +- web/lib/src/dom/console.dart | 79 +++++++-- web/lib/src/dom/cookie_store.dart | 2 +- web/lib/src/dom/credential_management.dart | 2 +- web/lib/src/dom/csp.dart | 2 +- web/lib/src/dom/css_animations.dart | 2 +- web/lib/src/dom/css_animations_2.dart | 2 +- web/lib/src/dom/css_cascade.dart | 2 +- web/lib/src/dom/css_cascade_6.dart | 2 +- web/lib/src/dom/css_conditional.dart | 2 +- web/lib/src/dom/css_conditional_5.dart | 2 +- web/lib/src/dom/css_contain.dart | 2 +- web/lib/src/dom/css_counter_styles.dart | 2 +- web/lib/src/dom/css_font_loading.dart | 2 +- web/lib/src/dom/css_fonts.dart | 2 +- web/lib/src/dom/css_highlight_api.dart | 9 +- web/lib/src/dom/css_masking.dart | 2 +- web/lib/src/dom/css_paint_api.dart | 2 +- .../src/dom/css_properties_values_api.dart | 2 +- web/lib/src/dom/css_transitions.dart | 2 +- web/lib/src/dom/css_transitions_2.dart | 2 +- web/lib/src/dom/css_typed_om.dart | 76 +++++++-- web/lib/src/dom/css_view_transitions.dart | 2 +- web/lib/src/dom/css_view_transitions_2.dart | 2 +- web/lib/src/dom/cssom.dart | 2 +- web/lib/src/dom/cssom_view.dart | 2 +- web/lib/src/dom/digital_identities.dart | 2 +- web/lib/src/dom/dom.dart | 156 +++++++++++++++--- web/lib/src/dom/dom_parsing.dart | 2 +- web/lib/src/dom/encoding.dart | 2 +- web/lib/src/dom/encrypted_media.dart | 2 +- web/lib/src/dom/entries_api.dart | 2 +- web/lib/src/dom/event_timing.dart | 2 +- web/lib/src/dom/ext_blend_minmax.dart | 2 +- web/lib/src/dom/ext_color_buffer_float.dart | 2 +- .../src/dom/ext_color_buffer_half_float.dart | 2 +- web/lib/src/dom/ext_disjoint_timer_query.dart | 2 +- .../dom/ext_disjoint_timer_query_webgl2.dart | 2 +- web/lib/src/dom/ext_float_blend.dart | 2 +- web/lib/src/dom/ext_frag_depth.dart | 2 +- web/lib/src/dom/ext_shader_texture_lod.dart | 2 +- web/lib/src/dom/ext_srgb.dart | 2 +- .../src/dom/ext_texture_compression_bptc.dart | 2 +- .../src/dom/ext_texture_compression_rgtc.dart | 2 +- .../dom/ext_texture_filter_anisotropic.dart | 2 +- web/lib/src/dom/ext_texture_norm16.dart | 2 +- web/lib/src/dom/fedcm.dart | 2 +- web/lib/src/dom/fetch.dart | 2 +- web/lib/src/dom/fido.dart | 2 +- web/lib/src/dom/fileapi.dart | 2 +- web/lib/src/dom/filter_effects.dart | 2 +- web/lib/src/dom/fs.dart | 2 +- web/lib/src/dom/fullscreen.dart | 2 +- web/lib/src/dom/gamepad.dart | 2 +- web/lib/src/dom/generic_sensor.dart | 2 +- web/lib/src/dom/geolocation.dart | 2 +- web/lib/src/dom/geometry.dart | 2 +- web/lib/src/dom/gyroscope.dart | 2 +- web/lib/src/dom/hr_time.dart | 2 +- web/lib/src/dom/html.dart | 44 +++-- web/lib/src/dom/image_capture.dart | 2 +- web/lib/src/dom/indexeddb.dart | 2 +- web/lib/src/dom/intersection_observer.dart | 2 +- .../src/dom/khr_parallel_shader_compile.dart | 2 +- web/lib/src/dom/largest_contentful_paint.dart | 2 +- web/lib/src/dom/mathml_core.dart | 2 +- web/lib/src/dom/media_capabilities.dart | 2 +- web/lib/src/dom/media_playback_quality.dart | 2 +- web/lib/src/dom/media_source.dart | 2 +- web/lib/src/dom/mediacapture_fromelement.dart | 2 +- web/lib/src/dom/mediacapture_streams.dart | 2 +- web/lib/src/dom/mediacapture_transform.dart | 2 +- web/lib/src/dom/mediasession.dart | 2 +- web/lib/src/dom/mediastream_recording.dart | 2 +- web/lib/src/dom/mst_content_hint.dart | 2 +- web/lib/src/dom/navigation_timing.dart | 2 +- web/lib/src/dom/netinfo.dart | 2 +- web/lib/src/dom/notifications.dart | 2 +- web/lib/src/dom/oes_draw_buffers_indexed.dart | 2 +- web/lib/src/dom/oes_element_index_uint.dart | 2 +- web/lib/src/dom/oes_fbo_render_mipmap.dart | 2 +- web/lib/src/dom/oes_standard_derivatives.dart | 2 +- web/lib/src/dom/oes_texture_float.dart | 2 +- web/lib/src/dom/oes_texture_float_linear.dart | 2 +- web/lib/src/dom/oes_texture_half_float.dart | 2 +- .../dom/oes_texture_half_float_linear.dart | 2 +- web/lib/src/dom/oes_vertex_array_object.dart | 2 +- web/lib/src/dom/orientation_event.dart | 2 +- web/lib/src/dom/orientation_sensor.dart | 2 +- web/lib/src/dom/ovr_multiview2.dart | 2 +- web/lib/src/dom/paint_timing.dart | 2 +- web/lib/src/dom/payment_request.dart | 2 +- web/lib/src/dom/performance_timeline.dart | 2 +- web/lib/src/dom/permissions.dart | 2 +- web/lib/src/dom/picture_in_picture.dart | 2 +- web/lib/src/dom/pointerevents.dart | 2 +- web/lib/src/dom/pointerlock.dart | 2 +- web/lib/src/dom/private_network_access.dart | 2 +- web/lib/src/dom/push_api.dart | 2 +- web/lib/src/dom/referrer_policy.dart | 2 +- web/lib/src/dom/remote_playback.dart | 2 +- web/lib/src/dom/reporting.dart | 2 +- web/lib/src/dom/requestidlecallback.dart | 2 +- web/lib/src/dom/resize_observer.dart | 2 +- web/lib/src/dom/resource_timing.dart | 2 +- web/lib/src/dom/saa_non_cookie_storage.dart | 2 +- web/lib/src/dom/sanitizer_api.dart | 2 +- web/lib/src/dom/scheduling_apis.dart | 2 +- web/lib/src/dom/screen_capture.dart | 2 +- web/lib/src/dom/screen_orientation.dart | 2 +- web/lib/src/dom/screen_wake_lock.dart | 2 +- .../src/dom/secure_payment_confirmation.dart | 2 +- web/lib/src/dom/selection_api.dart | 2 +- web/lib/src/dom/server_timing.dart | 2 +- web/lib/src/dom/service_workers.dart | 2 +- web/lib/src/dom/speech_api.dart | 2 +- web/lib/src/dom/storage.dart | 2 +- web/lib/src/dom/streams.dart | 2 +- web/lib/src/dom/svg.dart | 2 +- web/lib/src/dom/svg_animations.dart | 2 +- web/lib/src/dom/touch_events.dart | 2 +- web/lib/src/dom/trust_token_api.dart | 2 +- web/lib/src/dom/trusted_types.dart | 29 ++-- web/lib/src/dom/uievents.dart | 2 +- web/lib/src/dom/url.dart | 2 +- web/lib/src/dom/user_timing.dart | 2 +- web/lib/src/dom/vibration.dart | 2 +- web/lib/src/dom/video_rvfc.dart | 2 +- web/lib/src/dom/wasm_js_api.dart | 2 +- web/lib/src/dom/web_animations.dart | 2 +- web/lib/src/dom/web_animations_2.dart | 2 +- web/lib/src/dom/web_bluetooth.dart | 2 +- web/lib/src/dom/web_locks.dart | 2 +- web/lib/src/dom/web_otp.dart | 2 +- web/lib/src/dom/web_share.dart | 2 +- web/lib/src/dom/webaudio.dart | 2 +- web/lib/src/dom/webauthn.dart | 2 +- web/lib/src/dom/webcodecs.dart | 2 +- .../dom/webcodecs_av1_codec_registration.dart | 2 +- .../dom/webcodecs_avc_codec_registration.dart | 2 +- .../webcodecs_hevc_codec_registration.dart | 2 +- .../dom/webcodecs_vp9_codec_registration.dart | 2 +- web/lib/src/dom/webcryptoapi.dart | 2 +- web/lib/src/dom/webgl1.dart | 2 +- web/lib/src/dom/webgl2.dart | 2 +- web/lib/src/dom/webgl_color_buffer_float.dart | 2 +- .../dom/webgl_compressed_texture_astc.dart | 2 +- .../src/dom/webgl_compressed_texture_etc.dart | 2 +- .../dom/webgl_compressed_texture_etc1.dart | 2 +- .../dom/webgl_compressed_texture_pvrtc.dart | 2 +- .../dom/webgl_compressed_texture_s3tc.dart | 2 +- .../webgl_compressed_texture_s3tc_srgb.dart | 2 +- .../src/dom/webgl_debug_renderer_info.dart | 2 +- web/lib/src/dom/webgl_debug_shaders.dart | 2 +- web/lib/src/dom/webgl_depth_texture.dart | 2 +- web/lib/src/dom/webgl_draw_buffers.dart | 2 +- web/lib/src/dom/webgl_lose_context.dart | 2 +- web/lib/src/dom/webgl_multi_draw.dart | 2 +- web/lib/src/dom/webgpu.dart | 2 +- web/lib/src/dom/webidl.dart | 2 +- web/lib/src/dom/webmidi.dart | 2 +- web/lib/src/dom/webrtc.dart | 18 +- web/lib/src/dom/webrtc_encoded_transform.dart | 2 +- web/lib/src/dom/webrtc_identity.dart | 2 +- web/lib/src/dom/webrtc_priority.dart | 2 +- web/lib/src/dom/websockets.dart | 2 +- web/lib/src/dom/webtransport.dart | 2 +- web/lib/src/dom/webvtt.dart | 2 +- web/lib/src/dom/webxr.dart | 2 +- web/lib/src/dom/webxr_hand_input.dart | 2 +- web/lib/src/dom/xhr.dart | 2 +- web_generator/lib/src/banned_names.dart | 5 +- web_generator/lib/src/translator.dart | 31 +++- 181 files changed, 531 insertions(+), 263 deletions(-) diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index fe1dfcfa..829f98fd 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -1,12 +1,13 @@ ## 1.2.0-wip - Added missing `FileReader` event getters: `onAbort`, `onError`, `onLoad`, `onLoadStart`, `onProgress`. -- Removed renames `UnderlyingSource` and `UnderlyingSourceBase` where the types +- Removed renames `UnderlyingSource` and `UnderlyingSourceBase` where the types don't exist. +- Add variadic arguments. ## 1.1.0 -- Added `HttpStatus` class that declares http status codes. This is a copy of +- Added `HttpStatus` class that declares http status codes. This is a copy of the `HttpStatus` from the `dart:_internal` library that's exposed only through `dart:io` and `dart:html`. - Added `JSImmutableListWrapper` which helps create a dart list from a JS list. diff --git a/web/lib/src/dom.dart b/web/lib/src/dom.dart index f4cbf40c..00d43848 100644 --- a/web/lib/src/dom.dart +++ b/web/lib/src/dom.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. diff --git a/web/lib/src/dom/accelerometer.dart b/web/lib/src/dom/accelerometer.dart index eee2c747..dc117c06 100644 --- a/web/lib/src/dom/accelerometer.dart +++ b/web/lib/src/dom/accelerometer.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/angle_instanced_arrays.dart b/web/lib/src/dom/angle_instanced_arrays.dart index f99879ee..b085205b 100644 --- a/web/lib/src/dom/angle_instanced_arrays.dart +++ b/web/lib/src/dom/angle_instanced_arrays.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/attribution_reporting_api.dart b/web/lib/src/dom/attribution_reporting_api.dart index 32edf3d8..88c9b6fe 100644 --- a/web/lib/src/dom/attribution_reporting_api.dart +++ b/web/lib/src/dom/attribution_reporting_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/background_sync.dart b/web/lib/src/dom/background_sync.dart index 5c68a0d8..1b83d4ab 100644 --- a/web/lib/src/dom/background_sync.dart +++ b/web/lib/src/dom/background_sync.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/battery_status.dart b/web/lib/src/dom/battery_status.dart index 073f6ac2..5563d87b 100644 --- a/web/lib/src/dom/battery_status.dart +++ b/web/lib/src/dom/battery_status.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/clipboard_apis.dart b/web/lib/src/dom/clipboard_apis.dart index 2b6e1361..016299a2 100644 --- a/web/lib/src/dom/clipboard_apis.dart +++ b/web/lib/src/dom/clipboard_apis.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/compression.dart b/web/lib/src/dom/compression.dart index ccf1effa..55782f04 100644 --- a/web/lib/src/dom/compression.dart +++ b/web/lib/src/dom/compression.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/console.dart b/web/lib/src/dom/console.dart index 413751b3..13d30320 100644 --- a/web/lib/src/dom/console.dart +++ b/web/lib/src/dom/console.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // @@ -47,35 +47,86 @@ external $Console get console; @JS('console') extension type $Console._(JSObject _) implements JSObject { @JS('assert') - external void assert_( - JSAny? data, [ + external void assert_([ bool condition, + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, ]); external void clear(); - external void debug(JSAny? data); - external void error(JSAny? data); - external void info(JSAny? data); - external void log(JSAny? data); + external void debug([ + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, + ]); + external void error([ + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, + ]); + external void info([ + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, + ]); + external void log([ + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, + ]); external void table([ JSAny? tabularData, JSArray properties, ]); - external void trace(JSAny? data); - external void warn(JSAny? data); + external void trace([ + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, + ]); + external void warn([ + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, + ]); external void dir([ JSAny? item, JSObject? options, ]); - external void dirxml(JSAny? data); + external void dirxml([ + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, + ]); external void count([String label]); external void countReset([String label]); - external void group(JSAny? data); - external void groupCollapsed(JSAny? data); + external void group([ + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, + ]); + external void groupCollapsed([ + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, + ]); external void groupEnd(); external void time([String label]); - external void timeLog( - JSAny? data, [ + external void timeLog([ String label, + JSAny? data1, + JSAny? data2, + JSAny? data3, + JSAny? data4, ]); external void timeEnd([String label]); } diff --git a/web/lib/src/dom/cookie_store.dart b/web/lib/src/dom/cookie_store.dart index 5dfca038..09218773 100644 --- a/web/lib/src/dom/cookie_store.dart +++ b/web/lib/src/dom/cookie_store.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/credential_management.dart b/web/lib/src/dom/credential_management.dart index f0b7d194..e354308d 100644 --- a/web/lib/src/dom/credential_management.dart +++ b/web/lib/src/dom/credential_management.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/csp.dart b/web/lib/src/dom/csp.dart index 90afbc86..70bebd4e 100644 --- a/web/lib/src/dom/csp.dart +++ b/web/lib/src/dom/csp.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_animations.dart b/web/lib/src/dom/css_animations.dart index 23efacd2..29c6396e 100644 --- a/web/lib/src/dom/css_animations.dart +++ b/web/lib/src/dom/css_animations.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_animations_2.dart b/web/lib/src/dom/css_animations_2.dart index 694e7e58..b7c0748e 100644 --- a/web/lib/src/dom/css_animations_2.dart +++ b/web/lib/src/dom/css_animations_2.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_cascade.dart b/web/lib/src/dom/css_cascade.dart index f9b7b9e4..d36bb835 100644 --- a/web/lib/src/dom/css_cascade.dart +++ b/web/lib/src/dom/css_cascade.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_cascade_6.dart b/web/lib/src/dom/css_cascade_6.dart index f8822999..d841b88f 100644 --- a/web/lib/src/dom/css_cascade_6.dart +++ b/web/lib/src/dom/css_cascade_6.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_conditional.dart b/web/lib/src/dom/css_conditional.dart index 6bac1174..671d9f4d 100644 --- a/web/lib/src/dom/css_conditional.dart +++ b/web/lib/src/dom/css_conditional.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_conditional_5.dart b/web/lib/src/dom/css_conditional_5.dart index 147f2d2e..7d078d66 100644 --- a/web/lib/src/dom/css_conditional_5.dart +++ b/web/lib/src/dom/css_conditional_5.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_contain.dart b/web/lib/src/dom/css_contain.dart index 4ea6cdc4..3c9abe06 100644 --- a/web/lib/src/dom/css_contain.dart +++ b/web/lib/src/dom/css_contain.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_counter_styles.dart b/web/lib/src/dom/css_counter_styles.dart index 2d400d62..0ada13b3 100644 --- a/web/lib/src/dom/css_counter_styles.dart +++ b/web/lib/src/dom/css_counter_styles.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_font_loading.dart b/web/lib/src/dom/css_font_loading.dart index 1da78288..ffd56813 100644 --- a/web/lib/src/dom/css_font_loading.dart +++ b/web/lib/src/dom/css_font_loading.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_fonts.dart b/web/lib/src/dom/css_fonts.dart index ae941894..196afd08 100644 --- a/web/lib/src/dom/css_fonts.dart +++ b/web/lib/src/dom/css_fonts.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_highlight_api.dart b/web/lib/src/dom/css_highlight_api.dart index 4bc4f6ad..ceae2759 100644 --- a/web/lib/src/dom/css_highlight_api.dart +++ b/web/lib/src/dom/css_highlight_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // @@ -37,7 +37,12 @@ typedef HighlightType = String; /// API documentation sourced from /// [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/Highlight). extension type Highlight._(JSObject _) implements JSObject { - external factory Highlight(AbstractRange initialRanges); + external factory Highlight([ + AbstractRange initialRange1, + AbstractRange initialRange2, + AbstractRange initialRange3, + AbstractRange initialRange4, + ]); /// It is possible to create [Range] objects that overlap in a document. /// diff --git a/web/lib/src/dom/css_masking.dart b/web/lib/src/dom/css_masking.dart index 2932260b..52540a5d 100644 --- a/web/lib/src/dom/css_masking.dart +++ b/web/lib/src/dom/css_masking.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_paint_api.dart b/web/lib/src/dom/css_paint_api.dart index a793c8da..13c3b747 100644 --- a/web/lib/src/dom/css_paint_api.dart +++ b/web/lib/src/dom/css_paint_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_properties_values_api.dart b/web/lib/src/dom/css_properties_values_api.dart index eb3d77fb..5a4f3e1e 100644 --- a/web/lib/src/dom/css_properties_values_api.dart +++ b/web/lib/src/dom/css_properties_values_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_transitions.dart b/web/lib/src/dom/css_transitions.dart index 31201c08..3f0d8493 100644 --- a/web/lib/src/dom/css_transitions.dart +++ b/web/lib/src/dom/css_transitions.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_transitions_2.dart b/web/lib/src/dom/css_transitions_2.dart index 6bd889e4..ef3929fc 100644 --- a/web/lib/src/dom/css_transitions_2.dart +++ b/web/lib/src/dom/css_transitions_2.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_typed_om.dart b/web/lib/src/dom/css_typed_om.dart index 93521e0b..6e92220b 100644 --- a/web/lib/src/dom/css_typed_om.dart +++ b/web/lib/src/dom/css_typed_om.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // @@ -100,17 +100,23 @@ extension type StylePropertyMap._(JSObject _) /// The **`set()`** method of the [StylePropertyMap] /// interface changes the CSS declaration with the given property. external void set( - String property, - JSAny values, - ); + String property, [ + JSAny value1, + JSAny value2, + JSAny value3, + JSAny value4, + ]); /// The **`append()`** method of the /// [StylePropertyMap] interface adds the passed CSS value to the /// `StylePropertyMap` with the given property. external void append( - String property, - JSAny values, - ); + String property, [ + JSAny value1, + JSAny value2, + JSAny value3, + JSAny value4, + ]); /// The **`delete()`** method of the /// [StylePropertyMap] interface removes the CSS declaration with the given @@ -250,33 +256,63 @@ extension type CSSNumericValue._(JSObject _) /// The **`add()`** method of the /// [CSSNumericValue] interface adds a supplied number to the /// `CSSNumericValue`. - external CSSNumericValue add(CSSNumberish values); + external CSSNumericValue add([ + CSSNumberish value1, + CSSNumberish value2, + CSSNumberish value3, + CSSNumberish value4, + ]); /// The **`sub()`** method of the /// [CSSNumericValue] interface subtracts a supplied number from the /// `CSSNumericValue`. - external CSSNumericValue sub(CSSNumberish values); + external CSSNumericValue sub([ + CSSNumberish value1, + CSSNumberish value2, + CSSNumberish value3, + CSSNumberish value4, + ]); /// The **`mul()`** method of the /// [CSSNumericValue] interface multiplies the `CSSNumericValue` by /// the supplied value. - external CSSNumericValue mul(CSSNumberish values); + external CSSNumericValue mul([ + CSSNumberish value1, + CSSNumberish value2, + CSSNumberish value3, + CSSNumberish value4, + ]); /// The **`div()`** method of the /// [CSSNumericValue] interface divides the `CSSNumericValue` by the /// supplied value. - external CSSNumericValue div(CSSNumberish values); + external CSSNumericValue div([ + CSSNumberish value1, + CSSNumberish value2, + CSSNumberish value3, + CSSNumberish value4, + ]); /// The **`min()`** method of the /// [CSSNumericValue] interface returns the lowest value from among those /// values passed. The passed values must be of the same type. - external CSSNumericValue min(CSSNumberish values); + external CSSNumericValue min([ + CSSNumberish value1, + CSSNumberish value2, + CSSNumberish value3, + CSSNumberish value4, + ]); /// The **`max()`** method of the /// [CSSNumericValue] interface returns the highest value from among the /// values /// passed. The passed values must be of the same type. - external CSSNumericValue max(CSSNumberish values); + external CSSNumericValue max([ + CSSNumberish value1, + CSSNumberish value2, + CSSNumberish value3, + CSSNumberish value4, + ]); /// The **`equals()`** method of the /// [CSSNumericValue] interface returns a boolean indicating whether the @@ -286,7 +322,12 @@ extension type CSSNumericValue._(JSObject _) /// be of the same type and value and must be in the same order. This allows /// structural /// equality to be tested quickly. - external bool equals(CSSNumberish value); + external bool equals([ + CSSNumberish value1, + CSSNumberish value2, + CSSNumberish value3, + CSSNumberish value4, + ]); /// The **`to()`** method of the /// [CSSNumericValue] interface converts a numeric value from one unit to @@ -296,7 +337,12 @@ extension type CSSNumericValue._(JSObject _) /// The **`toSum()`** method of the /// [CSSNumericValue] interface converts the object's value to a /// [CSSMathSum] object to values of the specified unit. - external CSSMathSum toSum(String units); + external CSSMathSum toSum([ + String unit1, + String unit2, + String unit3, + String unit4, + ]); /// The **`type()`** method of the /// [CSSNumericValue] interface returns the type of diff --git a/web/lib/src/dom/css_view_transitions.dart b/web/lib/src/dom/css_view_transitions.dart index 1eb6c582..d406e927 100644 --- a/web/lib/src/dom/css_view_transitions.dart +++ b/web/lib/src/dom/css_view_transitions.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/css_view_transitions_2.dart b/web/lib/src/dom/css_view_transitions_2.dart index d0f0b2db..fc85b63b 100644 --- a/web/lib/src/dom/css_view_transitions_2.dart +++ b/web/lib/src/dom/css_view_transitions_2.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/cssom.dart b/web/lib/src/dom/cssom.dart index 5fce13a3..53b5bc38 100644 --- a/web/lib/src/dom/cssom.dart +++ b/web/lib/src/dom/cssom.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/cssom_view.dart b/web/lib/src/dom/cssom_view.dart index d8ea8791..9870bb36 100644 --- a/web/lib/src/dom/cssom_view.dart +++ b/web/lib/src/dom/cssom_view.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/digital_identities.dart b/web/lib/src/dom/digital_identities.dart index ff7631ad..b65e3daa 100644 --- a/web/lib/src/dom/digital_identities.dart +++ b/web/lib/src/dom/digital_identities.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/dom.dart b/web/lib/src/dom/dom.dart index c9e14442..66b9aae7 100644 --- a/web/lib/src/dom/dom.dart +++ b/web/lib/src/dom/dom.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // @@ -1645,7 +1645,12 @@ extension type Document._(JSObject _) implements Node, JSObject { /// > calling `document.write()` on a closed (loaded) document automatically /// > calls `document.open()`, /// > [which will clear the document](https://developer.mozilla.org/en-US/docs/Web/API/Document/open#notes). - external void write(JSAny text); + external void write([ + JSAny text1, + JSAny text2, + JSAny text3, + JSAny text4, + ]); /// > **Warning:** Use of the `document.writeln()` method is strongly /// > discouraged. @@ -1672,7 +1677,12 @@ extension type Document._(JSObject _) implements Node, JSObject { /// > any existing code that is still using it. /// /// Writes a string of text followed by a newline character to a document. - external void writeln(JSAny text); + external void writeln([ + JSAny text1, + JSAny text2, + JSAny text3, + JSAny text4, + ]); /// The **`hasFocus()`** method of the [Document] interface returns a boolean /// value indicating whether the document or any element inside the document @@ -1841,7 +1851,12 @@ extension type Document._(JSObject _) implements Node, JSObject { /// /// This method prepends a child to a `Document`. To prepend to an arbitrary /// element in the tree, see [Element.prepend]. - external void prepend(JSAny nodes); + external void prepend([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`Document.append()`** method /// inserts a set of [Node] objects or string objects after @@ -1850,11 +1865,21 @@ extension type Document._(JSObject _) implements Node, JSObject { /// /// This method appends a child to a `Document`. To append to an arbitrary /// element in the tree, see [Element.append]. - external void append(JSAny nodes); + external void append([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`Document.replaceChildren()`** method replaces the /// existing children of a `Document` with a specified new set of children. - external void replaceChildren(JSAny nodes); + external void replaceChildren([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The [Document] method **`querySelector()`** /// returns the first [Element] within the document that matches the specified @@ -2670,17 +2695,32 @@ extension type DocumentType._(JSObject _) implements Node, JSObject { /// [Node] objects or strings in the children list of the /// `DocumentType`'s parent, just before the `DocumentType`. /// Strings are inserted as equivalent [Text] nodes. - external void before(JSAny nodes); + external void before([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`DocumentType.after()`** method inserts a set of /// [Node] objects or strings in the children list of the /// `DocumentType`'s parent, just after the `DocumentType`. /// Strings are inserted as equivalent [Text] nodes. - external void after(JSAny nodes); + external void after([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`DocumentType.replaceWith()`** method replaces the document type /// with a set of given nodes. - external void replaceWith(JSAny nodes); + external void replaceWith([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`DocumentType.remove()`** method removes a document's `doctype`. external void remove(); @@ -2755,7 +2795,12 @@ extension type DocumentFragment._(JSObject _) implements Node, JSObject { /// /// This method prepends a child to a `DocumentFragment`. To prepend to an /// arbitrary element in the tree, see [Element.prepend]. - external void prepend(JSAny nodes); + external void prepend([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`DocumentFragment.append()`** method /// inserts a set of [Node] objects or string objects after @@ -2764,13 +2809,23 @@ extension type DocumentFragment._(JSObject _) implements Node, JSObject { /// /// This method appends a child to a `DocumentFragment`. To append to an /// arbitrary element in the tree, see [Element.append]. - external void append(JSAny nodes); + external void append([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`DocumentFragment.replaceChildren()`** method replaces the /// existing children of a `DocumentFragment` with a specified new set of /// children. These /// can be string or [Node] objects. - external void replaceChildren(JSAny nodes); + external void replaceChildren([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`DocumentFragment.querySelector()`** method returns the /// first element, or `null` if no matches are found, within the @@ -3509,7 +3564,12 @@ extension type Element._(JSObject _) implements Node, JSObject { /// [Node] objects or string objects before the first child /// of the [Element]. String objects are inserted as /// equivalent [Text] nodes. - external void prepend(JSAny nodes); + external void prepend([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`Element.append()`** method /// inserts a set of [Node] objects or string objects after @@ -3525,12 +3585,22 @@ extension type Element._(JSObject _) implements Node, JSObject { /// `Node.appendChild()` returns the appended [Node] object. /// - `Element.append()` can append several nodes and strings, whereas /// `Node.appendChild()` can only append one node. - external void append(JSAny nodes); + external void append([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`Element.replaceChildren()`** method replaces the /// existing children of a [Node] with a specified new set of children. These /// can be string or [Node] objects. - external void replaceChildren(JSAny nodes); + external void replaceChildren([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`querySelector()`** method of the [Element] /// interface returns the first element that is a descendant of the element on @@ -3549,19 +3619,34 @@ extension type Element._(JSObject _) implements Node, JSObject { /// [Node] or string objects in the children list of this /// `Element`'s parent, just before this `Element`. /// String objects are inserted as equivalent [Text] nodes. - external void before(JSAny nodes); + external void before([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`Element.after()`** method inserts a set of /// [Node] or string objects in the children list of the /// `Element`'s parent, just after the `Element`. /// String objects are inserted as equivalent [Text] nodes. - external void after(JSAny nodes); + external void after([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`Element.replaceWith()`** method replaces this /// `Element` in the children list of its parent with a set of /// [Node] or string objects. String /// objects are inserted as equivalent [Text] nodes. - external void replaceWith(JSAny nodes); + external void replaceWith([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`Element.remove()`** method removes the element from the DOM. external void remove(); @@ -4543,7 +4628,12 @@ extension type CharacterData._(JSObject _) implements Node, JSObject { /// /// Strings are inserted as [Text] nodes; the string is being passed as /// argument to the [Text.Text] constructor. - external void before(JSAny nodes); + external void before([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`after()`** method of the [CharacterData] interface /// inserts a set of [Node] objects or strings in the children list of the @@ -4551,7 +4641,12 @@ extension type CharacterData._(JSObject _) implements Node, JSObject { /// /// Strings are inserted as [Text] nodes; the string is being passed as /// argument to the [Text.Text] constructor. - external void after(JSAny nodes); + external void after([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`replaceWith()`** method of the [CharacterData] interface /// replaces this node in the children list of its parent @@ -4559,7 +4654,12 @@ extension type CharacterData._(JSObject _) implements Node, JSObject { /// /// Strings are inserted as [Text] nodes; the string is being passed as /// argument to the [Text.Text] constructor. - external void replaceWith(JSAny nodes); + external void replaceWith([ + JSAny node1, + JSAny node2, + JSAny node3, + JSAny node4, + ]); /// The **`remove()`** method of the [CharacterData] removes the text /// contained in the node. @@ -5396,11 +5496,21 @@ extension type DOMTokenList._(JSObject _) implements JSObject { /// The **`add()`** method of the [DOMTokenList] interface adds the given /// tokens to the list, omitting any that are already present. - external void add(String tokens); + external void add([ + String token1, + String token2, + String token3, + String token4, + ]); /// The **`remove()`** method of the [DOMTokenList] interface /// removes the specified _tokens_ from the list. - external void remove(String tokens); + external void remove([ + String token1, + String token2, + String token3, + String token4, + ]); /// The **`toggle()`** method of the [DOMTokenList] interface /// removes an existing token from the list and returns `false`. diff --git a/web/lib/src/dom/dom_parsing.dart b/web/lib/src/dom/dom_parsing.dart index a98483ea..f14b4b89 100644 --- a/web/lib/src/dom/dom_parsing.dart +++ b/web/lib/src/dom/dom_parsing.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/encoding.dart b/web/lib/src/dom/encoding.dart index 7e51e48d..1d2d53ea 100644 --- a/web/lib/src/dom/encoding.dart +++ b/web/lib/src/dom/encoding.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/encrypted_media.dart b/web/lib/src/dom/encrypted_media.dart index c8ebeee7..4e8c1d38 100644 --- a/web/lib/src/dom/encrypted_media.dart +++ b/web/lib/src/dom/encrypted_media.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/entries_api.dart b/web/lib/src/dom/entries_api.dart index 494ad73f..0dd65f2a 100644 --- a/web/lib/src/dom/entries_api.dart +++ b/web/lib/src/dom/entries_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/event_timing.dart b/web/lib/src/dom/event_timing.dart index eaf8bcd4..23671a9b 100644 --- a/web/lib/src/dom/event_timing.dart +++ b/web/lib/src/dom/event_timing.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_blend_minmax.dart b/web/lib/src/dom/ext_blend_minmax.dart index 82cdf255..a39b1fff 100644 --- a/web/lib/src/dom/ext_blend_minmax.dart +++ b/web/lib/src/dom/ext_blend_minmax.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_color_buffer_float.dart b/web/lib/src/dom/ext_color_buffer_float.dart index 191a20fd..71358ba4 100644 --- a/web/lib/src/dom/ext_color_buffer_float.dart +++ b/web/lib/src/dom/ext_color_buffer_float.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_color_buffer_half_float.dart b/web/lib/src/dom/ext_color_buffer_half_float.dart index 25b8e049..9f7c31fb 100644 --- a/web/lib/src/dom/ext_color_buffer_half_float.dart +++ b/web/lib/src/dom/ext_color_buffer_half_float.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_disjoint_timer_query.dart b/web/lib/src/dom/ext_disjoint_timer_query.dart index 4cd66b33..27f4eb7d 100644 --- a/web/lib/src/dom/ext_disjoint_timer_query.dart +++ b/web/lib/src/dom/ext_disjoint_timer_query.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_disjoint_timer_query_webgl2.dart b/web/lib/src/dom/ext_disjoint_timer_query_webgl2.dart index 040fc6c1..aeb783c2 100644 --- a/web/lib/src/dom/ext_disjoint_timer_query_webgl2.dart +++ b/web/lib/src/dom/ext_disjoint_timer_query_webgl2.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_float_blend.dart b/web/lib/src/dom/ext_float_blend.dart index 174f5359..2569a1a0 100644 --- a/web/lib/src/dom/ext_float_blend.dart +++ b/web/lib/src/dom/ext_float_blend.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_frag_depth.dart b/web/lib/src/dom/ext_frag_depth.dart index 3cd3d3b1..5aa8f770 100644 --- a/web/lib/src/dom/ext_frag_depth.dart +++ b/web/lib/src/dom/ext_frag_depth.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_shader_texture_lod.dart b/web/lib/src/dom/ext_shader_texture_lod.dart index 74d65864..b3b8e8db 100644 --- a/web/lib/src/dom/ext_shader_texture_lod.dart +++ b/web/lib/src/dom/ext_shader_texture_lod.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_srgb.dart b/web/lib/src/dom/ext_srgb.dart index 4e9ac650..1d36fc71 100644 --- a/web/lib/src/dom/ext_srgb.dart +++ b/web/lib/src/dom/ext_srgb.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_texture_compression_bptc.dart b/web/lib/src/dom/ext_texture_compression_bptc.dart index 60d0e6b0..840a0b96 100644 --- a/web/lib/src/dom/ext_texture_compression_bptc.dart +++ b/web/lib/src/dom/ext_texture_compression_bptc.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_texture_compression_rgtc.dart b/web/lib/src/dom/ext_texture_compression_rgtc.dart index b669f66f..588d8930 100644 --- a/web/lib/src/dom/ext_texture_compression_rgtc.dart +++ b/web/lib/src/dom/ext_texture_compression_rgtc.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_texture_filter_anisotropic.dart b/web/lib/src/dom/ext_texture_filter_anisotropic.dart index 6526d879..26834b57 100644 --- a/web/lib/src/dom/ext_texture_filter_anisotropic.dart +++ b/web/lib/src/dom/ext_texture_filter_anisotropic.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ext_texture_norm16.dart b/web/lib/src/dom/ext_texture_norm16.dart index a378f337..3b804e6c 100644 --- a/web/lib/src/dom/ext_texture_norm16.dart +++ b/web/lib/src/dom/ext_texture_norm16.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/fedcm.dart b/web/lib/src/dom/fedcm.dart index 31bfd84a..ec2c14a5 100644 --- a/web/lib/src/dom/fedcm.dart +++ b/web/lib/src/dom/fedcm.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/fetch.dart b/web/lib/src/dom/fetch.dart index 6e7320c3..b2f7c41d 100644 --- a/web/lib/src/dom/fetch.dart +++ b/web/lib/src/dom/fetch.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/fido.dart b/web/lib/src/dom/fido.dart index 108755b6..27bb577f 100644 --- a/web/lib/src/dom/fido.dart +++ b/web/lib/src/dom/fido.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/fileapi.dart b/web/lib/src/dom/fileapi.dart index abfc1204..e0c24435 100644 --- a/web/lib/src/dom/fileapi.dart +++ b/web/lib/src/dom/fileapi.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/filter_effects.dart b/web/lib/src/dom/filter_effects.dart index 2b56793f..bc51b2cd 100644 --- a/web/lib/src/dom/filter_effects.dart +++ b/web/lib/src/dom/filter_effects.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/fs.dart b/web/lib/src/dom/fs.dart index 87b98fb8..5bf05f52 100644 --- a/web/lib/src/dom/fs.dart +++ b/web/lib/src/dom/fs.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/fullscreen.dart b/web/lib/src/dom/fullscreen.dart index 4a4f2cdf..0d90b7fb 100644 --- a/web/lib/src/dom/fullscreen.dart +++ b/web/lib/src/dom/fullscreen.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/gamepad.dart b/web/lib/src/dom/gamepad.dart index 5bbd8f2e..0f061e6d 100644 --- a/web/lib/src/dom/gamepad.dart +++ b/web/lib/src/dom/gamepad.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/generic_sensor.dart b/web/lib/src/dom/generic_sensor.dart index 91c34395..4d4d9922 100644 --- a/web/lib/src/dom/generic_sensor.dart +++ b/web/lib/src/dom/generic_sensor.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/geolocation.dart b/web/lib/src/dom/geolocation.dart index 05030c84..59155b4b 100644 --- a/web/lib/src/dom/geolocation.dart +++ b/web/lib/src/dom/geolocation.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/geometry.dart b/web/lib/src/dom/geometry.dart index e05dee22..74d36e7e 100644 --- a/web/lib/src/dom/geometry.dart +++ b/web/lib/src/dom/geometry.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/gyroscope.dart b/web/lib/src/dom/gyroscope.dart index 1135fb4a..64269380 100644 --- a/web/lib/src/dom/gyroscope.dart +++ b/web/lib/src/dom/gyroscope.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/hr_time.dart b/web/lib/src/dom/hr_time.dart index 78818249..0cda6934 100644 --- a/web/lib/src/dom/hr_time.dart +++ b/web/lib/src/dom/hr_time.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/html.dart b/web/lib/src/dom/html.dart index d4990eb3..f03b4ff2 100644 --- a/web/lib/src/dom/html.dart +++ b/web/lib/src/dom/html.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // @@ -6918,7 +6918,12 @@ extension type HTMLSlotElement._(JSObject _) implements HTMLElement, JSObject { /// > shadow tree needs to have been /// > [created](https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow) /// > with the `slotAssignment: "manual"` option. - external void assign(JSObject nodes); + external void assign([ + JSObject node1, + JSObject node2, + JSObject node3, + JSObject node4, + ]); /// The **`name`** property of the [HTMLSlotElement] /// interface returns or sets the slot name. A slot is a placeholder inside a @@ -10320,15 +10325,21 @@ extension type Window._(JSObject _) implements EventTarget, JSObject { /// glossary entry. external String atob(String data); external int setTimeout( - TimerHandler handler, - JSAny? arguments, [ + TimerHandler handler, [ int timeout, + JSAny? argument1, + JSAny? argument2, + JSAny? argument3, + JSAny? argument4, ]); external void clearTimeout([int id]); external int setInterval( - TimerHandler handler, - JSAny? arguments, [ + TimerHandler handler, [ int timeout, + JSAny? argument1, + JSAny? argument2, + JSAny? argument3, + JSAny? argument4, ]); external void clearInterval([int id]); external void queueMicrotask(VoidFunction callback); @@ -12775,7 +12786,12 @@ extension type WorkerGlobalScope._(JSObject _) implements EventTarget, JSObject { /// The **`importScripts()`** method of the [WorkerGlobalScope] interface /// synchronously imports one or more scripts into the worker's scope. - external void importScripts(JSAny urls); + external void importScripts([ + JSAny url1, + JSAny url2, + JSAny url3, + JSAny url4, + ]); external void reportError(JSAny? e); /// The **`btoa()`** method of the [WorkerGlobalScope] interface creates a @@ -12803,15 +12819,21 @@ extension type WorkerGlobalScope._(JSObject _) /// section in glossary entry. external String atob(String data); external int setTimeout( - TimerHandler handler, - JSAny? arguments, [ + TimerHandler handler, [ int timeout, + JSAny? argument1, + JSAny? argument2, + JSAny? argument3, + JSAny? argument4, ]); external void clearTimeout([int id]); external int setInterval( - TimerHandler handler, - JSAny? arguments, [ + TimerHandler handler, [ int timeout, + JSAny? argument1, + JSAny? argument2, + JSAny? argument3, + JSAny? argument4, ]); external void clearInterval([int id]); external void queueMicrotask(VoidFunction callback); diff --git a/web/lib/src/dom/image_capture.dart b/web/lib/src/dom/image_capture.dart index 82481302..0ac97ab8 100644 --- a/web/lib/src/dom/image_capture.dart +++ b/web/lib/src/dom/image_capture.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/indexeddb.dart b/web/lib/src/dom/indexeddb.dart index 9cd45494..4660d509 100644 --- a/web/lib/src/dom/indexeddb.dart +++ b/web/lib/src/dom/indexeddb.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/intersection_observer.dart b/web/lib/src/dom/intersection_observer.dart index 79b09ce5..db040ceb 100644 --- a/web/lib/src/dom/intersection_observer.dart +++ b/web/lib/src/dom/intersection_observer.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/khr_parallel_shader_compile.dart b/web/lib/src/dom/khr_parallel_shader_compile.dart index 0245d2cf..b724e22f 100644 --- a/web/lib/src/dom/khr_parallel_shader_compile.dart +++ b/web/lib/src/dom/khr_parallel_shader_compile.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/largest_contentful_paint.dart b/web/lib/src/dom/largest_contentful_paint.dart index 19363f91..4bd3e264 100644 --- a/web/lib/src/dom/largest_contentful_paint.dart +++ b/web/lib/src/dom/largest_contentful_paint.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/mathml_core.dart b/web/lib/src/dom/mathml_core.dart index 3063d484..421a64ec 100644 --- a/web/lib/src/dom/mathml_core.dart +++ b/web/lib/src/dom/mathml_core.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/media_capabilities.dart b/web/lib/src/dom/media_capabilities.dart index 31ba7680..13022e55 100644 --- a/web/lib/src/dom/media_capabilities.dart +++ b/web/lib/src/dom/media_capabilities.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/media_playback_quality.dart b/web/lib/src/dom/media_playback_quality.dart index 80e12a8f..9f786ba3 100644 --- a/web/lib/src/dom/media_playback_quality.dart +++ b/web/lib/src/dom/media_playback_quality.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/media_source.dart b/web/lib/src/dom/media_source.dart index 460c9cc9..2ce2a140 100644 --- a/web/lib/src/dom/media_source.dart +++ b/web/lib/src/dom/media_source.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/mediacapture_fromelement.dart b/web/lib/src/dom/mediacapture_fromelement.dart index 73382b20..f0e7b1b9 100644 --- a/web/lib/src/dom/mediacapture_fromelement.dart +++ b/web/lib/src/dom/mediacapture_fromelement.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/mediacapture_streams.dart b/web/lib/src/dom/mediacapture_streams.dart index 9445d058..63239f65 100644 --- a/web/lib/src/dom/mediacapture_streams.dart +++ b/web/lib/src/dom/mediacapture_streams.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/mediacapture_transform.dart b/web/lib/src/dom/mediacapture_transform.dart index 0205a61f..9f479806 100644 --- a/web/lib/src/dom/mediacapture_transform.dart +++ b/web/lib/src/dom/mediacapture_transform.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/mediasession.dart b/web/lib/src/dom/mediasession.dart index f77771a3..b0a1a3d5 100644 --- a/web/lib/src/dom/mediasession.dart +++ b/web/lib/src/dom/mediasession.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/mediastream_recording.dart b/web/lib/src/dom/mediastream_recording.dart index a8205277..a8b1919a 100644 --- a/web/lib/src/dom/mediastream_recording.dart +++ b/web/lib/src/dom/mediastream_recording.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/mst_content_hint.dart b/web/lib/src/dom/mst_content_hint.dart index f33f9a69..75ec1bfd 100644 --- a/web/lib/src/dom/mst_content_hint.dart +++ b/web/lib/src/dom/mst_content_hint.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/navigation_timing.dart b/web/lib/src/dom/navigation_timing.dart index 54a1398b..26299189 100644 --- a/web/lib/src/dom/navigation_timing.dart +++ b/web/lib/src/dom/navigation_timing.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/netinfo.dart b/web/lib/src/dom/netinfo.dart index 8c5e2ce3..4ed18bc9 100644 --- a/web/lib/src/dom/netinfo.dart +++ b/web/lib/src/dom/netinfo.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/notifications.dart b/web/lib/src/dom/notifications.dart index dcf9da2b..bfeeb3c1 100644 --- a/web/lib/src/dom/notifications.dart +++ b/web/lib/src/dom/notifications.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/oes_draw_buffers_indexed.dart b/web/lib/src/dom/oes_draw_buffers_indexed.dart index 623ae92b..f468cfa1 100644 --- a/web/lib/src/dom/oes_draw_buffers_indexed.dart +++ b/web/lib/src/dom/oes_draw_buffers_indexed.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/oes_element_index_uint.dart b/web/lib/src/dom/oes_element_index_uint.dart index baefd47d..aa16dc04 100644 --- a/web/lib/src/dom/oes_element_index_uint.dart +++ b/web/lib/src/dom/oes_element_index_uint.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/oes_fbo_render_mipmap.dart b/web/lib/src/dom/oes_fbo_render_mipmap.dart index 27c7507d..16bc750b 100644 --- a/web/lib/src/dom/oes_fbo_render_mipmap.dart +++ b/web/lib/src/dom/oes_fbo_render_mipmap.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/oes_standard_derivatives.dart b/web/lib/src/dom/oes_standard_derivatives.dart index aa1d7cc2..c1c6e3b5 100644 --- a/web/lib/src/dom/oes_standard_derivatives.dart +++ b/web/lib/src/dom/oes_standard_derivatives.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/oes_texture_float.dart b/web/lib/src/dom/oes_texture_float.dart index 7d96f010..125d0e60 100644 --- a/web/lib/src/dom/oes_texture_float.dart +++ b/web/lib/src/dom/oes_texture_float.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/oes_texture_float_linear.dart b/web/lib/src/dom/oes_texture_float_linear.dart index 1ac93a38..e4c073f1 100644 --- a/web/lib/src/dom/oes_texture_float_linear.dart +++ b/web/lib/src/dom/oes_texture_float_linear.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/oes_texture_half_float.dart b/web/lib/src/dom/oes_texture_half_float.dart index ea340ef9..f81752d5 100644 --- a/web/lib/src/dom/oes_texture_half_float.dart +++ b/web/lib/src/dom/oes_texture_half_float.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/oes_texture_half_float_linear.dart b/web/lib/src/dom/oes_texture_half_float_linear.dart index a1304b1e..39fcbccc 100644 --- a/web/lib/src/dom/oes_texture_half_float_linear.dart +++ b/web/lib/src/dom/oes_texture_half_float_linear.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/oes_vertex_array_object.dart b/web/lib/src/dom/oes_vertex_array_object.dart index 3dfe863f..b2a767a7 100644 --- a/web/lib/src/dom/oes_vertex_array_object.dart +++ b/web/lib/src/dom/oes_vertex_array_object.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/orientation_event.dart b/web/lib/src/dom/orientation_event.dart index 38bff1b4..e096ad0e 100644 --- a/web/lib/src/dom/orientation_event.dart +++ b/web/lib/src/dom/orientation_event.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/orientation_sensor.dart b/web/lib/src/dom/orientation_sensor.dart index 8e1cc42d..debb34d1 100644 --- a/web/lib/src/dom/orientation_sensor.dart +++ b/web/lib/src/dom/orientation_sensor.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/ovr_multiview2.dart b/web/lib/src/dom/ovr_multiview2.dart index 097b9e97..4b386f4f 100644 --- a/web/lib/src/dom/ovr_multiview2.dart +++ b/web/lib/src/dom/ovr_multiview2.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/paint_timing.dart b/web/lib/src/dom/paint_timing.dart index f79c1b4b..4671e6cb 100644 --- a/web/lib/src/dom/paint_timing.dart +++ b/web/lib/src/dom/paint_timing.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/payment_request.dart b/web/lib/src/dom/payment_request.dart index bd9132f7..15df69c7 100644 --- a/web/lib/src/dom/payment_request.dart +++ b/web/lib/src/dom/payment_request.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/performance_timeline.dart b/web/lib/src/dom/performance_timeline.dart index 4ab706e0..b1e05d41 100644 --- a/web/lib/src/dom/performance_timeline.dart +++ b/web/lib/src/dom/performance_timeline.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/permissions.dart b/web/lib/src/dom/permissions.dart index 1604cd09..70bb922c 100644 --- a/web/lib/src/dom/permissions.dart +++ b/web/lib/src/dom/permissions.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/picture_in_picture.dart b/web/lib/src/dom/picture_in_picture.dart index c0031f9f..998d3add 100644 --- a/web/lib/src/dom/picture_in_picture.dart +++ b/web/lib/src/dom/picture_in_picture.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/pointerevents.dart b/web/lib/src/dom/pointerevents.dart index 32fed433..00cc2247 100644 --- a/web/lib/src/dom/pointerevents.dart +++ b/web/lib/src/dom/pointerevents.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/pointerlock.dart b/web/lib/src/dom/pointerlock.dart index 05933659..4cf63452 100644 --- a/web/lib/src/dom/pointerlock.dart +++ b/web/lib/src/dom/pointerlock.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/private_network_access.dart b/web/lib/src/dom/private_network_access.dart index 1add8818..81e9b6de 100644 --- a/web/lib/src/dom/private_network_access.dart +++ b/web/lib/src/dom/private_network_access.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/push_api.dart b/web/lib/src/dom/push_api.dart index 1327f2f2..350b2420 100644 --- a/web/lib/src/dom/push_api.dart +++ b/web/lib/src/dom/push_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/referrer_policy.dart b/web/lib/src/dom/referrer_policy.dart index ce62924f..bd48f8d4 100644 --- a/web/lib/src/dom/referrer_policy.dart +++ b/web/lib/src/dom/referrer_policy.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/remote_playback.dart b/web/lib/src/dom/remote_playback.dart index 700c64be..7a0523fa 100644 --- a/web/lib/src/dom/remote_playback.dart +++ b/web/lib/src/dom/remote_playback.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/reporting.dart b/web/lib/src/dom/reporting.dart index 974659ce..3f2af2a7 100644 --- a/web/lib/src/dom/reporting.dart +++ b/web/lib/src/dom/reporting.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/requestidlecallback.dart b/web/lib/src/dom/requestidlecallback.dart index d83378f7..3adeb9bc 100644 --- a/web/lib/src/dom/requestidlecallback.dart +++ b/web/lib/src/dom/requestidlecallback.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/resize_observer.dart b/web/lib/src/dom/resize_observer.dart index 96a08ae8..f5d8d5c6 100644 --- a/web/lib/src/dom/resize_observer.dart +++ b/web/lib/src/dom/resize_observer.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/resource_timing.dart b/web/lib/src/dom/resource_timing.dart index 51f8eac8..429c67e9 100644 --- a/web/lib/src/dom/resource_timing.dart +++ b/web/lib/src/dom/resource_timing.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/saa_non_cookie_storage.dart b/web/lib/src/dom/saa_non_cookie_storage.dart index f7232dfd..235380a6 100644 --- a/web/lib/src/dom/saa_non_cookie_storage.dart +++ b/web/lib/src/dom/saa_non_cookie_storage.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/sanitizer_api.dart b/web/lib/src/dom/sanitizer_api.dart index 8e53a289..2a151768 100644 --- a/web/lib/src/dom/sanitizer_api.dart +++ b/web/lib/src/dom/sanitizer_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/scheduling_apis.dart b/web/lib/src/dom/scheduling_apis.dart index deae2c3f..5c1d1272 100644 --- a/web/lib/src/dom/scheduling_apis.dart +++ b/web/lib/src/dom/scheduling_apis.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/screen_capture.dart b/web/lib/src/dom/screen_capture.dart index bf8f414b..fb4cf9d8 100644 --- a/web/lib/src/dom/screen_capture.dart +++ b/web/lib/src/dom/screen_capture.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/screen_orientation.dart b/web/lib/src/dom/screen_orientation.dart index 50c72c2a..a9382c13 100644 --- a/web/lib/src/dom/screen_orientation.dart +++ b/web/lib/src/dom/screen_orientation.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/screen_wake_lock.dart b/web/lib/src/dom/screen_wake_lock.dart index c0505492..f1ffb99c 100644 --- a/web/lib/src/dom/screen_wake_lock.dart +++ b/web/lib/src/dom/screen_wake_lock.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/secure_payment_confirmation.dart b/web/lib/src/dom/secure_payment_confirmation.dart index 1e428827..d60d9c2c 100644 --- a/web/lib/src/dom/secure_payment_confirmation.dart +++ b/web/lib/src/dom/secure_payment_confirmation.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/selection_api.dart b/web/lib/src/dom/selection_api.dart index d5288bbe..e882775a 100644 --- a/web/lib/src/dom/selection_api.dart +++ b/web/lib/src/dom/selection_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/server_timing.dart b/web/lib/src/dom/server_timing.dart index d23f2b22..cbda5f9f 100644 --- a/web/lib/src/dom/server_timing.dart +++ b/web/lib/src/dom/server_timing.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/service_workers.dart b/web/lib/src/dom/service_workers.dart index 7f408970..6d38554a 100644 --- a/web/lib/src/dom/service_workers.dart +++ b/web/lib/src/dom/service_workers.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/speech_api.dart b/web/lib/src/dom/speech_api.dart index 6d4b03ec..6bf9ae44 100644 --- a/web/lib/src/dom/speech_api.dart +++ b/web/lib/src/dom/speech_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/storage.dart b/web/lib/src/dom/storage.dart index 744d6f46..54809ed6 100644 --- a/web/lib/src/dom/storage.dart +++ b/web/lib/src/dom/storage.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/streams.dart b/web/lib/src/dom/streams.dart index ef08e08c..acf2dfa1 100644 --- a/web/lib/src/dom/streams.dart +++ b/web/lib/src/dom/streams.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/svg.dart b/web/lib/src/dom/svg.dart index f5040511..465694c4 100644 --- a/web/lib/src/dom/svg.dart +++ b/web/lib/src/dom/svg.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/svg_animations.dart b/web/lib/src/dom/svg_animations.dart index 7fd2e112..94feb420 100644 --- a/web/lib/src/dom/svg_animations.dart +++ b/web/lib/src/dom/svg_animations.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/touch_events.dart b/web/lib/src/dom/touch_events.dart index ee81f2e0..ea60bfe5 100644 --- a/web/lib/src/dom/touch_events.dart +++ b/web/lib/src/dom/touch_events.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/trust_token_api.dart b/web/lib/src/dom/trust_token_api.dart index 2778655b..aa2ebab3 100644 --- a/web/lib/src/dom/trust_token_api.dart +++ b/web/lib/src/dom/trust_token_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/trusted_types.dart b/web/lib/src/dom/trusted_types.dart index 40a9afb3..12661488 100644 --- a/web/lib/src/dom/trusted_types.dart +++ b/web/lib/src/dom/trusted_types.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // @@ -195,25 +195,34 @@ extension type TrustedTypePolicy._(JSObject _) implements JSObject { /// a [TrustedHTML] object using a policy created by /// [TrustedTypePolicyFactory.createPolicy]. external TrustedHTML createHTML( - String input, - JSAny? arguments, - ); + String input, [ + JSAny? argument1, + JSAny? argument2, + JSAny? argument3, + JSAny? argument4, + ]); /// The **`createScript()`** method of the [TrustedTypePolicy] interface /// creates a [TrustedScript] object using a policy created by /// [TrustedTypePolicyFactory.createPolicy]. external TrustedScript createScript( - String input, - JSAny? arguments, - ); + String input, [ + JSAny? argument1, + JSAny? argument2, + JSAny? argument3, + JSAny? argument4, + ]); /// The **`createScriptURL()`** method of the [TrustedTypePolicy] interface /// creates a [TrustedScriptURL] object using a policy created by /// [TrustedTypePolicyFactory.createPolicy]. external TrustedScriptURL createScriptURL( - String input, - JSAny? arguments, - ); + String input, [ + JSAny? argument1, + JSAny? argument2, + JSAny? argument3, + JSAny? argument4, + ]); /// The **`name`** read-only property of the [TrustedTypePolicy] interface /// returns the name of the policy. diff --git a/web/lib/src/dom/uievents.dart b/web/lib/src/dom/uievents.dart index 5fd4f44f..f9000121 100644 --- a/web/lib/src/dom/uievents.dart +++ b/web/lib/src/dom/uievents.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/url.dart b/web/lib/src/dom/url.dart index 44cf2198..6f5c394d 100644 --- a/web/lib/src/dom/url.dart +++ b/web/lib/src/dom/url.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/user_timing.dart b/web/lib/src/dom/user_timing.dart index a0f4a3cd..d22fd0e9 100644 --- a/web/lib/src/dom/user_timing.dart +++ b/web/lib/src/dom/user_timing.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/vibration.dart b/web/lib/src/dom/vibration.dart index d20c97bf..f0184cdc 100644 --- a/web/lib/src/dom/vibration.dart +++ b/web/lib/src/dom/vibration.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/video_rvfc.dart b/web/lib/src/dom/video_rvfc.dart index 2695db3e..227dec12 100644 --- a/web/lib/src/dom/video_rvfc.dart +++ b/web/lib/src/dom/video_rvfc.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/wasm_js_api.dart b/web/lib/src/dom/wasm_js_api.dart index e8783177..44f2a5e3 100644 --- a/web/lib/src/dom/wasm_js_api.dart +++ b/web/lib/src/dom/wasm_js_api.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/web_animations.dart b/web/lib/src/dom/web_animations.dart index 95c082fc..01974229 100644 --- a/web/lib/src/dom/web_animations.dart +++ b/web/lib/src/dom/web_animations.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/web_animations_2.dart b/web/lib/src/dom/web_animations_2.dart index c8949d91..f1ccc0bc 100644 --- a/web/lib/src/dom/web_animations_2.dart +++ b/web/lib/src/dom/web_animations_2.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/web_bluetooth.dart b/web/lib/src/dom/web_bluetooth.dart index 7c1bd2d1..ed7d5942 100644 --- a/web/lib/src/dom/web_bluetooth.dart +++ b/web/lib/src/dom/web_bluetooth.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/web_locks.dart b/web/lib/src/dom/web_locks.dart index d7a44ebf..e90f4be9 100644 --- a/web/lib/src/dom/web_locks.dart +++ b/web/lib/src/dom/web_locks.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/web_otp.dart b/web/lib/src/dom/web_otp.dart index 40474ba4..8df0410f 100644 --- a/web/lib/src/dom/web_otp.dart +++ b/web/lib/src/dom/web_otp.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/web_share.dart b/web/lib/src/dom/web_share.dart index 1861fefa..86a76560 100644 --- a/web/lib/src/dom/web_share.dart +++ b/web/lib/src/dom/web_share.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webaudio.dart b/web/lib/src/dom/webaudio.dart index f5203802..68a45191 100644 --- a/web/lib/src/dom/webaudio.dart +++ b/web/lib/src/dom/webaudio.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webauthn.dart b/web/lib/src/dom/webauthn.dart index 353eb544..7ced2388 100644 --- a/web/lib/src/dom/webauthn.dart +++ b/web/lib/src/dom/webauthn.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webcodecs.dart b/web/lib/src/dom/webcodecs.dart index e4a411da..a6907b2e 100644 --- a/web/lib/src/dom/webcodecs.dart +++ b/web/lib/src/dom/webcodecs.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webcodecs_av1_codec_registration.dart b/web/lib/src/dom/webcodecs_av1_codec_registration.dart index 2125a6b3..466e8e4f 100644 --- a/web/lib/src/dom/webcodecs_av1_codec_registration.dart +++ b/web/lib/src/dom/webcodecs_av1_codec_registration.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webcodecs_avc_codec_registration.dart b/web/lib/src/dom/webcodecs_avc_codec_registration.dart index 58391d86..85422cb7 100644 --- a/web/lib/src/dom/webcodecs_avc_codec_registration.dart +++ b/web/lib/src/dom/webcodecs_avc_codec_registration.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webcodecs_hevc_codec_registration.dart b/web/lib/src/dom/webcodecs_hevc_codec_registration.dart index bbc31d3e..9bcebbaf 100644 --- a/web/lib/src/dom/webcodecs_hevc_codec_registration.dart +++ b/web/lib/src/dom/webcodecs_hevc_codec_registration.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webcodecs_vp9_codec_registration.dart b/web/lib/src/dom/webcodecs_vp9_codec_registration.dart index 9297ffa1..d27fbd68 100644 --- a/web/lib/src/dom/webcodecs_vp9_codec_registration.dart +++ b/web/lib/src/dom/webcodecs_vp9_codec_registration.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webcryptoapi.dart b/web/lib/src/dom/webcryptoapi.dart index 488e69e8..8f39c688 100644 --- a/web/lib/src/dom/webcryptoapi.dart +++ b/web/lib/src/dom/webcryptoapi.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl1.dart b/web/lib/src/dom/webgl1.dart index c2afe0df..4367c757 100644 --- a/web/lib/src/dom/webgl1.dart +++ b/web/lib/src/dom/webgl1.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl2.dart b/web/lib/src/dom/webgl2.dart index 8ca9a843..6a274b64 100644 --- a/web/lib/src/dom/webgl2.dart +++ b/web/lib/src/dom/webgl2.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_color_buffer_float.dart b/web/lib/src/dom/webgl_color_buffer_float.dart index 18dd9b9a..0ec52c54 100644 --- a/web/lib/src/dom/webgl_color_buffer_float.dart +++ b/web/lib/src/dom/webgl_color_buffer_float.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_compressed_texture_astc.dart b/web/lib/src/dom/webgl_compressed_texture_astc.dart index 9405d120..418eb95e 100644 --- a/web/lib/src/dom/webgl_compressed_texture_astc.dart +++ b/web/lib/src/dom/webgl_compressed_texture_astc.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_compressed_texture_etc.dart b/web/lib/src/dom/webgl_compressed_texture_etc.dart index 0382ef28..54a3ee08 100644 --- a/web/lib/src/dom/webgl_compressed_texture_etc.dart +++ b/web/lib/src/dom/webgl_compressed_texture_etc.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_compressed_texture_etc1.dart b/web/lib/src/dom/webgl_compressed_texture_etc1.dart index 69e2efda..7b1590c0 100644 --- a/web/lib/src/dom/webgl_compressed_texture_etc1.dart +++ b/web/lib/src/dom/webgl_compressed_texture_etc1.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_compressed_texture_pvrtc.dart b/web/lib/src/dom/webgl_compressed_texture_pvrtc.dart index 1d0501bb..4eecb05f 100644 --- a/web/lib/src/dom/webgl_compressed_texture_pvrtc.dart +++ b/web/lib/src/dom/webgl_compressed_texture_pvrtc.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_compressed_texture_s3tc.dart b/web/lib/src/dom/webgl_compressed_texture_s3tc.dart index 21d20fe4..f47f8b92 100644 --- a/web/lib/src/dom/webgl_compressed_texture_s3tc.dart +++ b/web/lib/src/dom/webgl_compressed_texture_s3tc.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_compressed_texture_s3tc_srgb.dart b/web/lib/src/dom/webgl_compressed_texture_s3tc_srgb.dart index e99927f9..a2b1f953 100644 --- a/web/lib/src/dom/webgl_compressed_texture_s3tc_srgb.dart +++ b/web/lib/src/dom/webgl_compressed_texture_s3tc_srgb.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_debug_renderer_info.dart b/web/lib/src/dom/webgl_debug_renderer_info.dart index c65cdced..e97c285a 100644 --- a/web/lib/src/dom/webgl_debug_renderer_info.dart +++ b/web/lib/src/dom/webgl_debug_renderer_info.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_debug_shaders.dart b/web/lib/src/dom/webgl_debug_shaders.dart index 4fb5cafc..26339b42 100644 --- a/web/lib/src/dom/webgl_debug_shaders.dart +++ b/web/lib/src/dom/webgl_debug_shaders.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_depth_texture.dart b/web/lib/src/dom/webgl_depth_texture.dart index 0865af33..1c415673 100644 --- a/web/lib/src/dom/webgl_depth_texture.dart +++ b/web/lib/src/dom/webgl_depth_texture.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_draw_buffers.dart b/web/lib/src/dom/webgl_draw_buffers.dart index 05a8221b..9b9ba4e7 100644 --- a/web/lib/src/dom/webgl_draw_buffers.dart +++ b/web/lib/src/dom/webgl_draw_buffers.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_lose_context.dart b/web/lib/src/dom/webgl_lose_context.dart index fe0d7caf..1b04a3c9 100644 --- a/web/lib/src/dom/webgl_lose_context.dart +++ b/web/lib/src/dom/webgl_lose_context.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgl_multi_draw.dart b/web/lib/src/dom/webgl_multi_draw.dart index aabd734d..432e1ec5 100644 --- a/web/lib/src/dom/webgl_multi_draw.dart +++ b/web/lib/src/dom/webgl_multi_draw.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webgpu.dart b/web/lib/src/dom/webgpu.dart index b338c1e1..4c2570d6 100644 --- a/web/lib/src/dom/webgpu.dart +++ b/web/lib/src/dom/webgpu.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webidl.dart b/web/lib/src/dom/webidl.dart index 7f202225..d028430b 100644 --- a/web/lib/src/dom/webidl.dart +++ b/web/lib/src/dom/webidl.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webmidi.dart b/web/lib/src/dom/webmidi.dart index c8ff744a..6bc4329f 100644 --- a/web/lib/src/dom/webmidi.dart +++ b/web/lib/src/dom/webmidi.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webrtc.dart b/web/lib/src/dom/webrtc.dart index be7e8913..44e10e74 100644 --- a/web/lib/src/dom/webrtc.dart +++ b/web/lib/src/dom/webrtc.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // @@ -379,9 +379,12 @@ extension type RTCPeerConnection._(JSObject _) /// > [Starting negotiation](https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Signaling_and_video_calling#starting_negotiation) /// > for details. external RTCRtpSender addTrack( - MediaStreamTrack track, - MediaStream streams, - ); + MediaStreamTrack track, [ + MediaStream stream1, + MediaStream stream2, + MediaStream stream3, + MediaStream stream4, + ]); /// The **`removeTrack()`** method of the [RTCPeerConnection] interface tells /// the local end of the connection to stop sending media from the specified @@ -1142,7 +1145,12 @@ extension type RTCRtpSender._(JSObject _) implements JSObject { /// The [RTCRtpSender] method **`setStreams()`** associates the sender's /// [RTCRtpSender.track] with the specified [MediaStream] objects. - external void setStreams(MediaStream streams); + external void setStreams([ + MediaStream stream1, + MediaStream stream2, + MediaStream stream3, + MediaStream stream4, + ]); /// The [RTCRtpSender] method **`getStats()`** asynchronously requests an /// [RTCStatsReport] object which provides statistics about outgoing traffic diff --git a/web/lib/src/dom/webrtc_encoded_transform.dart b/web/lib/src/dom/webrtc_encoded_transform.dart index 6864f0e3..3c5d1518 100644 --- a/web/lib/src/dom/webrtc_encoded_transform.dart +++ b/web/lib/src/dom/webrtc_encoded_transform.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webrtc_identity.dart b/web/lib/src/dom/webrtc_identity.dart index 007c4d22..bc11624d 100644 --- a/web/lib/src/dom/webrtc_identity.dart +++ b/web/lib/src/dom/webrtc_identity.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webrtc_priority.dart b/web/lib/src/dom/webrtc_priority.dart index 55decfcc..1fb22d11 100644 --- a/web/lib/src/dom/webrtc_priority.dart +++ b/web/lib/src/dom/webrtc_priority.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/websockets.dart b/web/lib/src/dom/websockets.dart index 3d54f586..2eea1b06 100644 --- a/web/lib/src/dom/websockets.dart +++ b/web/lib/src/dom/websockets.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webtransport.dart b/web/lib/src/dom/webtransport.dart index 58fd9721..4dfb76f5 100644 --- a/web/lib/src/dom/webtransport.dart +++ b/web/lib/src/dom/webtransport.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webvtt.dart b/web/lib/src/dom/webvtt.dart index c08bed2b..bd4be40e 100644 --- a/web/lib/src/dom/webvtt.dart +++ b/web/lib/src/dom/webvtt.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webxr.dart b/web/lib/src/dom/webxr.dart index f23bbf7a..8678a4f6 100644 --- a/web/lib/src/dom/webxr.dart +++ b/web/lib/src/dom/webxr.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/webxr_hand_input.dart b/web/lib/src/dom/webxr_hand_input.dart index ef0ff454..807ca6b9 100644 --- a/web/lib/src/dom/webxr_hand_input.dart +++ b/web/lib/src/dom/webxr_hand_input.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web/lib/src/dom/xhr.dart b/web/lib/src/dom/xhr.dart index d026f878..b73da953 100644 --- a/web/lib/src/dom/xhr.dart +++ b/web/lib/src/dom/xhr.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // diff --git a/web_generator/lib/src/banned_names.dart b/web_generator/lib/src/banned_names.dart index e6e2d0ee..344dee9c 100644 --- a/web_generator/lib/src/banned_names.dart +++ b/web_generator/lib/src/banned_names.dart @@ -15,8 +15,11 @@ const bannedNames = { /// Given a [jsName], returns the allowed Dart equivalent accounting for invalid /// characters and reserved keywords. -String dartRename(String jsName) { +String dartRename(String jsName, [bool toSingleForm = false]) { var dartName = jsName.replaceAll('-', '_'); + if (toSingleForm && dartName.length > 2 && dartName.endsWith('s')) { + dartName = dartName.substring(0, dartName.length - 1); + } if (bannedNames.contains(dartName)) { dartName = '${dartName}_'; } diff --git a/web_generator/lib/src/translator.dart b/web_generator/lib/src/translator.dart index ef58c04a..5cd71203 100644 --- a/web_generator/lib/src/translator.dart +++ b/web_generator/lib/src/translator.dart @@ -273,12 +273,13 @@ class _Parameter { final Set _names; final _RawType type; bool isOptional; + bool isVariadic; late final String name = _generateName(); - _Parameter._(this._names, this.type, this.isOptional); + _Parameter._(this._names, this.type, this.isOptional, this.isVariadic); - factory _Parameter(idl.Argument argument) => _Parameter._( - {argument.name}, _getRawType(argument.idlType), argument.optional); + factory _Parameter(idl.Argument argument) => _Parameter._({argument.name}, + _getRawType(argument.idlType), argument.optional, argument.variadic); String _generateName() { final namesList = _names.toList(); @@ -296,6 +297,9 @@ class _Parameter { if (argument.optional) { isOptional = true; } + if (argument.variadic) { + isVariadic = true; + } } } @@ -937,13 +941,22 @@ class Translator { final requiredParameters = []; final optionalParameters = []; for (final rawParameter in member.parameters) { - final parameter = code.Parameter((b) => b - ..name = dartRename(rawParameter.name) - ..type = _typeReference(rawParameter.type)); - if (rawParameter.isOptional) { - optionalParameters.add(parameter); + final type = _typeReference(rawParameter.type); + if (rawParameter.isVariadic) { + for (var i = 0; i < 4; i++) { + optionalParameters.add(code.Parameter((b) => b + ..name = '${dartRename(rawParameter.name, true)}${i + 1}' + ..type = type)); + } } else { - requiredParameters.add(parameter); + final parameter = code.Parameter((b) => b + ..name = dartRename(rawParameter.name) + ..type = type); + if (rawParameter.isOptional) { + optionalParameters.add(parameter); + } else { + requiredParameters.add(parameter); + } } } return generator(requiredParameters, optionalParameters); From 540d83949a218ccc018f1d6142f54516cfcb3b7e Mon Sep 17 00:00:00 2001 From: Olzhas Suleimen Date: Fri, 21 Feb 2025 23:20:26 +0500 Subject: [PATCH 2/3] Update CHANGELOG.md. --- web/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index 829f98fd..f67af45a 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -3,7 +3,7 @@ `onLoadStart`, `onProgress`. - Removed renames `UnderlyingSource` and `UnderlyingSourceBase` where the types don't exist. -- Add variadic arguments. +- Fixed generation of variadic arguments to generate 4 optional parameters. ## 1.1.0 From a183fa3396009f5b068a2cd75124891a270441a0 Mon Sep 17 00:00:00 2001 From: Olzhas Suleimen Date: Tue, 25 Feb 2025 17:57:58 +0500 Subject: [PATCH 3/3] Update version. --- web/CHANGELOG.md | 2 +- web/pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index f67af45a..6bb16bca 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.2.0-wip +## 2.0.0-wip - Added missing `FileReader` event getters: `onAbort`, `onError`, `onLoad`, `onLoadStart`, `onProgress`. - Removed renames `UnderlyingSource` and `UnderlyingSourceBase` where the types diff --git a/web/pubspec.yaml b/web/pubspec.yaml index 39a5078a..b1c308ba 100644 --- a/web/pubspec.yaml +++ b/web/pubspec.yaml @@ -1,5 +1,5 @@ name: web -version: 1.2.0-wip +version: 2.0.0-wip description: Lightweight browser API bindings built around JS interop. repository: https://github.com/dart-lang/web