Version 2.10.0-88.0.dev
Merge commit '1f92293fd583a58418d62ae6c93c00a2dfb3bca5' into 'dev'
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index dea69af..0d5160f 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -665,7 +665,7 @@
set effect(AnimationEffectReadOnly? value) native;
Future<Animation> get finished =>
- promiseToFuture<Animation>(JS("creates:Animation;", "#.finished", this));
+ promiseToFuture<Animation>(JS("", "#.finished", this));
String? get id native;
@@ -678,7 +678,7 @@
set playbackRate(num? value) native;
Future<Animation> get ready =>
- promiseToFuture<Animation>(JS("creates:Animation;", "#.ready", this));
+ promiseToFuture<Animation>(JS("", "#.ready", this));
num? get startTime native;
@@ -1354,18 +1354,13 @@
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFuture<BackgroundFetchRegistration>(JS(
- "creates:BackgroundFetchRegistration;",
- "#.fetch(#, #, #)",
- this,
- id,
- requests,
- options_dict));
+ return promiseToFuture<BackgroundFetchRegistration>(
+ JS("", "#.fetch(#, #, #)", this, id, requests, options_dict));
}
Future<BackgroundFetchRegistration> get(String id) =>
promiseToFuture<BackgroundFetchRegistration>(
- JS("creates:BackgroundFetchRegistration;", "#.get(#)", this, id));
+ JS("", "#.get(#)", this, id));
Future<List<dynamic>> getIds() =>
promiseToFuture<List<dynamic>>(JS("", "#.getIds()", this));
@@ -1681,11 +1676,10 @@
Future arrayBuffer() => promiseToFuture(JS("", "#.arrayBuffer()", this));
- Future<Blob> blob() =>
- promiseToFuture<Blob>(JS("creates:Blob;", "#.blob()", this));
+ Future<Blob> blob() => promiseToFuture<Blob>(JS("", "#.blob()", this));
Future<FormData> formData() =>
- promiseToFuture<FormData>(JS("creates:FormData;", "#.formData()", this));
+ promiseToFuture<FormData>(JS("", "#.formData()", this));
Future json() => promiseToFuture(JS("", "#.json()", this));
@@ -2020,17 +2014,17 @@
Future keys() => promiseToFuture(JS("", "#.keys()", this));
- Future<_Response> match(/*RequestInfo*/ request, [Map? options]) {
+ Future match(/*RequestInfo*/ request, [Map? options]) {
var options_dict = null;
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFuture<_Response>(
- JS("creates:_Response;", "#.match(#, #)", this, request, options_dict));
+ return promiseToFuture(
+ JS("", "#.match(#, #)", this, request, options_dict));
}
- Future<_Cache> open(String cacheName) => promiseToFuture<_Cache>(
- JS("creates:_Cache;", "#.open(#)", this, cacheName));
+ Future open(String cacheName) =>
+ promiseToFuture(JS("", "#.open(#)", this, cacheName));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -3071,8 +3065,8 @@
JS("", "#.matchAll(#)", this, options_dict));
}
- Future<WindowClient> openWindow(String url) => promiseToFuture<WindowClient>(
- JS("creates:WindowClient;", "#.openWindow(#)", this, url));
+ Future<WindowClient> openWindow(String url) =>
+ promiseToFuture<WindowClient>(JS("", "#.openWindow(#)", this, url));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -3235,12 +3229,12 @@
throw new UnsupportedError("Not supported");
}
- Future<Map<String, dynamic>?> getAll([Map? options]) {
+ Future getAll([Map? options]) {
var options_dict = null;
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFutureAsMap(JS("", "#.getAll(#)", this, options_dict));
+ return promiseToFuture(JS("", "#.getAll(#)", this, options_dict));
}
Future set(String name, String value, [Map? options]) {
@@ -3319,22 +3313,20 @@
throw new UnsupportedError("Not supported");
}
- Future<Credential> create([Map? options]) {
+ Future create([Map? options]) {
var options_dict = null;
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFuture<Credential>(
- JS("creates:Credential;", "#.create(#)", this, options_dict));
+ return promiseToFuture(JS("", "#.create(#)", this, options_dict));
}
- Future<Credential> get([Map? options]) {
+ Future get([Map? options]) {
var options_dict = null;
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFuture<Credential>(
- JS("creates:Credential;", "#.get(#)", this, options_dict));
+ return promiseToFuture(JS("", "#.get(#)", this, options_dict));
}
Future preventSilentAccess() =>
@@ -3343,9 +3335,8 @@
Future requireUserMediation() =>
promiseToFuture(JS("", "#.requireUserMediation()", this));
- Future<Credential> store(Credential credential) =>
- promiseToFuture<Credential>(
- JS("creates:Credential;", "#.store(#)", this, credential));
+ Future store(Credential credential) =>
+ promiseToFuture(JS("", "#.store(#)", this, credential));
}
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -16497,7 +16488,7 @@
set featureSettings(String? value) native;
Future<FontFace> get loaded =>
- promiseToFuture<FontFace>(JS("creates:FontFace;", "#.loaded", this));
+ promiseToFuture<FontFace>(JS("", "#.loaded", this));
String? get status native;
@@ -16522,7 +16513,7 @@
set weight(String? value) native;
Future<FontFace> load() =>
- promiseToFuture<FontFace>(JS("creates:FontFace;", "#.load()", this));
+ promiseToFuture<FontFace>(JS("", "#.load()", this));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -18873,13 +18864,13 @@
Future<PhotoCapabilities> getPhotoCapabilities() =>
promiseToFuture<PhotoCapabilities>(
- JS("creates:PhotoCapabilities;", "#.getPhotoCapabilities()", this));
+ JS("", "#.getPhotoCapabilities()", this));
Future<Map<String, dynamic>?> getPhotoSettings() =>
promiseToFutureAsMap(JS("", "#.getPhotoSettings()", this));
- Future<ImageBitmap> grabFrame() => promiseToFuture<ImageBitmap>(
- JS("creates:ImageBitmap;", "#.grabFrame()", this));
+ Future<ImageBitmap> grabFrame() =>
+ promiseToFuture<ImageBitmap>(JS("", "#.grabFrame()", this));
Future setOptions(Map photoSettings) {
var photoSettings_dict = convertDartToNative_Dictionary(photoSettings);
@@ -18892,7 +18883,7 @@
photoSettings_dict = convertDartToNative_Dictionary(photoSettings);
}
return promiseToFuture<Blob>(
- JS("creates:Blob;", "#.takePhoto(#)", this, photoSettings_dict));
+ JS("", "#.takePhoto(#)", this, photoSettings_dict));
}
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
@@ -20477,20 +20468,14 @@
Future<MediaCapabilitiesInfo> decodingInfo(Map configuration) {
var configuration_dict = convertDartToNative_Dictionary(configuration);
- return promiseToFuture<MediaCapabilitiesInfo>(JS(
- "creates:MediaCapabilitiesInfo;",
- "#.decodingInfo(#)",
- this,
- configuration_dict));
+ return promiseToFuture<MediaCapabilitiesInfo>(
+ JS("", "#.decodingInfo(#)", this, configuration_dict));
}
Future<MediaCapabilitiesInfo> encodingInfo(Map configuration) {
var configuration_dict = convertDartToNative_Dictionary(configuration);
- return promiseToFuture<MediaCapabilitiesInfo>(JS(
- "creates:MediaCapabilitiesInfo;",
- "#.encodingInfo(#)",
- this,
- configuration_dict));
+ return promiseToFuture<MediaCapabilitiesInfo>(
+ JS("", "#.encodingInfo(#)", this, configuration_dict));
}
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -20555,8 +20540,8 @@
if (constraints != null) {
constraints_dict = convertDartToNative_Dictionary(constraints);
}
- return promiseToFuture<MediaStream>(JS(
- "creates:MediaStream;", "#.getUserMedia(#)", this, constraints_dict));
+ return promiseToFuture<MediaStream>(
+ JS("", "#.getUserMedia(#)", this, constraints_dict));
}
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -20863,8 +20848,8 @@
String? get keySystem native;
- Future<MediaKeys> createMediaKeys() => promiseToFuture<MediaKeys>(
- JS("creates:MediaKeys;", "#.createMediaKeys()", this));
+ Future createMediaKeys() =>
+ promiseToFuture(JS("", "#.createMediaKeys()", this));
Map getConfiguration() {
return convertNativeToDart_Dictionary(_getConfiguration_1())!;
@@ -20887,8 +20872,8 @@
@JSName('createSession')
MediaKeySession _createSession([String? sessionType]) native;
- Future<String> getStatusForPolicy(MediaKeysPolicy policy) =>
- promiseToFuture<String>(JS("", "#.getStatusForPolicy(#)", this, policy));
+ Future getStatusForPolicy(MediaKeysPolicy policy) =>
+ promiseToFuture(JS("", "#.getStatusForPolicy(#)", this, policy));
Future setServerCertificate(/*BufferSource*/ serverCertificate) =>
promiseToFuture(
@@ -21354,12 +21339,12 @@
String? get readyState native;
- Future<Map<String, dynamic>?> applyConstraints([Map? constraints]) {
+ Future applyConstraints([Map? constraints]) {
var constraints_dict = null;
if (constraints != null) {
constraints_dict = convertDartToNative_Dictionary(constraints);
}
- return promiseToFutureAsMap(
+ return promiseToFuture(
JS("", "#.applyConstraints(#)", this, constraints_dict));
}
@@ -22756,11 +22741,10 @@
List<Gamepad?> _getGamepads() native;
Future<RelatedApplication> getInstalledRelatedApps() =>
- promiseToFuture<RelatedApplication>(JS(
- "creates:RelatedApplication;", "#.getInstalledRelatedApps()", this));
+ promiseToFuture<RelatedApplication>(
+ JS("", "#.getInstalledRelatedApps()", this));
- Future<List<VRDisplay>> getVRDisplays() => promiseToFuture<List<VRDisplay>>(
- JS("creates:VRDisplay;", "#.getVRDisplays()", this));
+ Future getVRDisplays() => promiseToFuture(JS("", "#.getVRDisplays()", this));
@Unstable()
void registerProtocolHandler(String scheme, String url, String title) native;
@@ -22790,14 +22774,10 @@
JS("", "#.requestMIDIAccess(#)", this, options_dict));
}
- Future<MediaKeySystemAccess> requestMediaKeySystemAccess(
+ Future requestMediaKeySystemAccess(
String keySystem, List<Map> supportedConfigurations) =>
- promiseToFuture<MediaKeySystemAccess>(JS(
- "creates:MediaKeySystemAccess;",
- "#.requestMediaKeySystemAccess(#, #)",
- this,
- keySystem,
- supportedConfigurations));
+ promiseToFuture(JS("", "#.requestMediaKeySystemAccess(#, #)", this,
+ keySystem, supportedConfigurations));
bool sendBeacon(String url, Object? data) native;
@@ -24001,7 +23981,7 @@
options_dict = convertDartToNative_Dictionary(options);
}
return promiseToFuture<Blob>(
- JS("creates:Blob;", "#.convertToBlob(#)", this, options_dict));
+ JS("", "#.convertToBlob(#)", this, options_dict));
}
Object? getContext(String contextType, [Map? attributes]) {
@@ -25010,8 +24990,8 @@
Future<bool> canMakePayment() =>
promiseToFuture<bool>(JS("", "#.canMakePayment()", this));
- Future<PaymentResponse> show() => promiseToFuture<PaymentResponse>(
- JS("creates:PaymentResponse;", "#.show()", this));
+ Future<PaymentResponse> show() =>
+ promiseToFuture<PaymentResponse>(JS("", "#.show()", this));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -25049,8 +25029,8 @@
Object? get total native;
- Future<WindowClient> openWindow(String url) => promiseToFuture<WindowClient>(
- JS("creates:WindowClient;", "#.openWindow(#)", this, url));
+ Future<WindowClient> openWindow(String url) =>
+ promiseToFuture<WindowClient>(JS("", "#.openWindow(#)", this, url));
void respondWith(Future response) native;
}
@@ -25483,23 +25463,23 @@
Future<PermissionStatus> query(Map permission) {
var permission_dict = convertDartToNative_Dictionary(permission);
return promiseToFuture<PermissionStatus>(
- JS("creates:PermissionStatus;", "#.query(#)", this, permission_dict));
+ JS("", "#.query(#)", this, permission_dict));
}
Future<PermissionStatus> request(Map permissions) {
var permissions_dict = convertDartToNative_Dictionary(permissions);
- return promiseToFuture<PermissionStatus>(JS(
- "creates:PermissionStatus;", "#.request(#)", this, permissions_dict));
+ return promiseToFuture<PermissionStatus>(
+ JS("", "#.request(#)", this, permissions_dict));
}
Future<PermissionStatus> requestAll(List<Map> permissions) =>
- promiseToFuture<PermissionStatus>(JS(
- "creates:PermissionStatus;", "#.requestAll(#)", this, permissions));
+ promiseToFuture<PermissionStatus>(
+ JS("", "#.requestAll(#)", this, permissions));
Future<PermissionStatus> revoke(Map permission) {
var permission_dict = convertDartToNative_Dictionary(permission);
return promiseToFuture<PermissionStatus>(
- JS("creates:PermissionStatus;", "#.revoke(#)", this, permission_dict));
+ JS("", "#.revoke(#)", this, permission_dict));
}
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -25918,7 +25898,7 @@
Future<PresentationConnectionList> get connectionList =>
promiseToFuture<PresentationConnectionList>(
- JS("creates:PresentationConnectionList;", "#.connectionList", this));
+ JS("", "#.connectionList", this));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25948,15 +25928,14 @@
Future<PresentationAvailability> getAvailability() =>
promiseToFuture<PresentationAvailability>(
- JS("creates:PresentationAvailability;", "#.getAvailability()", this));
+ JS("", "#.getAvailability()", this));
Future<PresentationConnection> reconnect(String id) =>
promiseToFuture<PresentationConnection>(
- JS("creates:PresentationConnection;", "#.reconnect(#)", this, id));
+ JS("", "#.reconnect(#)", this, id));
Future<PresentationConnection> start() =>
- promiseToFuture<PresentationConnection>(
- JS("creates:PresentationConnection;", "#.start()", this));
+ promiseToFuture<PresentationConnection>(JS("", "#.start()", this));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -26123,8 +26102,7 @@
static List<String>? get supportedContentEncodings native;
Future<PushSubscription> getSubscription() =>
- promiseToFuture<PushSubscription>(
- JS("creates:PushSubscription;", "#.getSubscription()", this));
+ promiseToFuture<PushSubscription>(JS("", "#.getSubscription()", this));
Future permissionState([Map? options]) {
var options_dict = null;
@@ -26140,7 +26118,7 @@
options_dict = convertDartToNative_Dictionary(options);
}
return promiseToFuture<PushSubscription>(
- JS("creates:PushSubscription;", "#.subscribe(#)", this, options_dict));
+ JS("", "#.subscribe(#)", this, options_dict));
}
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -26958,11 +26936,8 @@
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFuture<RtcSessionDescription>(JS(
- "creates:RtcSessionDescription;",
- "#.createAnswer(#)",
- this,
- options_dict));
+ return promiseToFuture<RtcSessionDescription>(
+ JS("", "#.createAnswer(#)", this, options_dict));
}
@JSName('createDTMFSender')
@@ -26986,11 +26961,8 @@
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFuture<RtcSessionDescription>(JS(
- "creates:RtcSessionDescription;",
- "#.createOffer(#)",
- this,
- options_dict));
+ return promiseToFuture<RtcSessionDescription>(
+ JS("", "#.createOffer(#)", this, options_dict));
}
List<MediaStream> getLocalStreams() native;
@@ -27001,8 +26973,8 @@
List<RtcRtpSender> getSenders() native;
- Future<RtcStatsReport> getStats() => promiseToFuture<RtcStatsReport>(
- JS("creates:RTCStatsReport;", "#.getStats()", this));
+ Future<RtcStatsReport> getStats() =>
+ promiseToFuture<RtcStatsReport>(JS("", "#.getStats()", this));
void removeStream(MediaStream? stream) native;
@@ -27790,15 +27762,11 @@
ServiceWorker? get controller native;
Future<ServiceWorkerRegistration> get ready =>
- promiseToFuture<ServiceWorkerRegistration>(
- JS("creates:ServiceWorkerRegistration;", "#.ready", this));
+ promiseToFuture<ServiceWorkerRegistration>(JS("", "#.ready", this));
Future<ServiceWorkerRegistration> getRegistration([String? documentURL]) =>
- promiseToFuture<ServiceWorkerRegistration>(JS(
- "creates:ServiceWorkerRegistration;",
- "#.getRegistration(#)",
- this,
- documentURL));
+ promiseToFuture<ServiceWorkerRegistration>(
+ JS("", "#.getRegistration(#)", this, documentURL));
Future<List<dynamic>> getRegistrations() =>
promiseToFuture<List<dynamic>>(JS("", "#.getRegistrations()", this));
@@ -27808,12 +27776,8 @@
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFuture<ServiceWorkerRegistration>(JS(
- "creates:ServiceWorkerRegistration;",
- "#.register(#, #)",
- this,
- url,
- options_dict));
+ return promiseToFuture<ServiceWorkerRegistration>(
+ JS("", "#.register(#, #)", this, url, options_dict));
}
Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
@@ -31238,14 +31202,13 @@
Future end() => promiseToFuture(JS("", "#.end()", this));
- Future<VRFrameOfReference> requestFrameOfReference(String type,
- [Map? options]) {
+ Future requestFrameOfReference(String type, [Map? options]) {
var options_dict = null;
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFuture<VRFrameOfReference>(JS("creates:VRFrameOfReference;",
- "#.requestFrameOfReference(#, #)", this, type, options_dict));
+ return promiseToFuture(
+ JS("", "#.requestFrameOfReference(#, #)", this, type, options_dict));
}
Stream<Event> get onBlur => blurEvent.forTarget(this);
@@ -32886,13 +32849,12 @@
*/
bool confirm([String? message]) native;
- Future<_Response> fetch(/*RequestInfo*/ input, [Map? init]) {
+ Future fetch(/*RequestInfo*/ input, [Map? init]) {
var init_dict = null;
if (init != null) {
init_dict = convertDartToNative_Dictionary(init);
}
- return promiseToFuture<_Response>(
- JS("creates:_Response;", "#.fetch(#, #)", this, input, init_dict));
+ return promiseToFuture(JS("", "#.fetch(#, #)", this, input, init_dict));
}
/**
@@ -33797,11 +33759,11 @@
String? get visibilityState native;
- Future<WindowClient> focus() => promiseToFuture<WindowClient>(
- JS("creates:WindowClient;", "#.focus()", this));
+ Future<WindowClient> focus() =>
+ promiseToFuture<WindowClient>(JS("", "#.focus()", this));
- Future<WindowClient> navigate(String url) => promiseToFuture<WindowClient>(
- JS("creates:WindowClient;", "#.navigate(#)", this, url));
+ Future<WindowClient> navigate(String url) =>
+ promiseToFuture<WindowClient>(JS("", "#.navigate(#)", this, url));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -33956,13 +33918,12 @@
WorkerGlobalScope get self native;
- Future<_Response> fetch(/*RequestInfo*/ input, [Map? init]) {
+ Future fetch(/*RequestInfo*/ input, [Map? init]) {
var init_dict = null;
if (init != null) {
init_dict = convertDartToNative_Dictionary(init);
}
- return promiseToFuture<_Response>(
- JS("creates:_Response;", "#.fetch(#, #)", this, input, init_dict));
+ return promiseToFuture(JS("", "#.fetch(#, #)", this, input, init_dict));
}
void importScripts(String urls) native;
@@ -34373,8 +34334,8 @@
throw new UnsupportedError("Not supported");
}
- Future<BudgetState> getBudget() => promiseToFuture<BudgetState>(
- JS("creates:BudgetState;", "#.getBudget()", this));
+ Future<BudgetState> getBudget() =>
+ promiseToFuture<BudgetState>(JS("", "#.getBudget()", this));
Future<double> getCost(String operation) =>
promiseToFuture<double>(JS("", "#.getCost(#)", this, operation));
@@ -34414,8 +34375,8 @@
throw new UnsupportedError("Not supported");
}
- Future<DataTransfer> read() => promiseToFuture<DataTransfer>(
- JS("creates:DataTransfer;", "#.read()", this));
+ Future<DataTransfer> read() =>
+ promiseToFuture<DataTransfer>(JS("", "#.read()", this));
Future<String> readText() =>
promiseToFuture<String>(JS("", "#.readText()", this));
diff --git a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
index a12d2fe..da12ab3 100644
--- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
+++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
@@ -682,13 +682,8 @@
Future<AudioBuffer> decodeAudioData(ByteBuffer audioData,
[DecodeSuccessCallback? successCallback,
DecodeErrorCallback? errorCallback]) =>
- promiseToFuture<AudioBuffer>(JS(
- "creates:AudioBuffer;",
- "#.decodeAudioData(#, #, #)",
- this,
- audioData,
- successCallback,
- errorCallback));
+ promiseToFuture<AudioBuffer>(JS("", "#.decodeAudioData(#, #, #)", this,
+ audioData, successCallback, errorCallback));
Future resume() => promiseToFuture(JS("", "#.resume()", this));
}
@@ -1080,8 +1075,8 @@
int? get length native;
- Future<AudioBuffer> startRendering() => promiseToFuture<AudioBuffer>(
- JS("creates:AudioBuffer;", "#.startRendering()", this));
+ Future<AudioBuffer> startRendering() =>
+ promiseToFuture<AudioBuffer>(JS("", "#.startRendering()", this));
@JSName('suspend')
Future suspendFor(num suspendTime) =>
diff --git a/tools/VERSION b/tools/VERSION
index 9e0f585..2eff400 100644
--- a/tools/VERSION
+++ b/tools/VERSION
@@ -27,5 +27,5 @@
MAJOR 2
MINOR 10
PATCH 0
-PRERELEASE 87
+PRERELEASE 88
PRERELEASE_PATCH 0
\ No newline at end of file
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index a43b242..0761fe6 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -890,64 +890,53 @@
promise_attributes = monitored.Dict(
'systemhtml.promise_attr_type', {
"Animation.finished": {
- "type": "Animation",
- "creates": "Animation"
+ "type": "Animation"
},
"Animation.ready": {
- "type": "Animation",
- "creates": "Animation"
+ "type": "Animation"
},
"BeforeInstallPromptEvent.userChoice": {
"type": "dictionary"
},
"FontFace.loaded": {
- "type": "FontFace",
- "creates": "FontFace"
+ "type": "FontFace"
},
"FontFaceSet.ready": {
- "type": "FontFaceSet",
- "creates": "FontFaceSet"
+ "type": "FontFaceSet"
},
"MediaKeySession.closed": {
"type": "void"
},
"PresentationReceiver.connectionList": {
- "type": "PresentationConnectionList",
- "creates": "PresentationConnectionList"
+ "type": "PresentationConnectionList"
},
"ServiceWorkerContainer.ready": {
- "type": "ServiceWorkerRegistration",
- "creates": "ServiceWorkerRegistration"
+ "type": "ServiceWorkerRegistration"
},
})
promise_operations = monitored.Dict(
'systemhtml.promise_oper_type', {
"Clipboard.read": {
- "type": "DataTransfer",
- "creates": "DataTransfer"
+ "type": "DataTransfer"
},
"Clipboard.readText": {
"type": "String"
},
"FontFace.load": {
- "type": "FontFace",
- "creates": "FontFace"
+ "type": "FontFace"
},
"FontFaceSet.load": {
"type": "List<dynamic>"
},
"OffscreenCanvas.load": {
- "type": "Blob",
- "creates": "Blob"
+ "type": "Blob"
},
"BackgroundFetchManager.fetch": {
- "type": "BackgroundFetchRegistration",
- "creates": "BackgroundFetchRegistration"
+ "type": "BackgroundFetchRegistration"
},
"BackgroundFetchManager.get": {
- "type": "BackgroundFetchRegistration",
- "creates": "BackgroundFetchRegistration"
+ "type": "BackgroundFetchRegistration"
},
"BackgroundFetchManager.getIds": {
"type": "List<dynamic>"
@@ -962,60 +951,49 @@
"type": "double"
},
"BudgetService.getBudget": {
- "type": "BudgetState",
- "creates": "BudgetState"
+ "type": "BudgetState"
},
"BudgetService.reserve": {
"type": "bool"
},
"Body.blob": {
- "type": "Blob",
- "creates": "Blob"
+ "type": "Blob"
},
"Body.formData": {
- "type": "FormData",
- "creates": "FormData"
+ "type": "FormData"
},
"Body.text": {
"type": "String"
},
"ImageCapture.getPhotoCapabilities": {
- "type": "PhotoCapabilities",
- "creates": "PhotoCapabilities"
+ "type": "PhotoCapabilities"
},
"ImageCapture.getPhotoSettings": {
"type": "dictionary"
},
"ImageCapture.takePhoto": {
- "type": "Blob",
- "creates": "Blob"
+ "type": "Blob"
},
"ImageCapture.grabFrame": {
- "type": "ImageBitmap",
- "creates": "ImageBitmap"
+ "type": "ImageBitmap"
},
"Navigator.getInstalledRelatedApps": {
- "type": "RelatedApplication",
- "creates": "RelatedApplication"
+ "type": "RelatedApplication"
},
"OffscreenCanvas.convertToBlob": {
- "type": "Blob",
- "creates": "Blob"
+ "type": "Blob"
},
"MediaCapabilities.decodingInfo": {
- "type": "MediaCapabilitiesInfo",
- "creates": "MediaCapabilitiesInfo"
+ "type": "MediaCapabilitiesInfo"
},
"MediaCapabilities.encodingInfo": {
- "type": "MediaCapabilitiesInfo",
- "creates": "MediaCapabilitiesInfo"
+ "type": "MediaCapabilitiesInfo"
},
"MediaDevices.enumerateDevices": {
"type": "List<dynamic>"
},
"MediaDevices.getUserMedia": {
- "type": "MediaStream",
- "creates": "MediaStream"
+ "type": "MediaStream"
},
"ServiceWorkerRegistration.getNotifications": {
"type": "List<dynamic>"
@@ -1033,68 +1011,53 @@
"type": "bool"
},
"PaymentRequest.show": {
- "type": "PaymentResponse",
- "creates": "PaymentResponse"
+ "type": "PaymentResponse"
},
"PaymentRequest.canMakePayment": {
"type": "bool"
},
"PaymentRequestEvent.openWindow": {
- "type": "WindowClient",
- "creates": "WindowClient"
+ "type": "WindowClient"
},
"RTCPeerConnection.createOffer": {
- "type": "RtcSessionDescription",
- "creates": "RtcSessionDescription"
+ "type": "RtcSessionDescription"
},
"RTCPeerConnection.createAnswer": {
- "type": "RtcSessionDescription",
- "creates": "RtcSessionDescription"
+ "type": "RtcSessionDescription"
},
"RTCPeerConnection.getStats": {
"type": "RtcStatsReport",
- "maplike": "RTCStatsReport",
- "creates": "RTCStatsReport"
+ "maplike": "RTCStatsReport"
},
"RTCPeerConnection.generateCertificate": {
- "type": "RtcCertificate",
- "creates": "RtcCertificate"
+ "type": "RtcCertificate"
},
"Permissions.query": {
- "type": "PermissionStatus",
- "creates": "PermissionStatus"
+ "type": "PermissionStatus"
},
"Permissions.request": {
- "type": "PermissionStatus",
- "creates": "PermissionStatus"
+ "type": "PermissionStatus"
},
"Permissions.revoke": {
- "type": "PermissionStatus",
- "creates": "PermissionStatus"
+ "type": "PermissionStatus"
},
"Permissions.requestAll": {
- "type": "PermissionStatus",
- "creates": "PermissionStatus"
+ "type": "PermissionStatus"
},
"PresentationRequest.start": {
- "type": "PresentationConnection",
- "creates": "PresentationConnection"
+ "type": "PresentationConnection"
},
"PresentationRequest.reconnect": {
- "type": "PresentationConnection",
- "creates": "PresentationConnection"
+ "type": "PresentationConnection"
},
"PresentationRequest.getAvailability": {
- "type": "PresentationAvailability",
- "creates": "PresentationAvailability"
+ "type": "PresentationAvailability"
},
"PushManager.subscribe": {
- "type": "PushSubscription",
- "creates": "PushSubscription"
+ "type": "PushSubscription"
},
"PushManager.getSubscription": {
- "type": "PushSubscription",
- "creates": "PushSubscription"
+ "type": "PushSubscription"
},
"PushSubscription.unsubscribe": {
"type": "bool"
@@ -1115,37 +1078,31 @@
"type": "List<dynamic>"
},
"Clients.openWindow": {
- "type": "WindowClient",
- "creates": "WindowClient"
+ "type": "WindowClient"
},
"NavigationPreloadManager.getState": {
"type": "dictionary"
},
"ServiceWorkerContainer.register": {
- "type": "ServiceWorkerRegistration",
- "creates": "ServiceWorkerRegistration"
+ "type": "ServiceWorkerRegistration"
},
"ServiceWorkerContainer.getRegistration": {
- "type": "ServiceWorkerRegistration",
- "creates": "ServiceWorkerRegistration"
+ "type": "ServiceWorkerRegistration"
},
"ServiceWorkerContainer.getRegistrations": {
"type": "List<dynamic>"
},
"ServiceWorkerGlobalScope.fetch": {
- "type": "_Response",
- "creates": "_Response"
+ "type": "Response"
},
"ServiceWorkerRegistration.unregister": {
"type": "bool"
},
"WindowClient.focus": {
- "type": "WindowClient",
- "creates": "WindowClient"
+ "type": "WindowClient"
},
"WindowClient.navigate": {
- "type": "WindowClient",
- "creates": "WindowClient"
+ "type": "WindowClient"
},
"BarcodeDetector.detect": {
"type": "List<dynamic>"
@@ -1157,71 +1114,10 @@
"type": "List<dynamic>"
},
"BaseAudioContext.decodeAudioData": {
- "type": "AudioBuffer",
- "creates": "AudioBuffer"
+ "type": "AudioBuffer"
},
"OfflineAudioContext.startRendering": {
- "type": "AudioBuffer",
- "creates": "AudioBuffer"
- },
- "CacheStorage.match": {
- "type": "_Response",
- "creates": "_Response"
- },
- "CacheStorage.open": {
- "type": "_Cache",
- "creates": "_Cache"
- },
- "CookieStore.getAll": {
- "type": "dictionary"
- },
- "CredentialsContainer.create": {
- "type": "Credential",
- "creates": "Credential"
- },
- "CredentialsContainer.get": {
- "type": "Credential",
- "creates": "Credential"
- },
- "CredentialsContainer.store": {
- "type": "Credential",
- "creates": "Credential"
- },
- "FetchEvent.preloadResponse": {
- "type": "_Response",
- "creates": "_Response"
- },
- "MediaKeys.getStatusForPolicy": {
- # Actual return value is MediaKeyStatus, which is an IDL enum of
- # strings.
- "type": "String"
- },
- "MediaKeySystemAccess.createMediaKeys": {
- "type": "MediaKeys",
- "creates": "MediaKeys"
- },
- "MediaStreamTrack.applyConstraints": {
- "type": "dictionary"
- },
- "Navigator.getVRDisplays": {
- "type": "List<VRDisplay>",
- "creates": "VRDisplay"
- },
- "Navigator.requestMediaKeySystemAccess": {
- "type": "MediaKeySystemAccess",
- "creates": "MediaKeySystemAccess"
- },
- "VRSession.requestFrameOfReference": {
- "type": "VRFrameOfReference",
- "creates": "VRFrameOfReference"
- },
- "Window.fetch": {
- "type": "_Response",
- "creates": "_Response"
- },
- "WorkerGlobalScope.fetch": {
- "type": "_Response",
- "creates": "_Response"
+ "type": "AudioBuffer"
},
})
@@ -1596,7 +1492,6 @@
promiseFound = _GetPromiseAttributeType(lookupOp)
promiseType = 'Future'
promiseCall = 'promiseToFuture'
- type_description = ''
if promiseFound is not (None):
if 'maplike' in promiseFound:
promiseCall = 'promiseToFuture<dynamic>'
@@ -1615,14 +1510,10 @@
promiseCall = 'promiseToFuture<%s>' % paramType
promiseType = 'Future<%s>' % paramType
- if 'creates' in promiseFound:
- createsType = promiseFound['creates']
- type_description = 'creates:%s;' % createsType
-
if attribute.type.nullable:
promiseType += '?'
- template = '\n $RENAME$(ANNOTATIONS)$TYPE get $NAME => $PROMISE_CALL(JS("$TYPE_DESC", "#.$NAME", this));\n'
+ template = '\n $RENAME$(ANNOTATIONS)$TYPE get $NAME => $PROMISE_CALL(JS("", "#.$NAME", this));\n'
self._members_emitter.Emit(
template,
@@ -1630,8 +1521,7 @@
ANNOTATIONS=metadata,
TYPE=promiseType,
PROMISE_CALL=promiseCall,
- TYPE_DESC=type_description,
- NAME=html_name,)
+ NAME=html_name)
else:
# Need to use a getter for list.length properties so we can
# add a setter which throws an exception, satisfying List
@@ -1843,12 +1733,11 @@
return resultType
def _zeroArgs(self, argsNames):
- return 'JS("$TYPE_DESC", "#.$JSNAME()", this)'
+ return 'JS("", "#.$JSNAME()", this)'
def _manyArgs(self, numberArgs, argsNames):
argsPound = "#" if numberArgs == 1 else ("#, " * numberArgs)[:-2]
- template = ' JS("$TYPE_DESC", "#.$JSNAME(%s)", this, %s)'
- return template % (argsPound, argsNames)
+ return ' JS("", "#.$JSNAME(%s)", this, %s)' % (argsPound, argsNames)
""" If argument conversionsMapToDictionary is a list first entry is argument
name and second entry signals if argument is optional (True). """
@@ -1923,7 +1812,6 @@
promiseFound = _GetPromiseOperationType(lookupOp)
promiseType = 'Future'
promiseCall = 'promiseToFuture'
- type_description = ''
if promiseFound is not (None):
paramType = promiseFound['type']
if 'maplike' in promiseFound:
@@ -1946,10 +1834,6 @@
promiseCall = 'promiseToFuture<%s>' % paramType
promiseType = 'Future<%s>' % paramType
- if 'creates' in promiseFound:
- createsType = promiseFound['creates']
- type_description = 'creates:%s;' % createsType
-
argsNames = info.ParametersAsArgumentList()
dictionary_argument = info.dictionaryArgumentName()
codeTemplate = self._promiseToFutureCode(argsNames,
@@ -1967,7 +1851,6 @@
TYPE=promiseType,
PROMISE_CALL=promiseCall,
NAME=html_name,
- TYPE_DESC=type_description,
JSNAME=info.declared_name,
PARAMS=info.ParametersAsDeclaration(self._NarrowInputType,
force_optional))