Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 2871193002: New sdk/lib generated from Chrome 50 IDLs (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index e5866bb16e9421e9b65556667ea38a6c60ad46b6..751dc3de283b5ed34ba1be52975a41e31d550892 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -126,6 +126,16 @@ Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) {
}
createCustomUpgrader(Type customElementClass, $this) => $this;
+
+/**
+ * Emitted for any setlike IDL entry needs a callback signature.
+ * Today there is only one.
+ */
+@DomName('FontFaceSetForEachCallback')
+@Experimental() // untriaged
+typedef void FontFaceSetForEachCallback(
+ FontFace fontFace, FontFace fontFaceAgain, FontFaceSet set);
+
// Copyright (c) 2013, 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.
@@ -190,6 +200,11 @@ class AnchorElement extends HtmlElement implements UrlUtils {
@DocsEditable()
String hreflang;
+ @DomName('HTMLAnchorElement.referrerpolicy')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String referrerpolicy;
+
@DomName('HTMLAnchorElement.rel')
@DocsEditable()
String rel;
@@ -283,15 +298,15 @@ class Animation extends EventTarget {
@Experimental() // untriaged
AnimationEffectReadOnly effect;
- @DomName('Animation.endClip')
+ @DomName('Animation.finished')
@DocsEditable()
@Experimental() // untriaged
- num endClip;
+ final Future finished;
- @DomName('Animation.finished')
+ @DomName('Animation.id')
@DocsEditable()
@Experimental() // untriaged
- final Future finished;
+ String id;
@DomName('Animation.playState')
@DocsEditable()
@@ -308,11 +323,6 @@ class Animation extends EventTarget {
@Experimental() // untriaged
final Future ready;
- @DomName('Animation.startClip')
- @DocsEditable()
- @Experimental() // untriaged
- num startClip;
-
@DomName('Animation.startTime')
@DocsEditable()
@Experimental() // untriaged
@@ -860,6 +870,11 @@ class AreaElement extends HtmlElement implements UrlUtils {
@DocsEditable()
String coords;
+ @DomName('HTMLAreaElement.referrerpolicy')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String referrerpolicy;
+
@DomName('HTMLAreaElement.shape')
@DocsEditable()
String shape;
@@ -1289,6 +1304,43 @@ class Blob extends Interceptor {
// 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.
+// WARNING: Do not edit - generated code.
+
+@DomName('BlobCallback')
+@Experimental() // untriaged
+typedef void BlobCallback(Blob blob);
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('BlobEvent')
+@Experimental() // untriaged
+@Native("BlobEvent")
+class BlobEvent extends Event {
+ // To suppress missing implicit constructor warnings.
+ factory BlobEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('BlobEvent.BlobEvent')
+ @DocsEditable()
+ factory BlobEvent(String type, Map eventInitDict) {
+ var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
+ return BlobEvent._create_1(type, eventInitDict_1);
+ }
+ static BlobEvent _create_1(type, eventInitDict) =>
+ JS('BlobEvent', 'new BlobEvent(#,#)', type, eventInitDict);
+
+ @DomName('BlobEvent.data')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Blob data;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('Bluetooth')
@Experimental() // untriaged
@@ -1317,21 +1369,119 @@ class Bluetooth extends Interceptor {
// 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.
+@DocsEditable()
+@DomName('BluetoothAdvertisingData')
+@Experimental() // untriaged
+@Native("BluetoothAdvertisingData")
+class BluetoothAdvertisingData extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory BluetoothAdvertisingData._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('BluetoothAdvertisingData.rssi')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int rssi;
+
+ @DomName('BluetoothAdvertisingData.txPower')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int txPower;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('BluetoothCharacteristicProperties')
+@Experimental() // untriaged
+@Native("BluetoothCharacteristicProperties")
+class BluetoothCharacteristicProperties extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory BluetoothCharacteristicProperties._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('BluetoothCharacteristicProperties.authenticatedSignedWrites')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool authenticatedSignedWrites;
+
+ @DomName('BluetoothCharacteristicProperties.broadcast')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool broadcast;
+
+ @DomName('BluetoothCharacteristicProperties.indicate')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool indicate;
+
+ @DomName('BluetoothCharacteristicProperties.notify')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool notify;
+
+ @DomName('BluetoothCharacteristicProperties.read')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool read;
+
+ @DomName('BluetoothCharacteristicProperties.reliableWrite')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool reliableWrite;
+
+ @DomName('BluetoothCharacteristicProperties.writableAuxiliaries')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool writableAuxiliaries;
+
+ @DomName('BluetoothCharacteristicProperties.write')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool write;
+
+ @DomName('BluetoothCharacteristicProperties.writeWithoutResponse')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool writeWithoutResponse;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('BluetoothDevice')
@Experimental() // untriaged
@Native("BluetoothDevice")
-class BluetoothDevice extends Interceptor {
+class BluetoothDevice extends EventTarget {
// To suppress missing implicit constructor warnings.
factory BluetoothDevice._() {
throw new UnsupportedError("Not supported");
}
+ @DomName('BluetoothDevice.adData')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final BluetoothAdvertisingData adData;
+
@DomName('BluetoothDevice.deviceClass')
@DocsEditable()
@Experimental() // untriaged
final int deviceClass;
+ @DomName('BluetoothDevice.gatt')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final BluetoothRemoteGattServer gatt;
+
+ @DomName('BluetoothDevice.id')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String id;
+
@DomName('BluetoothDevice.instanceID')
@DocsEditable()
@Experimental() // untriaged
@@ -1342,11 +1492,6 @@ class BluetoothDevice extends Interceptor {
@Experimental() // untriaged
final String name;
- @DomName('BluetoothDevice.paired')
- @DocsEditable()
- @Experimental() // untriaged
- final bool paired;
-
@DomName('BluetoothDevice.productID')
@DocsEditable()
@Experimental() // untriaged
@@ -1378,26 +1523,46 @@ class BluetoothDevice extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('BluetoothGATTCharacteristic')
+@DomName('BluetoothRemoteGATTCharacteristic')
@Experimental() // untriaged
-@Native("BluetoothGATTCharacteristic")
-class BluetoothGattCharacteristic extends Interceptor {
+@Native("BluetoothRemoteGATTCharacteristic")
+class BluetoothRemoteGattCharacteristic extends EventTarget {
// To suppress missing implicit constructor warnings.
- factory BluetoothGattCharacteristic._() {
+ factory BluetoothRemoteGattCharacteristic._() {
throw new UnsupportedError("Not supported");
}
- @DomName('BluetoothGATTCharacteristic.uuid')
+ @DomName('BluetoothRemoteGATTCharacteristic.properties')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final BluetoothCharacteristicProperties properties;
+
+ @DomName('BluetoothRemoteGATTCharacteristic.uuid')
@DocsEditable()
@Experimental() // untriaged
final String uuid;
- @DomName('BluetoothGATTCharacteristic.readValue')
+ @DomName('BluetoothRemoteGATTCharacteristic.value')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final _DataView value;
+
+ @DomName('BluetoothRemoteGATTCharacteristic.readValue')
@DocsEditable()
@Experimental() // untriaged
Future readValue() native;
- @DomName('BluetoothGATTCharacteristic.writeValue')
+ @DomName('BluetoothRemoteGATTCharacteristic.startNotifications')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future startNotifications() native;
+
+ @DomName('BluetoothRemoteGATTCharacteristic.stopNotifications')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future stopNotifications() native;
+
+ @DomName('BluetoothRemoteGATTCharacteristic.writeValue')
@DocsEditable()
@Experimental() // untriaged
Future writeValue(/*BufferSource*/ value) native;
@@ -1407,21 +1572,36 @@ class BluetoothGattCharacteristic extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('BluetoothGATTRemoteServer')
+@DomName('BluetoothRemoteGATTServer')
@Experimental() // untriaged
-@Native("BluetoothGATTRemoteServer")
-class BluetoothGattRemoteServer extends Interceptor {
+@Native("BluetoothRemoteGATTServer")
+class BluetoothRemoteGattServer extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory BluetoothGattRemoteServer._() {
+ factory BluetoothRemoteGattServer._() {
throw new UnsupportedError("Not supported");
}
- @DomName('BluetoothGATTRemoteServer.connected')
+ @DomName('BluetoothRemoteGATTServer.connected')
@DocsEditable()
@Experimental() // untriaged
final bool connected;
- @DomName('BluetoothGATTRemoteServer.getPrimaryService')
+ @DomName('BluetoothRemoteGATTServer.device')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final BluetoothDevice device;
+
+ @DomName('BluetoothRemoteGATTServer.connect')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future connect() native;
+
+ @DomName('BluetoothRemoteGATTServer.disconnect')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void disconnect() native;
+
+ @DomName('BluetoothRemoteGATTServer.getPrimaryService')
@DocsEditable()
@Experimental() // untriaged
Future getPrimaryService(/*BluetoothServiceUUID*/ service) native;
@@ -1431,30 +1611,36 @@ class BluetoothGattRemoteServer extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('BluetoothGATTService')
+@DomName('BluetoothRemoteGATTService')
@Experimental() // untriaged
-@Native("BluetoothGATTService")
-class BluetoothGattService extends Interceptor {
+@Native("BluetoothRemoteGATTService")
+class BluetoothRemoteGattService extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory BluetoothGattService._() {
+ factory BluetoothRemoteGattService._() {
throw new UnsupportedError("Not supported");
}
- @DomName('BluetoothGATTService.isPrimary')
+ @DomName('BluetoothRemoteGATTService.isPrimary')
@DocsEditable()
@Experimental() // untriaged
final bool isPrimary;
- @DomName('BluetoothGATTService.uuid')
+ @DomName('BluetoothRemoteGATTService.uuid')
@DocsEditable()
@Experimental() // untriaged
final String uuid;
- @DomName('BluetoothGATTService.getCharacteristic')
+ @DomName('BluetoothRemoteGATTService.getCharacteristic')
@DocsEditable()
@Experimental() // untriaged
Future getCharacteristic(/*BluetoothCharacteristicUUID*/ characteristic)
native;
+
+ @DomName('BluetoothRemoteGATTService.getCharacteristics')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future getCharacteristics([/*BluetoothCharacteristicUUID*/ characteristic])
+ native;
}
// 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
@@ -1938,6 +2124,138 @@ class CacheStorage extends Interceptor {
// 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.
+@DocsEditable()
+@DomName('CalcLength')
+@Experimental() // untriaged
+@Native("CalcLength")
+class CalcLength extends LengthValue {
+ // To suppress missing implicit constructor warnings.
+ factory CalcLength._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('CalcLength.CalcLength')
+ @DocsEditable()
+ factory CalcLength(calcDictionary_OR_length) {
+ if ((calcDictionary_OR_length is LengthValue)) {
+ return CalcLength._create_1(calcDictionary_OR_length);
+ }
+ if ((calcDictionary_OR_length is Map)) {
+ var calcDictionary_1 =
+ convertDartToNative_Dictionary(calcDictionary_OR_length);
+ return CalcLength._create_2(calcDictionary_1);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
+ }
+ static CalcLength _create_1(calcDictionary_OR_length) =>
+ JS('CalcLength', 'new CalcLength(#)', calcDictionary_OR_length);
+ static CalcLength _create_2(calcDictionary_OR_length) =>
+ JS('CalcLength', 'new CalcLength(#)', calcDictionary_OR_length);
+
+ @DomName('CalcLength.ch')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double ch;
+
+ @DomName('CalcLength.cm')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double cm;
+
+ @DomName('CalcLength.em')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double em;
+
+ @DomName('CalcLength.ex')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double ex;
+
+ @JSName('in')
+ @DomName('CalcLength.in')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double inch;
+
+ @DomName('CalcLength.mm')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double mm;
+
+ @DomName('CalcLength.pc')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double pc;
+
+ @DomName('CalcLength.percent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double percent;
+
+ @DomName('CalcLength.pt')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double pt;
+
+ @DomName('CalcLength.px')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double px;
+
+ @DomName('CalcLength.rem')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double rem;
+
+ @DomName('CalcLength.vh')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double vh;
+
+ @DomName('CalcLength.vmax')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double vmax;
+
+ @DomName('CalcLength.vmin')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double vmin;
+
+ @DomName('CalcLength.vw')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double vw;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('CanvasCaptureMediaStreamTrack')
+@Experimental() // untriaged
+@Native("CanvasCaptureMediaStreamTrack")
+class CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
+ // To suppress missing implicit constructor warnings.
+ factory CanvasCaptureMediaStreamTrack._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('CanvasCaptureMediaStreamTrack.canvas')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final CanvasElement canvas;
+
+ @DomName('CanvasCaptureMediaStreamTrack.requestFrame')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void requestFrame() native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DomName('HTMLCanvasElement')
@Native("HTMLCanvasElement")
class CanvasElement extends HtmlElement implements CanvasImageSource {
@@ -1994,6 +2312,11 @@ class CanvasElement extends HtmlElement implements CanvasImageSource {
@DocsEditable()
int width;
+ @DomName('HTMLCanvasElement.captureStream')
+ @DocsEditable()
+ @Experimental() // untriaged
+ MediaStream captureStream([num frameRate]) native;
+
@DomName('HTMLCanvasElement.getContext')
@DocsEditable()
@Creates('CanvasRenderingContext2D|RenderingContext')
@@ -2019,6 +2342,11 @@ class CanvasElement extends HtmlElement implements CanvasImageSource {
@Returns('CanvasRenderingContext2D|RenderingContext|Null')
Object _getContext_2(contextId) native;
+ @DomName('HTMLCanvasElement.toBlob')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void toBlob(BlobCallback callback, String type, [Object arguments]) native;
+
@JSName('toDataURL')
@DomName('HTMLCanvasElement.toDataURL')
@DocsEditable()
@@ -2290,6 +2618,11 @@ class CanvasRenderingContext2D extends Interceptor
@Experimental() // untriaged
bool imageSmoothingEnabled;
+ @DomName('CanvasRenderingContext2D.imageSmoothingQuality')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String imageSmoothingQuality;
+
@DomName('CanvasRenderingContext2D.lineCap')
@DocsEditable()
String lineCap;
@@ -2965,16 +3298,6 @@ class CharacterData extends Node
// From ChildNode
- @DomName('CharacterData.after')
- @DocsEditable()
- @Experimental() // untriaged
- void after(Object nodes) native;
-
- @DomName('CharacterData.before')
- @DocsEditable()
- @Experimental() // untriaged
- void before(Object nodes) native;
-
// From NonDocumentTypeChildNode
@DomName('CharacterData.nextElementSibling')
@@ -2998,10 +3321,6 @@ abstract class ChildNode extends Interceptor {
throw new UnsupportedError("Not supported");
}
- void after(Object nodes);
-
- void before(Object nodes);
-
void remove();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -3140,6 +3459,11 @@ class Clients extends Interceptor {
@Experimental() // untriaged
Future claim() native;
+ @DomName('Clients.get')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future get(String id) native;
+
@DomName('Clients.matchAll')
@DocsEditable()
@Experimental() // untriaged
@@ -3748,61 +4072,37 @@ class CredentialsContainer extends Interceptor {
throw new UnsupportedError("Not supported");
}
- @DomName('CredentialsContainer.notifySignedIn')
- @DocsEditable()
- @Experimental() // untriaged
- Future notifySignedIn(Credential credential) native;
-
- @DomName('CredentialsContainer.request')
+ @DomName('CredentialsContainer.get')
@DocsEditable()
@Experimental() // untriaged
- Future request([Map options]) {
+ Future get([Map options]) {
if (options != null) {
var options_1 = convertDartToNative_Dictionary(options);
- return _request_1(options_1);
+ return _get_1(options_1);
}
- return _request_2();
+ return _get_2();
}
- @JSName('request')
- @DomName('CredentialsContainer.request')
+ @JSName('get')
+ @DomName('CredentialsContainer.get')
@DocsEditable()
@Experimental() // untriaged
- Future _request_1(options) native;
- @JSName('request')
- @DomName('CredentialsContainer.request')
+ Future _get_1(options) native;
+ @JSName('get')
+ @DomName('CredentialsContainer.get')
@DocsEditable()
@Experimental() // untriaged
- Future _request_2() native;
+ Future _get_2() native;
@DomName('CredentialsContainer.requireUserMediation')
@DocsEditable()
@Experimental() // untriaged
Future requireUserMediation() native;
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('CrossOriginConnectEvent')
-@Experimental() // untriaged
-@Native("CrossOriginConnectEvent")
-class CrossOriginConnectEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory CrossOriginConnectEvent._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('CrossOriginConnectEvent.client')
- @DocsEditable()
- @Experimental() // untriaged
- final CrossOriginServiceWorkerClient client;
- @DomName('CrossOriginConnectEvent.acceptConnection')
+ @DomName('CredentialsContainer.store')
@DocsEditable()
@Experimental() // untriaged
- void acceptConnection(Future shouldAccept) native;
+ Future store(Credential credential) native;
}
// 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
@@ -3940,6 +4240,11 @@ class Css extends Interceptor {
throw new UnsupportedError("Not supported");
}
+ @DomName('CSS.escape')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static String escape(String ident) native;
+
@DomName('CSS.supports')
@DocsEditable()
static bool supports(String property, String value) native;
@@ -4132,6 +4437,31 @@ class CssMediaRule extends CssGroupingRule {
// 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.
+@DocsEditable()
+@DomName('CSSNamespaceRule')
+@Experimental() // untriaged
+@Native("CSSNamespaceRule")
+class CssNamespaceRule extends CssRule {
+ // To suppress missing implicit constructor warnings.
+ factory CssNamespaceRule._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @JSName('namespaceURI')
+ @DomName('CSSNamespaceRule.namespaceURI')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String namespaceUri;
+
+ @DomName('CSSNamespaceRule.prefix')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String prefix;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('CSSPageRule')
@Native("CSSPageRule")
@@ -4188,6 +4518,11 @@ class CssRule extends Interceptor {
@DocsEditable()
static const int MEDIA_RULE = 4;
+ @DomName('CSSRule.NAMESPACE_RULE')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const int NAMESPACE_RULE = 10;
+
@DomName('CSSRule.PAGE_RULE')
@DocsEditable()
static const int PAGE_RULE = 6;
@@ -4342,6 +4677,11 @@ class CssStyleDeclaration extends Interceptor with CssStyleDeclarationBase {
throw new UnsupportedError("Not supported");
}
+ @DomName('CSSStyleDeclaration.cssFloat')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String cssFloat;
+
@DomName('CSSStyleDeclaration.cssText')
@DocsEditable()
String cssText;
@@ -8856,20 +9196,6 @@ class CustomEvent extends Event {
return _detail;
}
- @DomName('CustomEvent.CustomEvent')
- @DocsEditable()
- factory CustomEvent._(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return CustomEvent._create_1(type, eventInitDict_1);
- }
- return CustomEvent._create_2(type);
- }
- static CustomEvent _create_1(type, eventInitDict) =>
- JS('CustomEvent', 'new CustomEvent(#,#)', type, eventInitDict);
- static CustomEvent _create_2(type) =>
- JS('CustomEvent', 'new CustomEvent(#)', type);
-
@DomName('CustomEvent._detail')
@DocsEditable()
@Experimental() // untriaged
@@ -9149,6 +9475,16 @@ class DedicatedWorkerGlobalScope extends WorkerGlobalScope {
static const EventStreamProvider<MessageEvent> messageEvent =
const EventStreamProvider<MessageEvent>('message');
+ @DomName('DedicatedWorkerGlobalScope.PERSISTENT')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const int PERSISTENT = 1;
+
+ @DomName('DedicatedWorkerGlobalScope.TEMPORARY')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const int TEMPORARY = 0;
+
@DomName('DedicatedWorkerGlobalScope.postMessage')
@DocsEditable()
@Experimental() // untriaged
@@ -9174,47 +9510,51 @@ class DedicatedWorkerGlobalScope extends WorkerGlobalScope {
@Experimental() // untriaged
void _postMessage_2(message) native;
- /// Stream of `message` events handled by this [DedicatedWorkerGlobalScope].
- @DomName('DedicatedWorkerGlobalScope.onmessage')
+ @JSName('webkitRequestFileSystem')
+ @DomName('DedicatedWorkerGlobalScope.webkitRequestFileSystem')
@DocsEditable()
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
@Experimental() // untriaged
- Stream<MessageEvent> get onMessage => messageEvent.forTarget(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
-// BSD-style license that can be found in the LICENSE file.
+ void _webkitRequestFileSystem(int type, int size,
+ [_FileSystemCallback successCallback,
+ _ErrorCallback errorCallback]) native;
-@DocsEditable()
-@DomName('DefaultSessionStartEvent')
-@Experimental() // untriaged
-@Native("DefaultSessionStartEvent")
-class DefaultSessionStartEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory DefaultSessionStartEvent._() {
- throw new UnsupportedError("Not supported");
- }
+ @JSName('webkitRequestFileSystemSync')
+ @DomName('DedicatedWorkerGlobalScope.webkitRequestFileSystemSync')
+ @DocsEditable()
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
+ @Experimental() // untriaged
+ _DOMFileSystemSync requestFileSystemSync(int type, int size) native;
- @DomName('DefaultSessionStartEvent.DefaultSessionStartEvent')
+ @JSName('webkitResolveLocalFileSystemSyncURL')
+ @DomName('DedicatedWorkerGlobalScope.webkitResolveLocalFileSystemSyncURL')
@DocsEditable()
- factory DefaultSessionStartEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return DefaultSessionStartEvent._create_1(type, eventInitDict_1);
- }
- return DefaultSessionStartEvent._create_2(type);
- }
- static DefaultSessionStartEvent _create_1(type, eventInitDict) => JS(
- 'DefaultSessionStartEvent',
- 'new DefaultSessionStartEvent(#,#)',
- type,
- eventInitDict);
- static DefaultSessionStartEvent _create_2(type) =>
- JS('DefaultSessionStartEvent', 'new DefaultSessionStartEvent(#)', type);
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
+ @Experimental() // untriaged
+ _EntrySync resolveLocalFileSystemSyncUrl(String url) native;
- @DomName('DefaultSessionStartEvent.session')
+ @JSName('webkitResolveLocalFileSystemURL')
+ @DomName('DedicatedWorkerGlobalScope.webkitResolveLocalFileSystemURL')
+ @DocsEditable()
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
+ @Experimental() // untriaged
+ void _webkitResolveLocalFileSystemUrl(
+ String url, _EntryCallback successCallback,
+ [_ErrorCallback errorCallback]) native;
+
+ /// Stream of `message` events handled by this [DedicatedWorkerGlobalScope].
+ @DomName('DedicatedWorkerGlobalScope.onmessage')
@DocsEditable()
@Experimental() // untriaged
- final PresentationSession session;
+ Stream<MessageEvent> get onMessage => messageEvent.forTarget(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
@@ -9998,6 +10338,11 @@ class Document extends Node {
@Creates('_StyleSheetList')
final List<StyleSheet> _styleSheets;
+ @DomName('Document.suborigin')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String suborigin;
+
@DomName('Document.timeline')
@DocsEditable()
@Experimental() // untriaged
@@ -10151,14 +10496,6 @@ class Document extends Node {
@Experimental() // untriaged
void exitPointerLock() native;
- @JSName('getCSSCanvasContext')
- @DomName('Document.getCSSCanvasContext')
- @DocsEditable()
- // https://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariCSSRef/Articles/Functions.html
- @Experimental() // non-standard
- Object _getCssCanvasContext(
- String contextId, String name, int width, int height) native;
-
@DomName('Document.getElementsByClassName')
@DocsEditable()
@Creates('NodeList|HtmlCollection')
@@ -10993,6 +11330,8 @@ class DomException extends Interceptor {
static const String TIMEOUT = 'TimeoutError';
static const String INVALID_NODE_TYPE = 'InvalidNodeTypeError';
static const String DATA_CLONE = 'DataCloneError';
+ // Is TypeError class derived from DomException but name is 'TypeError'
+ static const String TYPE_ERROR = 'TypeError';
String get name {
var errorName = JS('String', '#.name', this);
@@ -11089,7 +11428,7 @@ class DomMatrix extends DomMatrixReadOnly {
if (other == null) {
return DomMatrix._create_1();
}
- if ((other is DomMatrixReadOnly || other == null)) {
+ if ((other is DomMatrixReadOnly)) {
return DomMatrix._create_2(other);
}
throw new ArgumentError("Incorrect number or type of arguments");
@@ -11423,10 +11762,7 @@ class DomPoint extends DomPointReadOnly {
@DomName('DOMPoint.DOMPoint')
@DocsEditable()
factory DomPoint([point_OR_x, num y, num z, num w]) {
- if ((point_OR_x is Map || point_OR_x == null) &&
- y == null &&
- z == null &&
- w == null) {
+ if ((point_OR_x is Map) && y == null && z == null && w == null) {
var point_1 = convertDartToNative_Dictionary(point_OR_x);
return DomPoint._create_1(point_1);
}
@@ -11665,23 +12001,6 @@ class DomRectReadOnly extends Interceptor implements Rectangle {
// 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.
-@DocsEditable()
-@DomName('DOMSettableTokenList')
-@Native("DOMSettableTokenList")
-class DomSettableTokenList extends DomTokenList {
- // To suppress missing implicit constructor warnings.
- factory DomSettableTokenList._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('DOMSettableTokenList.value')
- @DocsEditable()
- String value;
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('DOMStringList')
@Native("DOMStringList")
@@ -11796,6 +12115,11 @@ class DomTokenList extends Interceptor {
@DocsEditable()
final int length;
+ @DomName('DOMTokenList.value')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String value;
+
@DomName('DOMTokenList.add')
@DocsEditable()
@Experimental() // untriaged
@@ -11814,6 +12138,11 @@ class DomTokenList extends Interceptor {
@Experimental() // untriaged
void remove(String tokens) native;
+ @DomName('DOMTokenList.supports')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool supports(String token) native;
+
@DomName('DOMTokenList.toggle')
@DocsEditable()
bool toggle(String token, [bool force]) native;
@@ -14123,6 +14452,12 @@ class Element extends Node
base.href = document.baseUri;
_parseDocument.head.append(base);
}
+
+ // TODO(terry): Fixes Chromium 50 change no body after createHtmlDocument()
+ if (_parseDocument.body == null) {
+ _parseDocument.body = _parseDocument.createElement("body");
+ }
+
var contextElement;
if (this is BodyElement) {
contextElement = _parseDocument.body;
@@ -15201,6 +15536,11 @@ class Element extends Node
@DocsEditable()
void focus() native;
+ @DomName('Element.assignedSlot')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final SlotElement assignedSlot;
+
@JSName('attributes')
@DomName('Element.attributes')
@DocsEditable()
@@ -15245,11 +15585,17 @@ class Element extends Node
@DocsEditable()
String _innerHtml;
- // Use implementation from Node.
- // final String _localName;
+ @JSName('localName')
+ @DomName('Element.localName')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String _localName;
- // Use implementation from Node.
- // final String _namespaceUri;
+ @JSName('namespaceURI')
+ @DomName('Element.namespaceURI')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String _namespaceUri;
// Using property as subclass shadows.
String get outerHtml => JS("String", "#.outerHTML", this);
@@ -15274,10 +15620,30 @@ class Element extends Node
@DocsEditable()
final int _scrollWidth;
+ @DomName('Element.slot')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String slot;
+
@DomName('Element.tagName')
@DocsEditable()
final String tagName;
+ @DomName('Element.attachShadow')
+ @DocsEditable()
+ @Experimental() // untriaged
+ ShadowRoot attachShadow(Map shadowRootInitDict) {
+ var shadowRootInitDict_1 =
+ convertDartToNative_Dictionary(shadowRootInitDict);
+ return _attachShadow_1(shadowRootInitDict_1);
+ }
+
+ @JSName('attachShadow')
+ @DomName('Element.attachShadow')
+ @DocsEditable()
+ @Experimental() // untriaged
+ ShadowRoot _attachShadow_1(shadowRootInitDict) native;
+
@DomName('Element.closest')
@DocsEditable()
@Experimental() // untriaged
@@ -15521,6 +15887,12 @@ class Element extends Node
@Experimental() // untriaged
void _scrollTo_3(num x, y) native;
+ @DomName('Element.setApplyScroll')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void setApplyScroll(ScrollStateCallback scrollStateCallback,
+ String nativeScrollBehavior) native;
+
@DomName('Element.setAttribute')
@DocsEditable()
void setAttribute(String name, String value) native;
@@ -15529,17 +15901,13 @@ class Element extends Node
@DocsEditable()
void setAttributeNS(String namespaceURI, String name, String value) native;
- // From ChildNode
-
- @DomName('Element.after')
+ @DomName('Element.setDistributeScroll')
@DocsEditable()
@Experimental() // untriaged
- void after(Object nodes) native;
+ void setDistributeScroll(ScrollStateCallback scrollStateCallback,
+ String nativeScrollBehavior) native;
- @DomName('Element.before')
- @DocsEditable()
- @Experimental() // untriaged
- void before(Object nodes) native;
+ // From ChildNode
// From NonDocumentTypeChildNode
@@ -16531,6 +16899,11 @@ class Event extends Interceptor {
@DocsEditable()
final int eventPhase;
+ @DomName('Event.isTrusted')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool isTrusted;
+
/**
* This event's path, taking into account shadow DOM.
*
@@ -16546,6 +16919,11 @@ class Event extends Interceptor {
@Experimental()
final List<EventTarget> path;
+ @DomName('Event.scoped')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool scoped;
+
@DomName('Event.target')
@DocsEditable()
EventTarget get target => _convertNativeToDart_EventTarget(this._get_target);
@@ -16558,12 +16936,17 @@ class Event extends Interceptor {
@DomName('Event.timeStamp')
@DocsEditable()
- final int timeStamp;
+ final double timeStamp;
@DomName('Event.type')
@DocsEditable()
final String type;
+ @DomName('Event.deepPath')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<EventTarget> deepPath() native;
+
@JSName('initEvent')
@DomName('Event.initEvent')
@DocsEditable()
@@ -16822,7 +17205,7 @@ class EventTarget extends Interceptor {
@JSName('addEventListener')
@DomName('EventTarget.addEventListener')
@DocsEditable()
- void _addEventListener(String type, EventListener listener, [bool capture])
+ void _addEventListener(String type, EventListener listener, [Object options])
native;
@DomName('EventTarget.dispatchEvent')
@@ -16832,8 +17215,8 @@ class EventTarget extends Interceptor {
@JSName('removeEventListener')
@DomName('EventTarget.removeEventListener')
@DocsEditable()
- void _removeEventListener(String type, EventListener listener, [bool capture])
- native;
+ void _removeEventListener(String type, EventListener listener,
+ [Object options]) native;
}
// 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
@@ -16866,7 +17249,46 @@ class ExtendableEvent extends Event {
@DomName('ExtendableEvent.waitUntil')
@DocsEditable()
@Experimental() // untriaged
- void waitUntil(Object value) native;
+ void waitUntil(Future f) native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('ExtendableMessageEvent')
+@Experimental() // untriaged
+@Native("ExtendableMessageEvent")
+class ExtendableMessageEvent extends ExtendableEvent {
+ // To suppress missing implicit constructor warnings.
+ factory ExtendableMessageEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('ExtendableMessageEvent.data')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Object data;
+
+ @DomName('ExtendableMessageEvent.lastEventId')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String lastEventId;
+
+ @DomName('ExtendableMessageEvent.origin')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String origin;
+
+ @DomName('ExtendableMessageEvent.ports')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final List<MessagePort> ports;
+
+ @DomName('ExtendableMessageEvent.source')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Object source;
}
// 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
@@ -16917,17 +17339,17 @@ class FetchEvent extends ExtendableEvent {
@DomName('FetchEvent.FetchEvent')
@DocsEditable()
- factory FetchEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return FetchEvent._create_1(type, eventInitDict_1);
- }
- return FetchEvent._create_2(type);
+ factory FetchEvent(String type, Map eventInitDict) {
+ var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
+ return FetchEvent._create_1(type, eventInitDict_1);
}
static FetchEvent _create_1(type, eventInitDict) =>
JS('FetchEvent', 'new FetchEvent(#,#)', type, eventInitDict);
- static FetchEvent _create_2(type) =>
- JS('FetchEvent', 'new FetchEvent(#)', type);
+
+ @DomName('FetchEvent.clientId')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String clientId;
@DomName('FetchEvent.isReload')
@DocsEditable()
@@ -16942,7 +17364,7 @@ class FetchEvent extends ExtendableEvent {
@DomName('FetchEvent.respondWith')
@DocsEditable()
@Experimental() // untriaged
- void respondWith(Object value) native;
+ void respondWith(Future r) native;
}
// 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
@@ -17076,16 +17498,6 @@ class File extends Blob {
// 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.
-// WARNING: Do not edit - generated code.
-
-@DomName('FileCallback')
-// http://www.w3.org/TR/file-system-api/#the-filecallback-interface
-@Experimental()
-typedef void _FileCallback(File file);
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('FileEntry')
// http://www.w3.org/TR/file-system-api/#the-fileentry-interface
@@ -17119,14 +17531,14 @@ class FileEntry extends Entry {
@JSName('file')
@DomName('FileEntry.file')
@DocsEditable()
- void _file(_FileCallback successCallback, [_ErrorCallback errorCallback])
+ void _file(BlobCallback successCallback, [_ErrorCallback errorCallback])
native;
@JSName('file')
@DomName('FileEntry.file')
@DocsEditable()
- Future<File> file() {
- var completer = new Completer<File>();
+ Future<Blob> file() {
+ var completer = new Completer<Blob>();
_file((value) {
completer.complete(value);
}, (error) {
@@ -17794,7 +18206,7 @@ class FontFaceSet extends EventTarget {
@DomName('FontFaceSet.add')
@DocsEditable()
@Experimental() // untriaged
- void add(FontFace fontFace) native;
+ FontFaceSet add(FontFace arg) native;
@DomName('FontFaceSet.check')
@DocsEditable()
@@ -17809,7 +18221,7 @@ class FontFaceSet extends EventTarget {
@DomName('FontFaceSet.delete')
@DocsEditable()
@Experimental() // untriaged
- bool delete(FontFace fontFace) native;
+ bool delete(FontFace arg) native;
@DomName('FontFaceSet.forEach')
@DocsEditable()
@@ -17819,22 +18231,12 @@ class FontFaceSet extends EventTarget {
@DomName('FontFaceSet.has')
@DocsEditable()
@Experimental() // untriaged
- bool has(FontFace fontFace) native;
+ bool has(FontFace arg) native;
}
// 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
// BSD-style license that can be found in the LICENSE file.
-// WARNING: Do not edit - generated code.
-
-@DomName('FontFaceSetForEachCallback')
-@Experimental() // untriaged
-typedef void FontFaceSetForEachCallback(
- FontFace fontFace, FontFace fontFaceAgain, FontFaceSet set);
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('FontFaceSetLoadEvent')
@Experimental() // untriaged
@@ -18723,6 +19125,30 @@ abstract class GlobalEventHandlers implements EventTarget {
static const EventStreamProvider<Event> timeUpdateEvent =
const EventStreamProvider<Event>('timeupdate');
+ @DomName('GlobalEventHandlers.touchcancelEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<TouchEvent> touchCancelEvent =
+ const EventStreamProvider<TouchEvent>('touchcancel');
+
+ @DomName('GlobalEventHandlers.touchendEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<TouchEvent> touchEndEvent =
+ const EventStreamProvider<TouchEvent>('touchend');
+
+ @DomName('GlobalEventHandlers.touchmoveEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<TouchEvent> touchMoveEvent =
+ const EventStreamProvider<TouchEvent>('touchmove');
+
+ @DomName('GlobalEventHandlers.touchstartEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<TouchEvent> touchStartEvent =
+ const EventStreamProvider<TouchEvent>('touchstart');
+
@DomName('GlobalEventHandlers.volumechangeEvent')
@DocsEditable()
@Experimental() // untriaged
@@ -18985,6 +19411,26 @@ abstract class GlobalEventHandlers implements EventTarget {
@Experimental() // untriaged
Stream<Event> get onTimeUpdate => timeUpdateEvent.forTarget(this);
+ @DomName('GlobalEventHandlers.ontouchcancel')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Stream<TouchEvent> get onTouchCancel => touchCancelEvent.forTarget(this);
+
+ @DomName('GlobalEventHandlers.ontouchend')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Stream<TouchEvent> get onTouchEnd => touchEndEvent.forTarget(this);
+
+ @DomName('GlobalEventHandlers.ontouchmove')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Stream<TouchEvent> get onTouchMove => touchMoveEvent.forTarget(this);
+
+ @DomName('GlobalEventHandlers.ontouchstart')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Stream<TouchEvent> get onTouchStart => touchStartEvent.forTarget(this);
+
@DomName('GlobalEventHandlers.onvolumechange')
@DocsEditable()
@Experimental() // untriaged
@@ -19081,12 +19527,6 @@ class HashChangeEvent extends Event {
@DomName('HashChangeEvent.oldURL')
@DocsEditable()
final String oldUrl;
-
- @JSName('initHashChangeEvent')
- @DomName('HashChangeEvent.initHashChangeEvent')
- @DocsEditable()
- void _initHashChangeEvent(String type, bool canBubble, bool cancelable,
- String oldURL, String newURL) native;
}
// 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
@@ -19245,15 +19685,10 @@ class History extends Interceptor implements HistoryBase {
@DocsEditable()
final int length;
- @DomName('History.options')
- @DocsEditable()
- @Experimental() // untriaged
- Map get options => convertNativeToDart_Dictionary(this._get_options);
- @JSName('options')
- @DomName('History.options')
+ @DomName('History.scrollRestoration')
@DocsEditable()
@Experimental() // untriaged
- final dynamic _get_options;
+ String scrollRestoration;
@DomName('History.state')
@DocsEditable()
@@ -19284,16 +19719,9 @@ class History extends Interceptor implements HistoryBase {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
- void pushState(/*SerializedScriptValue*/ data, String title, String url,
- [Map options]) {
- if (options != null) {
- var data_1 = convertDartToNative_SerializedScriptValue(data);
- var options_2 = convertDartToNative_Dictionary(options);
- _pushState_1(data_1, title, url, options_2);
- return;
- }
+ void pushState(/*SerializedScriptValue*/ data, String title, String url) {
var data_1 = convertDartToNative_SerializedScriptValue(data);
- _pushState_2(data_1, title, url);
+ _pushState_1(data_1, title, url);
return;
}
@@ -19304,15 +19732,7 @@ class History extends Interceptor implements HistoryBase {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
- void _pushState_1(data, title, url, options) native;
- @JSName('pushState')
- @DomName('History.pushState')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.FIREFOX)
- @SupportedBrowser(SupportedBrowser.IE, '10')
- @SupportedBrowser(SupportedBrowser.SAFARI)
- void _pushState_2(data, title, url) native;
+ void _pushState_1(data, title, url) native;
@DomName('History.replaceState')
@DocsEditable()
@@ -19320,16 +19740,9 @@ class History extends Interceptor implements HistoryBase {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
- void replaceState(/*SerializedScriptValue*/ data, String title, String url,
- [Map options]) {
- if (options != null) {
- var data_1 = convertDartToNative_SerializedScriptValue(data);
- var options_2 = convertDartToNative_Dictionary(options);
- _replaceState_1(data_1, title, url, options_2);
- return;
- }
+ void replaceState(/*SerializedScriptValue*/ data, String title, String url) {
var data_1 = convertDartToNative_SerializedScriptValue(data);
- _replaceState_2(data_1, title, url);
+ _replaceState_1(data_1, title, url);
return;
}
@@ -19340,15 +19753,7 @@ class History extends Interceptor implements HistoryBase {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
- void _replaceState_1(data, title, url, options) native;
- @JSName('replaceState')
- @DomName('History.replaceState')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.FIREFOX)
- @SupportedBrowser(SupportedBrowser.IE, '10')
- @SupportedBrowser(SupportedBrowser.SAFARI)
- void _replaceState_2(data, title, url) native;
+ void _replaceState_1(data, title, url) native;
}
// 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
@@ -20428,7 +20833,7 @@ class HttpRequest extends HttpRequestEventTarget {
void send([body_OR_data]) native;
/**
- * Sets the value of an HTTP request header.
+ * Sets the value of an HTTP requst header.
*
* This method should be called after the request is opened, but before
* the request is sent.
@@ -20672,9 +21077,14 @@ class IFrameElement extends HtmlElement {
@DocsEditable()
String name;
+ @DomName('HTMLIFrameElement.referrerpolicy')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String referrerpolicy;
+
@DomName('HTMLIFrameElement.sandbox')
@DocsEditable()
- final DomSettableTokenList sandbox;
+ final DomTokenList sandbox;
@DomName('HTMLIFrameElement.src')
@DocsEditable()
@@ -20692,6 +21102,39 @@ class IFrameElement extends HtmlElement {
// 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.
+@DocsEditable()
+@DomName('IdleDeadline')
+@Experimental() // untriaged
+@Native("IdleDeadline")
+class IdleDeadline extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory IdleDeadline._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('IdleDeadline.didTimeout')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool didTimeout;
+
+ @DomName('IdleDeadline.timeRemaining')
+ @DocsEditable()
+ @Experimental() // untriaged
+ double timeRemaining() native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+// WARNING: Do not edit - generated code.
+
+@DomName('IdleRequestCallback')
+@Experimental() // untriaged
+typedef void IdleRequestCallback(IdleDeadline deadline);
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('ImageBitmap')
@Experimental() // untriaged
@@ -20711,6 +21154,35 @@ class ImageBitmap extends Interceptor {
@DocsEditable()
@Experimental() // untriaged
final int width;
+
+ @DomName('ImageBitmap.close')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void close() native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('ImageBitmapRenderingContext')
+@Experimental() // untriaged
+@Native("ImageBitmapRenderingContext")
+class ImageBitmapRenderingContext extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory ImageBitmapRenderingContext._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('ImageBitmapRenderingContext.canvas')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final CanvasElement canvas;
+
+ @DomName('ImageBitmapRenderingContext.transferImageBitmap')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void transferImageBitmap(ImageBitmap bitmap) native;
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -20821,6 +21293,11 @@ class ImageElement extends HtmlElement implements CanvasImageSource {
@DocsEditable()
final int naturalWidth;
+ @DomName('HTMLImageElement.referrerpolicy')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String referrerpolicy;
+
@DomName('HTMLImageElement.sizes')
@DocsEditable()
@Experimental() // untriaged
@@ -20867,29 +21344,32 @@ class InjectedScriptHost extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('InputDevice')
+@DomName('InputDeviceCapabilities')
@Experimental() // untriaged
-@Native("InputDevice")
-class InputDevice extends Interceptor {
+@Native("InputDeviceCapabilities")
+class InputDeviceCapabilities extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory InputDevice._() {
+ factory InputDeviceCapabilities._() {
throw new UnsupportedError("Not supported");
}
- @DomName('InputDevice.InputDevice')
+ @DomName('InputDeviceCapabilities.InputDeviceCapabilities')
@DocsEditable()
- factory InputDevice([Map deviceInitDict]) {
+ factory InputDeviceCapabilities([Map deviceInitDict]) {
if (deviceInitDict != null) {
var deviceInitDict_1 = convertDartToNative_Dictionary(deviceInitDict);
- return InputDevice._create_1(deviceInitDict_1);
+ return InputDeviceCapabilities._create_1(deviceInitDict_1);
}
- return InputDevice._create_2();
+ return InputDeviceCapabilities._create_2();
}
- static InputDevice _create_1(deviceInitDict) =>
- JS('InputDevice', 'new InputDevice(#)', deviceInitDict);
- static InputDevice _create_2() => JS('InputDevice', 'new InputDevice()');
+ static InputDeviceCapabilities _create_1(deviceInitDict) => JS(
+ 'InputDeviceCapabilities',
+ 'new InputDeviceCapabilities(#)',
+ deviceInitDict);
+ static InputDeviceCapabilities _create_2() =>
+ JS('InputDeviceCapabilities', 'new InputDeviceCapabilities()');
- @DomName('InputDevice.firesTouchEvents')
+ @DomName('InputDeviceCapabilities.firesTouchEvents')
@DocsEditable()
@Experimental() // untriaged
final bool firesTouchEvents;
@@ -21770,6 +22250,137 @@ abstract class ButtonInputElement implements InputElementBase {
// 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.
+@DocsEditable()
+@DomName('InstallEvent')
+@Experimental() // untriaged
+@Native("InstallEvent")
+class InstallEvent extends ExtendableEvent {
+ // To suppress missing implicit constructor warnings.
+ factory InstallEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('InstallEvent.InstallEvent')
+ @DocsEditable()
+ factory InstallEvent(String type, [Map eventInitDict]) {
+ if (eventInitDict != null) {
+ var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
+ return InstallEvent._create_1(type, eventInitDict_1);
+ }
+ return InstallEvent._create_2(type);
+ }
+ static InstallEvent _create_1(type, eventInitDict) =>
+ JS('InstallEvent', 'new InstallEvent(#,#)', type, eventInitDict);
+ static InstallEvent _create_2(type) =>
+ JS('InstallEvent', 'new InstallEvent(#)', type);
+
+ @DomName('InstallEvent.registerForeignFetchScopes')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void registerForeignFetchScopes(List<String> subScopes, Object origins) {
+ List subScopes_1 = convertDartToNative_StringArray(subScopes);
+ _registerForeignFetchScopes_1(subScopes_1, origins);
+ return;
+ }
+
+ @JSName('registerForeignFetchScopes')
+ @DomName('InstallEvent.registerForeignFetchScopes')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void _registerForeignFetchScopes_1(List subScopes, origins) native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('IntersectionObserver')
+@Experimental() // untriaged
+@Native("IntersectionObserver")
+class IntersectionObserver extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory IntersectionObserver._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('IntersectionObserver.root')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Element root;
+
+ @DomName('IntersectionObserver.rootMargin')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String rootMargin;
+
+ @DomName('IntersectionObserver.thresholds')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final List<num> thresholds;
+
+ @DomName('IntersectionObserver.disconnect')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void disconnect() native;
+
+ @DomName('IntersectionObserver.observe')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void observe(Element target) native;
+
+ @DomName('IntersectionObserver.takeRecords')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<IntersectionObserverEntry> takeRecords() native;
+
+ @DomName('IntersectionObserver.unobserve')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void unobserve(Element target) native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('IntersectionObserverEntry')
+@Experimental() // untriaged
+@Native("IntersectionObserverEntry")
+class IntersectionObserverEntry extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory IntersectionObserverEntry._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('IntersectionObserverEntry.boundingClientRect')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Rectangle boundingClientRect;
+
+ @DomName('IntersectionObserverEntry.intersectionRect')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Rectangle intersectionRect;
+
+ @DomName('IntersectionObserverEntry.rootBounds')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Rectangle rootBounds;
+
+ @DomName('IntersectionObserverEntry.target')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Element target;
+
+ @DomName('IntersectionObserverEntry.time')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double time;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
/**
* An event that describes user interaction with the keyboard.
*
@@ -21915,11 +22526,6 @@ class KeyboardEvent extends UIEvent {
@Experimental() // nonstandard
final String _keyIdentifier;
- @DomName('KeyboardEvent.keyLocation')
- @DocsEditable()
- @Experimental() // nonstandard
- final int keyLocation;
-
@DomName('KeyboardEvent.location')
@DocsEditable()
@Experimental() // untriaged
@@ -21959,31 +22565,31 @@ class KeyframeEffect extends AnimationEffectReadOnly {
@DomName('KeyframeEffect.KeyframeEffect')
@DocsEditable()
- factory KeyframeEffect(Element target, List<Map> keyframes, [timing]) {
- if ((keyframes is List<Map>) &&
+ factory KeyframeEffect(Element target, Object effect, [timing]) {
+ if (effect != null &&
(target is Element || target == null) &&
timing == null) {
- return KeyframeEffect._create_1(target, keyframes);
+ return KeyframeEffect._create_1(target, effect);
}
if ((timing is num) &&
- (keyframes is List<Map>) &&
+ effect != null &&
(target is Element || target == null)) {
- return KeyframeEffect._create_2(target, keyframes, timing);
+ return KeyframeEffect._create_2(target, effect, timing);
}
if ((timing is Map) &&
- (keyframes is List<Map>) &&
+ effect != null &&
(target is Element || target == null)) {
var timing_1 = convertDartToNative_Dictionary(timing);
- return KeyframeEffect._create_3(target, keyframes, timing_1);
+ return KeyframeEffect._create_3(target, effect, timing_1);
}
throw new ArgumentError("Incorrect number or type of arguments");
}
- static KeyframeEffect _create_1(target, keyframes) =>
- JS('KeyframeEffect', 'new KeyframeEffect(#,#)', target, keyframes);
- static KeyframeEffect _create_2(target, keyframes, timing) => JS(
- 'KeyframeEffect', 'new KeyframeEffect(#,#,#)', target, keyframes, timing);
- static KeyframeEffect _create_3(target, keyframes, timing) => JS(
- 'KeyframeEffect', 'new KeyframeEffect(#,#,#)', target, keyframes, timing);
+ static KeyframeEffect _create_1(target, effect) =>
+ JS('KeyframeEffect', 'new KeyframeEffect(#,#)', target, effect);
+ static KeyframeEffect _create_2(target, effect, timing) =>
+ JS('KeyframeEffect', 'new KeyframeEffect(#,#,#)', target, effect, timing);
+ static KeyframeEffect _create_3(target, effect, timing) =>
+ JS('KeyframeEffect', 'new KeyframeEffect(#,#,#)', target, effect, timing);
}
// 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
@@ -22081,6 +22687,33 @@ class KeygenElement extends HtmlElement {
// 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.
+@DocsEditable()
+@DomName('KeywordValue')
+@Experimental() // untriaged
+@Native("KeywordValue")
+class KeywordValue extends StyleValue {
+ // To suppress missing implicit constructor warnings.
+ factory KeywordValue._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('KeywordValue.KeywordValue')
+ @DocsEditable()
+ factory KeywordValue(String keyword) {
+ return KeywordValue._create_1(keyword);
+ }
+ static KeywordValue _create_1(keyword) =>
+ JS('KeywordValue', 'new KeywordValue(#)', keyword);
+
+ @DomName('KeywordValue.keywordValue')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String keywordValue;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('HTMLLIElement')
@Native("HTMLLIElement")
@@ -22175,6 +22808,64 @@ class LegendElement extends HtmlElement {
@DocsEditable()
final FormElement form;
}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('LengthValue')
+@Experimental() // untriaged
+@Native("LengthValue")
+class LengthValue extends StyleValue {
+ // To suppress missing implicit constructor warnings.
+ factory LengthValue._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('LengthValue.add')
+ @DocsEditable()
+ @Experimental() // untriaged
+ LengthValue add(LengthValue other) native;
+
+ @DomName('LengthValue.divide')
+ @DocsEditable()
+ @Experimental() // untriaged
+ LengthValue divide(num value) native;
+
+ @DomName('LengthValue.fromDictionary')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static LengthValue fromDictionary(Map dictionary) {
+ var dictionary_1 = convertDartToNative_Dictionary(dictionary);
+ return _fromDictionary_1(dictionary_1);
+ }
+
+ @JSName('fromDictionary')
+ @DomName('LengthValue.fromDictionary')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static LengthValue _fromDictionary_1(dictionary) native;
+
+ @DomName('LengthValue.fromValue')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static LengthValue fromValue(num value, String type) native;
+
+ @DomName('LengthValue.multiply')
+ @DocsEditable()
+ @Experimental() // untriaged
+ LengthValue multiply(num value) native;
+
+ @DomName('LengthValue.parse')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static LengthValue parse(String cssString) native;
+
+ @DomName('LengthValue.subtract')
+ @DocsEditable()
+ @Experimental() // untriaged
+ LengthValue subtract(LengthValue other) native;
+}
// Copyright (c) 2014, 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.
@@ -22202,6 +22893,11 @@ class LinkElement extends HtmlElement {
*/
LinkElement.created() : super.created();
+ @DomName('HTMLLinkElement.as')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String as;
+
@DomName('HTMLLinkElement.crossOrigin')
@DocsEditable()
@Experimental() // untriaged
@@ -22238,13 +22934,18 @@ class LinkElement extends HtmlElement {
@DocsEditable()
String rel;
+ @DomName('HTMLLinkElement.relList')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final DomTokenList relList;
+
@DomName('HTMLLinkElement.sheet')
@DocsEditable()
final StyleSheet sheet;
@DomName('HTMLLinkElement.sizes')
@DocsEditable()
- final DomSettableTokenList sizes;
+ final DomTokenList sizes;
@DomName('HTMLLinkElement.type')
@DocsEditable()
@@ -22370,79 +23071,204 @@ class MapElement extends HtmlElement {
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('MediaController')
-// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#mediacontroller
-@Experimental()
-@Native("MediaController")
-class MediaController extends EventTarget {
- // To suppress missing implicit constructor warnings.
- factory MediaController._() {
- throw new UnsupportedError("Not supported");
+@DomName('Matrix')
+@Experimental() // untriaged
+@Native("Matrix")
+class Matrix extends TransformComponent {
+ // To suppress missing implicit constructor warnings.
+ factory Matrix._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('Matrix.Matrix')
+ @DocsEditable()
+ factory Matrix(num a_OR_m11, num b_OR_m12, num c_OR_m13, num d_OR_m14,
+ num e_OR_m21, num f_OR_m22,
+ [num m23,
+ num m24,
+ num m31,
+ num m32,
+ num m33,
+ num m34,
+ num m41,
+ num m42,
+ num m43,
+ num m44]) {
+ if ((f_OR_m22 is num) &&
+ (e_OR_m21 is num) &&
+ (d_OR_m14 is num) &&
+ (c_OR_m13 is num) &&
+ (b_OR_m12 is num) &&
+ (a_OR_m11 is num) &&
+ m23 == null &&
+ m24 == null &&
+ m31 == null &&
+ m32 == null &&
+ m33 == null &&
+ m34 == null &&
+ m41 == null &&
+ m42 == null &&
+ m43 == null &&
+ m44 == null) {
+ return Matrix._create_1(
+ a_OR_m11, b_OR_m12, c_OR_m13, d_OR_m14, e_OR_m21, f_OR_m22);
+ }
+ if ((m44 is num) &&
+ (m43 is num) &&
+ (m42 is num) &&
+ (m41 is num) &&
+ (m34 is num) &&
+ (m33 is num) &&
+ (m32 is num) &&
+ (m31 is num) &&
+ (m24 is num) &&
+ (m23 is num) &&
+ (f_OR_m22 is num) &&
+ (e_OR_m21 is num) &&
+ (d_OR_m14 is num) &&
+ (c_OR_m13 is num) &&
+ (b_OR_m12 is num) &&
+ (a_OR_m11 is num)) {
+ return Matrix._create_2(a_OR_m11, b_OR_m12, c_OR_m13, d_OR_m14, e_OR_m21,
+ f_OR_m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
}
+ static Matrix _create_1(
+ a_OR_m11, b_OR_m12, c_OR_m13, d_OR_m14, e_OR_m21, f_OR_m22) =>
+ JS('Matrix', 'new Matrix(#,#,#,#,#,#)', a_OR_m11, b_OR_m12, c_OR_m13,
+ d_OR_m14, e_OR_m21, f_OR_m22);
+ static Matrix _create_2(a_OR_m11, b_OR_m12, c_OR_m13, d_OR_m14, e_OR_m21,
+ f_OR_m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44) =>
+ JS(
+ 'Matrix',
+ 'new Matrix(#,#,#,#,#,#,#,#,#,#,#,#,#,#,#,#)',
+ a_OR_m11,
+ b_OR_m12,
+ c_OR_m13,
+ d_OR_m14,
+ e_OR_m21,
+ f_OR_m22,
+ m23,
+ m24,
+ m31,
+ m32,
+ m33,
+ m34,
+ m41,
+ m42,
+ m43,
+ m44);
- @DomName('MediaController.MediaController')
+ @DomName('Matrix.a')
@DocsEditable()
- factory MediaController() {
- return MediaController._create_1();
- }
- static MediaController _create_1() =>
- JS('MediaController', 'new MediaController()');
+ @Experimental() // untriaged
+ final double a;
- @DomName('MediaController.buffered')
+ @DomName('Matrix.b')
@DocsEditable()
- final TimeRanges buffered;
+ @Experimental() // untriaged
+ final double b;
- @DomName('MediaController.currentTime')
+ @DomName('Matrix.c')
@DocsEditable()
- num currentTime;
+ @Experimental() // untriaged
+ final double c;
- @DomName('MediaController.defaultPlaybackRate')
+ @DomName('Matrix.d')
@DocsEditable()
- num defaultPlaybackRate;
+ @Experimental() // untriaged
+ final double d;
- @DomName('MediaController.duration')
+ @DomName('Matrix.e')
@DocsEditable()
- final double duration;
+ @Experimental() // untriaged
+ final double e;
- @DomName('MediaController.muted')
+ @DomName('Matrix.f')
@DocsEditable()
- bool muted;
+ @Experimental() // untriaged
+ final double f;
- @DomName('MediaController.paused')
+ @DomName('Matrix.m11')
@DocsEditable()
- final bool paused;
+ @Experimental() // untriaged
+ final double m11;
- @DomName('MediaController.playbackRate')
+ @DomName('Matrix.m12')
@DocsEditable()
- num playbackRate;
+ @Experimental() // untriaged
+ final double m12;
- @DomName('MediaController.playbackState')
+ @DomName('Matrix.m13')
@DocsEditable()
- final String playbackState;
+ @Experimental() // untriaged
+ final double m13;
- @DomName('MediaController.played')
+ @DomName('Matrix.m14')
@DocsEditable()
- final TimeRanges played;
+ @Experimental() // untriaged
+ final double m14;
- @DomName('MediaController.seekable')
+ @DomName('Matrix.m21')
@DocsEditable()
- final TimeRanges seekable;
+ @Experimental() // untriaged
+ final double m21;
- @DomName('MediaController.volume')
+ @DomName('Matrix.m22')
@DocsEditable()
- num volume;
+ @Experimental() // untriaged
+ final double m22;
- @DomName('MediaController.pause')
+ @DomName('Matrix.m23')
@DocsEditable()
- void pause() native;
+ @Experimental() // untriaged
+ final double m23;
- @DomName('MediaController.play')
+ @DomName('Matrix.m24')
@DocsEditable()
- void play() native;
+ @Experimental() // untriaged
+ final double m24;
+
+ @DomName('Matrix.m31')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double m31;
+
+ @DomName('Matrix.m32')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double m32;
- @DomName('MediaController.unpause')
+ @DomName('Matrix.m33')
@DocsEditable()
- void unpause() native;
+ @Experimental() // untriaged
+ final double m33;
+
+ @DomName('Matrix.m34')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double m34;
+
+ @DomName('Matrix.m41')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double m41;
+
+ @DomName('Matrix.m42')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double m42;
+
+ @DomName('Matrix.m43')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double m43;
+
+ @DomName('Matrix.m44')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double m44;
}
// 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
@@ -22524,66 +23350,6 @@ class MediaElement extends HtmlElement {
factory MediaElement._() {
throw new UnsupportedError("Not supported");
}
-
- /**
- * Static factory designed to expose `keyadded` events to event
- * handlers that are not necessarily instances of [MediaElement].
- *
- * See [EventStreamProvider] for usage information.
- */
- @DomName('HTMLMediaElement.webkitkeyaddedEvent')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-keyadded
- static const EventStreamProvider<MediaKeyEvent> keyAddedEvent =
- const EventStreamProvider<MediaKeyEvent>('webkitkeyadded');
-
- /**
- * Static factory designed to expose `keyerror` events to event
- * handlers that are not necessarily instances of [MediaElement].
- *
- * See [EventStreamProvider] for usage information.
- */
- @DomName('HTMLMediaElement.webkitkeyerrorEvent')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-keyadded
- static const EventStreamProvider<MediaKeyEvent> keyErrorEvent =
- const EventStreamProvider<MediaKeyEvent>('webkitkeyerror');
-
- /**
- * Static factory designed to expose `keymessage` events to event
- * handlers that are not necessarily instances of [MediaElement].
- *
- * See [EventStreamProvider] for usage information.
- */
- @DomName('HTMLMediaElement.webkitkeymessageEvent')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-keyadded
- static const EventStreamProvider<MediaKeyEvent> keyMessageEvent =
- const EventStreamProvider<MediaKeyEvent>('webkitkeymessage');
-
- /**
- * Static factory designed to expose `needkey` events to event
- * handlers that are not necessarily instances of [MediaElement].
- *
- * See [EventStreamProvider] for usage information.
- */
- @DomName('HTMLMediaElement.webkitneedkeyEvent')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-keyadded
- static const EventStreamProvider<MediaKeyEvent> needKeyEvent =
- const EventStreamProvider<MediaKeyEvent>('webkitneedkey');
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -22640,10 +23406,6 @@ class MediaElement extends HtmlElement {
@DocsEditable()
final TimeRanges buffered;
- @DomName('HTMLMediaElement.controller')
- @DocsEditable()
- MediaController controller;
-
@DomName('HTMLMediaElement.controls')
@DocsEditable()
bool controls;
@@ -22669,6 +23431,11 @@ class MediaElement extends HtmlElement {
@DocsEditable()
num defaultPlaybackRate;
+ @DomName('HTMLMediaElement.disableRemotePlayback')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool disableRemotePlayback;
+
@DomName('HTMLMediaElement.duration')
@DocsEditable()
final double duration;
@@ -22685,10 +23452,6 @@ class MediaElement extends HtmlElement {
@DocsEditable()
bool loop;
- @DomName('HTMLMediaElement.mediaGroup')
- @DocsEditable()
- String mediaGroup;
-
@DomName('HTMLMediaElement.mediaKeys')
@DocsEditable()
// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html
@@ -22789,6 +23552,11 @@ class MediaElement extends HtmlElement {
@Unstable()
String canPlayType(String type, [String keySystem]) native;
+ @DomName('HTMLMediaElement.captureStream')
+ @DocsEditable()
+ @Experimental() // untriaged
+ MediaStream captureStream() native;
+
@DomName('HTMLMediaElement.load')
@DocsEditable()
void load() native;
@@ -22799,7 +23567,7 @@ class MediaElement extends HtmlElement {
@DomName('HTMLMediaElement.play')
@DocsEditable()
- void play() native;
+ Future play() native;
@DomName('HTMLMediaElement.setMediaKeys')
@DocsEditable()
@@ -22810,63 +23578,6 @@ class MediaElement extends HtmlElement {
@DocsEditable()
@Experimental() // untriaged
Future setSinkId(String sinkId) native;
-
- @JSName('webkitAddKey')
- @DomName('HTMLMediaElement.webkitAddKey')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#extensions
- void addKey(String keySystem, Uint8List key,
- [Uint8List initData, String sessionId]) native;
-
- @JSName('webkitCancelKeyRequest')
- @DomName('HTMLMediaElement.webkitCancelKeyRequest')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#extensions
- void cancelKeyRequest(String keySystem, String sessionId) native;
-
- @JSName('webkitGenerateKeyRequest')
- @DomName('HTMLMediaElement.webkitGenerateKeyRequest')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#extensions
- void generateKeyRequest(String keySystem, [Uint8List initData]) native;
-
- /// Stream of `keyadded` events handled by this [MediaElement].
- @DomName('HTMLMediaElement.onwebkitkeyadded')
- @DocsEditable()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-keyadded
- @Experimental()
- ElementStream<MediaKeyEvent> get onKeyAdded => keyAddedEvent.forElement(this);
-
- /// Stream of `keyerror` events handled by this [MediaElement].
- @DomName('HTMLMediaElement.onwebkitkeyerror')
- @DocsEditable()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-keyadded
- @Experimental()
- ElementStream<MediaKeyEvent> get onKeyError => keyErrorEvent.forElement(this);
-
- /// Stream of `keymessage` events handled by this [MediaElement].
- @DomName('HTMLMediaElement.onwebkitkeymessage')
- @DocsEditable()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-keyadded
- @Experimental()
- ElementStream<MediaKeyEvent> get onKeyMessage =>
- keyMessageEvent.forElement(this);
-
- /// Stream of `needkey` events handled by this [MediaElement].
- @DomName('HTMLMediaElement.onwebkitneedkey')
- @DocsEditable()
- // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-keyadded
- @Experimental()
- ElementStream<MediaKeyEvent> get onNeedKey => needKeyEvent.forElement(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
@@ -22947,112 +23658,6 @@ class MediaError extends Interceptor {
// 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.
-@DocsEditable()
-@DomName('MediaKeyError')
-// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#error-codes
-@Experimental()
-@Native("MediaKeyError")
-class MediaKeyError extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory MediaKeyError._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('MediaKeyError.MEDIA_KEYERR_CLIENT')
- @DocsEditable()
- static const int MEDIA_KEYERR_CLIENT = 2;
-
- @DomName('MediaKeyError.MEDIA_KEYERR_DOMAIN')
- @DocsEditable()
- static const int MEDIA_KEYERR_DOMAIN = 6;
-
- @DomName('MediaKeyError.MEDIA_KEYERR_HARDWARECHANGE')
- @DocsEditable()
- static const int MEDIA_KEYERR_HARDWARECHANGE = 5;
-
- @DomName('MediaKeyError.MEDIA_KEYERR_OUTPUT')
- @DocsEditable()
- static const int MEDIA_KEYERR_OUTPUT = 4;
-
- @DomName('MediaKeyError.MEDIA_KEYERR_SERVICE')
- @DocsEditable()
- static const int MEDIA_KEYERR_SERVICE = 3;
-
- @DomName('MediaKeyError.MEDIA_KEYERR_UNKNOWN')
- @DocsEditable()
- static const int MEDIA_KEYERR_UNKNOWN = 1;
-
- @DomName('MediaKeyError.code')
- @DocsEditable()
- final int code;
-
- @DomName('MediaKeyError.systemCode')
- @DocsEditable()
- @Experimental() // non-standard
- final int systemCode;
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('MediaKeyEvent')
-// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#event-definitions
-@Experimental()
-@Native("MediaKeyEvent")
-class MediaKeyEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory MediaKeyEvent._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('MediaKeyEvent.MediaKeyEvent')
- @DocsEditable()
- factory MediaKeyEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return MediaKeyEvent._create_1(type, eventInitDict_1);
- }
- return MediaKeyEvent._create_2(type);
- }
- static MediaKeyEvent _create_1(type, eventInitDict) =>
- JS('MediaKeyEvent', 'new MediaKeyEvent(#,#)', type, eventInitDict);
- static MediaKeyEvent _create_2(type) =>
- JS('MediaKeyEvent', 'new MediaKeyEvent(#)', type);
-
- @JSName('defaultURL')
- @DomName('MediaKeyEvent.defaultURL')
- @DocsEditable()
- final String defaultUrl;
-
- @DomName('MediaKeyEvent.errorCode')
- @DocsEditable()
- final MediaKeyError errorCode;
-
- @DomName('MediaKeyEvent.initData')
- @DocsEditable()
- final Uint8List initData;
-
- @DomName('MediaKeyEvent.keySystem')
- @DocsEditable()
- final String keySystem;
-
- @DomName('MediaKeyEvent.message')
- @DocsEditable()
- final Uint8List message;
-
- @DomName('MediaKeyEvent.sessionId')
- @DocsEditable()
- final String sessionId;
-
- @DomName('MediaKeyEvent.systemCode')
- @DocsEditable()
- final int systemCode;
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('MediaKeyMessageEvent')
// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-mediakeymessageevent
@@ -23267,6 +23872,44 @@ class MediaList extends Interceptor {
// 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.
+@DocsEditable()
+@DomName('MediaMetadata')
+@Experimental() // untriaged
+@Native("MediaMetadata")
+class MediaMetadata extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory MediaMetadata._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('MediaMetadata.MediaMetadata')
+ @DocsEditable()
+ factory MediaMetadata(Map metadata) {
+ var metadata_1 = convertDartToNative_Dictionary(metadata);
+ return MediaMetadata._create_1(metadata_1);
+ }
+ static MediaMetadata _create_1(metadata) =>
+ JS('MediaMetadata', 'new MediaMetadata(#)', metadata);
+
+ @DomName('MediaMetadata.album')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String album;
+
+ @DomName('MediaMetadata.artist')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String artist;
+
+ @DomName('MediaMetadata.title')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String title;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('MediaQueryList')
@Unstable()
@@ -23349,6 +23992,116 @@ class MediaQueryListEvent extends Event {
// 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.
+@DocsEditable()
+@DomName('MediaRecorder')
+@Experimental() // untriaged
+@Native("MediaRecorder")
+class MediaRecorder extends EventTarget {
+ // To suppress missing implicit constructor warnings.
+ factory MediaRecorder._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('MediaRecorder.errorEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<Event> errorEvent =
+ const EventStreamProvider<Event>('error');
+
+ @DomName('MediaRecorder.pauseEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<Event> pauseEvent =
+ const EventStreamProvider<Event>('pause');
+
+ @DomName('MediaRecorder.MediaRecorder')
+ @DocsEditable()
+ factory MediaRecorder(MediaStream stream, [Map options]) {
+ if (options != null) {
+ var options_1 = convertDartToNative_Dictionary(options);
+ return MediaRecorder._create_1(stream, options_1);
+ }
+ return MediaRecorder._create_2(stream);
+ }
+ static MediaRecorder _create_1(stream, options) =>
+ JS('MediaRecorder', 'new MediaRecorder(#,#)', stream, options);
+ static MediaRecorder _create_2(stream) =>
+ JS('MediaRecorder', 'new MediaRecorder(#)', stream);
+
+ @DomName('MediaRecorder.audioBitsPerSecond')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int audioBitsPerSecond;
+
+ @DomName('MediaRecorder.ignoreMutedMedia')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool ignoreMutedMedia;
+
+ @DomName('MediaRecorder.mimeType')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String mimeType;
+
+ @DomName('MediaRecorder.state')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String state;
+
+ @DomName('MediaRecorder.stream')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final MediaStream stream;
+
+ @DomName('MediaRecorder.videoBitsPerSecond')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int videoBitsPerSecond;
+
+ @DomName('MediaRecorder.isTypeSupported')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static bool isTypeSupported(String type) native;
+
+ @DomName('MediaRecorder.pause')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void pause() native;
+
+ @DomName('MediaRecorder.requestData')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void requestData() native;
+
+ @DomName('MediaRecorder.resume')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void resume() native;
+
+ @DomName('MediaRecorder.start')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void start([int timeslice]) native;
+
+ @DomName('MediaRecorder.stop')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void stop() native;
+
+ @DomName('MediaRecorder.onerror')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Stream<Event> get onError => errorEvent.forTarget(this);
+
+ @DomName('MediaRecorder.onpause')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Stream<Event> get onPause => pauseEvent.forTarget(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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('MediaSession')
@Experimental() // untriaged
@@ -23366,15 +24119,20 @@ class MediaSession extends Interceptor {
}
static MediaSession _create_1() => JS('MediaSession', 'new MediaSession()');
+ @DomName('MediaSession.metadata')
+ @DocsEditable()
+ @Experimental() // untriaged
+ MediaMetadata metadata;
+
@DomName('MediaSession.activate')
@DocsEditable()
@Experimental() // untriaged
- void activate() native;
+ Future activate() native;
@DomName('MediaSession.deactivate')
@DocsEditable()
@Experimental() // untriaged
- void deactivate() native;
+ Future deactivate() native;
}
// 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
@@ -23489,11 +24247,10 @@ class MediaStream extends EventTarget {
if (stream_OR_tracks == null) {
return MediaStream._create_1();
}
- if ((stream_OR_tracks is MediaStream || stream_OR_tracks == null)) {
+ if ((stream_OR_tracks is MediaStream)) {
return MediaStream._create_2(stream_OR_tracks);
}
- if ((stream_OR_tracks is List<MediaStreamTrack> ||
- stream_OR_tracks == null)) {
+ if ((stream_OR_tracks is List<MediaStreamTrack>)) {
return MediaStream._create_3(stream_OR_tracks);
}
throw new ArgumentError("Incorrect number or type of arguments");
@@ -23509,19 +24266,10 @@ class MediaStream extends EventTarget {
@Experimental() // untriaged
final bool active;
- @DomName('MediaStream.ended')
- @DocsEditable()
- final bool ended;
-
@DomName('MediaStream.id')
@DocsEditable()
final String id;
- @DomName('MediaStream.label')
- @DocsEditable()
- @Experimental() // non-standard
- final String label;
-
@DomName('MediaStream.addTrack')
@DocsEditable()
void addTrack(MediaStreamTrack track) native;
@@ -23556,10 +24304,6 @@ class MediaStream extends EventTarget {
@DocsEditable()
void removeTrack(MediaStreamTrack track) native;
- @DomName('MediaStream.stop')
- @DocsEditable()
- void stop() native;
-
/// Stream of `addtrack` events handled by this [MediaStream].
@DomName('MediaStream.onaddtrack')
@DocsEditable()
@@ -23702,6 +24446,11 @@ class MediaStreamTrack extends EventTarget {
@DocsEditable()
final String readyState;
+ @DomName('MediaStreamTrack.remote')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool remote;
+
@DomName('MediaStreamTrack.clone')
@DocsEditable()
@Experimental() // untriaged
@@ -24017,6 +24766,11 @@ class MessageEvent extends Event {
@Returns('EventTarget|=Object')
final dynamic _get_source;
+ @DomName('MessageEvent.suborigin')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String suborigin;
+
@JSName('initMessageEvent')
@DomName('MessageEvent.initMessageEvent')
@DocsEditable()
@@ -24689,11 +25443,6 @@ class MouseEvent extends UIEvent {
@DocsEditable()
final bool ctrlKey;
- @DomName('MouseEvent.dataTransfer')
- @DocsEditable()
- @Unstable()
- final DataTransfer dataTransfer;
-
/**
* The nonstandard way to access the element that the mouse comes
* from in the case of a `mouseover` event.
@@ -24791,6 +25540,11 @@ class MouseEvent extends UIEvent {
// Use implementation from UIEvent.
// final int _which;
+ @DomName('MouseEvent.getModifierState')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool getModifierState(String keyArg) native;
+
@DomName('MouseEvent.initMouseEvent')
@DocsEditable()
void _initMouseEvent(
@@ -25202,6 +25956,11 @@ class Navigator extends Interceptor
@Experimental() // nonstandard
final MimeTypeArray mimeTypes;
+ @DomName('Navigator.nfc')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Nfc nfc;
+
@DomName('Navigator.permissions')
@DocsEditable()
@Experimental() // untriaged
@@ -25227,11 +25986,21 @@ class Navigator extends Interceptor
@Experimental() // untriaged
final ServicePortCollection services;
+ @DomName('Navigator.storage')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final StorageManager storage;
+
@DomName('Navigator.storageQuota')
@DocsEditable()
@Experimental() // untriaged
final StorageQuota storageQuota;
+ @DomName('Navigator.usb')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Usb usb;
+
@DomName('Navigator.vendor')
@DocsEditable()
@Unstable()
@@ -25375,12 +26144,6 @@ class Navigator extends Interceptor
@DocsEditable()
@Unstable()
final bool cookieEnabled;
-
- @DomName('Navigator.getStorageUpdates')
- @DocsEditable()
- // http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#navigatorstorageutils
- @Experimental()
- void getStorageUpdates() native;
}
// 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
@@ -25474,11 +26237,6 @@ class NavigatorStorageUtils extends Interceptor {
@DocsEditable()
@Experimental() // untriaged
final bool cookieEnabled;
-
- @DomName('NavigatorStorageUtils.getStorageUpdates')
- @DocsEditable()
- @Experimental() // untriaged
- void getStorageUpdates() native;
}
// 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
@@ -25541,10 +26299,94 @@ class NetworkInformation extends EventTarget {
throw new UnsupportedError("Not supported");
}
+ @DomName('NetworkInformation.changeEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<Event> changeEvent =
+ const EventStreamProvider<Event>('change');
+
+ @DomName('NetworkInformation.downlinkMax')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double downlinkMax;
+
@DomName('NetworkInformation.type')
@DocsEditable()
@Experimental() // untriaged
final String type;
+
+ @DomName('NetworkInformation.onchange')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Stream<Event> get onChange => changeEvent.forTarget(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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('NFC')
+@Experimental() // untriaged
+@Native("NFC")
+class Nfc extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory Nfc._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('NFC.cancelPush')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future cancelPush([String target]) native;
+
+ @DomName('NFC.cancelWatch')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future cancelWatch([int id]) native;
+
+ @DomName('NFC.push')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future push(Object message, [Map options]) {
+ if (options != null) {
+ var options_1 = convertDartToNative_Dictionary(options);
+ return _push_1(message, options_1);
+ }
+ return _push_2(message);
+ }
+
+ @JSName('push')
+ @DomName('NFC.push')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future _push_1(message, options) native;
+ @JSName('push')
+ @DomName('NFC.push')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future _push_2(message) native;
+
+ @DomName('NFC.watch')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future watch(MessageCallback callback, [Map options]) {
+ if (options != null) {
+ var options_1 = convertDartToNative_Dictionary(options);
+ return _watch_1(callback, options_1);
+ }
+ return _watch_2(callback);
+ }
+
+ @JSName('watch')
+ @DomName('NFC.watch')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future _watch_1(MessageCallback callback, options) native;
+ @JSName('watch')
+ @DomName('NFC.watch')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future _watch_2(MessageCallback callback) native;
}
// 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
@@ -25899,16 +26741,6 @@ class Node extends EventTarget {
@DocsEditable()
final Node lastChild;
- @JSName('localName')
- @DomName('Node.localName')
- @DocsEditable()
- final String _localName;
-
- @JSName('namespaceURI')
- @DomName('Node.namespaceURI')
- @DocsEditable()
- final String _namespaceUri;
-
@JSName('nextSibling')
/**
* The next sibling node.
@@ -26047,6 +26879,11 @@ class Node extends EventTarget {
@DocsEditable()
String text;
+ @DomName('Node.treeRoot')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Node treeRoot;
+
@JSName('appendChild')
/**
* Adds a node to the end of the child [nodes] list of this node.
@@ -26425,6 +27262,11 @@ class Notification extends EventTarget {
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.Notification)');
+ @DomName('Notification.actions')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final List<NotificationAction> actions;
+
@DomName('Notification.body')
@DocsEditable()
@Experimental() // untriaged
@@ -26452,10 +27294,25 @@ class Notification extends EventTarget {
@Experimental() // untriaged
final String lang;
+ @DomName('Notification.maxActions')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int maxActions;
+
@DomName('Notification.permission')
@DocsEditable()
final String permission;
+ @DomName('Notification.renotify')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool renotify;
+
+ @DomName('Notification.requireInteraction')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool requireInteraction;
+
@DomName('Notification.silent')
@DocsEditable()
@Experimental() // untriaged
@@ -26466,6 +27323,11 @@ class Notification extends EventTarget {
@Experimental() // nonstandard
final String tag;
+ @DomName('Notification.timestamp')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int timestamp;
+
@DomName('Notification.title')
@DocsEditable()
@Experimental() // untriaged
@@ -26483,8 +27345,8 @@ class Notification extends EventTarget {
@JSName('requestPermission')
@DomName('Notification.requestPermission')
@DocsEditable()
- static void _requestPermission([_NotificationPermissionCallback callback])
- native;
+ static Future _requestPermission(
+ [_NotificationPermissionCallback deprecatedCallback]) native;
@JSName('requestPermission')
@DomName('Notification.requestPermission')
@@ -26533,17 +27395,17 @@ class NotificationEvent extends ExtendableEvent {
@DomName('NotificationEvent.NotificationEvent')
@DocsEditable()
- factory NotificationEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return NotificationEvent._create_1(type, eventInitDict_1);
- }
- return NotificationEvent._create_2(type);
+ factory NotificationEvent(String type, Map eventInitDict) {
+ var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
+ return NotificationEvent._create_1(type, eventInitDict_1);
}
static NotificationEvent _create_1(type, eventInitDict) => JS(
'NotificationEvent', 'new NotificationEvent(#,#)', type, eventInitDict);
- static NotificationEvent _create_2(type) =>
- JS('NotificationEvent', 'new NotificationEvent(#)', type);
+
+ @DomName('NotificationEvent.action')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String action;
@DomName('NotificationEvent.notification')
@DocsEditable()
@@ -26564,6 +27426,33 @@ typedef void _NotificationPermissionCallback(String permission);
// 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.
+@DocsEditable()
+@DomName('NumberValue')
+@Experimental() // untriaged
+@Native("NumberValue")
+class NumberValue extends StyleValue {
+ // To suppress missing implicit constructor warnings.
+ factory NumberValue._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('NumberValue.NumberValue')
+ @DocsEditable()
+ factory NumberValue(num value) {
+ return NumberValue._create_1(value);
+ }
+ static NumberValue _create_1(value) =>
+ JS('NumberValue', 'new NumberValue(#)', value);
+
+ @DomName('NumberValue.value')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double value;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('HTMLOListElement')
@Native("HTMLOListElement")
@@ -26694,6 +27583,38 @@ class ObjectElement extends HtmlElement {
// 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.
+@DocsEditable()
+@DomName('OffscreenCanvas')
+@Experimental() // untriaged
+@Native("OffscreenCanvas")
+class OffscreenCanvas extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory OffscreenCanvas._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('OffscreenCanvas.OffscreenCanvas')
+ @DocsEditable()
+ factory OffscreenCanvas(int width, int height) {
+ return OffscreenCanvas._create_1(width, height);
+ }
+ static OffscreenCanvas _create_1(width, height) =>
+ JS('OffscreenCanvas', 'new OffscreenCanvas(#,#)', width, height);
+
+ @DomName('OffscreenCanvas.height')
+ @DocsEditable()
+ @Experimental() // untriaged
+ int height;
+
+ @DomName('OffscreenCanvas.width')
+ @DocsEditable()
+ @Experimental() // untriaged
+ int width;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('HTMLOptGroupElement')
@Native("HTMLOptGroupElement")
@@ -26843,7 +27764,7 @@ class OutputElement extends HtmlElement {
@DomName('HTMLOutputElement.htmlFor')
@DocsEditable()
- final DomSettableTokenList htmlFor;
+ final DomTokenList htmlFor;
@DomName('HTMLOutputElement.labels')
@DocsEditable()
@@ -27029,41 +27950,27 @@ class PasswordCredential extends Credential {
@DomName('PasswordCredential.PasswordCredential')
@DocsEditable()
- factory PasswordCredential(String id, String password,
- [String name, String iconURL]) {
- if (iconURL != null) {
- return PasswordCredential._create_1(id, password, name, iconURL);
- }
- if (name != null) {
- return PasswordCredential._create_2(id, password, name);
- }
- return PasswordCredential._create_3(id, password);
+ factory PasswordCredential(Map data) {
+ var data_1 = convertDartToNative_Dictionary(data);
+ return PasswordCredential._create_1(data_1);
}
- static PasswordCredential _create_1(id, password, name, iconURL) => JS(
- 'PasswordCredential',
- 'new PasswordCredential(#,#,#,#)',
- id,
- password,
- name,
- iconURL);
- static PasswordCredential _create_2(id, password, name) => JS(
- 'PasswordCredential',
- 'new PasswordCredential(#,#,#)',
- id,
- password,
- name);
- static PasswordCredential _create_3(id, password) =>
- JS('PasswordCredential', 'new PasswordCredential(#,#)', id, password);
+ static PasswordCredential _create_1(data) =>
+ JS('PasswordCredential', 'new PasswordCredential(#)', data);
+
+ @DomName('PasswordCredential.additionalData')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Object additionalData;
- @DomName('PasswordCredential.formData')
+ @DomName('PasswordCredential.idName')
@DocsEditable()
@Experimental() // untriaged
- final FormData formData;
+ String idName;
- @DomName('PasswordCredential.password')
+ @DomName('PasswordCredential.passwordName')
@DocsEditable()
@Experimental() // untriaged
- final String password;
+ String passwordName;
}
// 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
@@ -27085,10 +27992,10 @@ class Path2D extends Interceptor implements _CanvasPathMethods {
if (path_OR_text == null) {
return Path2D._create_1();
}
- if ((path_OR_text is Path2D || path_OR_text == null)) {
+ if ((path_OR_text is Path2D)) {
return Path2D._create_2(path_OR_text);
}
- if ((path_OR_text is String || path_OR_text == null)) {
+ if ((path_OR_text is String)) {
return Path2D._create_3(path_OR_text);
}
throw new ArgumentError("Incorrect number or type of arguments");
@@ -27170,21 +28077,6 @@ class Performance extends EventTarget {
throw new UnsupportedError("Not supported");
}
- /**
- * Static factory designed to expose `resourcetimingbufferfull` events to event
- * handlers that are not necessarily instances of [Performance].
- *
- * See [EventStreamProvider] for usage information.
- */
- @DomName('Performance.webkitresourcetimingbufferfullEvent')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourcetiming-methods
- static const EventStreamProvider<Event> resourceTimingBufferFullEvent =
- const EventStreamProvider<Event>('webkitresourcetimingbufferfull');
-
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.performance)');
@@ -27218,6 +28110,11 @@ class Performance extends EventTarget {
@Experimental()
void clearMeasures(String measureName) native;
+ @DomName('Performance.clearResourceTimings')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void clearResourceTimings() native;
+
@DomName('Performance.getEntries')
@DocsEditable()
// http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute
@@ -27257,31 +28154,10 @@ class Performance extends EventTarget {
@Experimental() // untriaged
void setFrameTimingBufferSize(int maxSize) native;
- @JSName('webkitClearResourceTimings')
- @DomName('Performance.webkitClearResourceTimings')
+ @DomName('Performance.setResourceTimingBufferSize')
@DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- // http://www.w3c-test.org/webperf/specs/ResourceTiming/#extensions-performance-interface
- void clearResourceTimings() native;
-
- @JSName('webkitSetResourceTimingBufferSize')
- @DomName('Performance.webkitSetResourceTimingBufferSize')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourcetiming-methods
+ @Experimental() // untriaged
void setResourceTimingBufferSize(int maxSize) native;
-
- /// Stream of `resourcetimingbufferfull` events handled by this [Performance].
- @DomName('Performance.onwebkitresourcetimingbufferfull')
- @DocsEditable()
- // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourcetiming-methods
- @Experimental()
- Stream<Event> get onResourceTimingBufferFull =>
- resourceTimingBufferFullEvent.forTarget(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
@@ -27405,6 +28281,69 @@ class PerformanceNavigation extends Interceptor {
// 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.
+@DocsEditable()
+@DomName('PerformanceObserver')
+@Experimental() // untriaged
+@Native("PerformanceObserver")
+class PerformanceObserver extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory PerformanceObserver._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('PerformanceObserver.disconnect')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void disconnect() native;
+
+ @DomName('PerformanceObserver.observe')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void observe(Map options) {
+ var options_1 = convertDartToNative_Dictionary(options);
+ _observe_1(options_1);
+ return;
+ }
+
+ @JSName('observe')
+ @DomName('PerformanceObserver.observe')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void _observe_1(options) native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('PerformanceObserverEntryList')
+@Experimental() // untriaged
+@Native("PerformanceObserverEntryList")
+class PerformanceObserverEntryList extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory PerformanceObserverEntryList._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('PerformanceObserverEntryList.getEntries')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<PerformanceEntry> getEntries() native;
+
+ @DomName('PerformanceObserverEntryList.getEntriesByName')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<PerformanceEntry> getEntriesByName(String name, String entryType) native;
+
+ @DomName('PerformanceObserverEntryList.getEntriesByType')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<PerformanceEntry> getEntriesByType(String entryType) native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('PerformanceRenderTiming')
@Experimental() // untriaged
@@ -27594,177 +28533,118 @@ class PerformanceTiming extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('PeriodicSyncEvent')
-@Experimental() // untriaged
-@Native("PeriodicSyncEvent")
-class PeriodicSyncEvent extends ExtendableEvent {
- // To suppress missing implicit constructor warnings.
- factory PeriodicSyncEvent._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('PeriodicSyncEvent.PeriodicSyncEvent')
- @DocsEditable()
- factory PeriodicSyncEvent(String type, Map init) {
- var init_1 = convertDartToNative_Dictionary(init);
- return PeriodicSyncEvent._create_1(type, init_1);
- }
- static PeriodicSyncEvent _create_1(type, init) =>
- JS('PeriodicSyncEvent', 'new PeriodicSyncEvent(#,#)', type, init);
-
- @DomName('PeriodicSyncEvent.registration')
- @DocsEditable()
- @Experimental() // untriaged
- final PeriodicSyncRegistration registration;
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('PeriodicSyncManager')
+@DomName('PermissionStatus')
@Experimental() // untriaged
-@Native("PeriodicSyncManager")
-class PeriodicSyncManager extends Interceptor {
+@Native("PermissionStatus")
+class PermissionStatus extends EventTarget {
// To suppress missing implicit constructor warnings.
- factory PeriodicSyncManager._() {
+ factory PermissionStatus._() {
throw new UnsupportedError("Not supported");
}
- @DomName('PeriodicSyncManager.minPossiblePeriod')
- @DocsEditable()
- @Experimental() // untriaged
- final int minPossiblePeriod;
-
- @DomName('PeriodicSyncManager.getRegistration')
- @DocsEditable()
- @Experimental() // untriaged
- Future getRegistration(String tag) native;
-
- @DomName('PeriodicSyncManager.getRegistrations')
- @DocsEditable()
- @Experimental() // untriaged
- Future getRegistrations() native;
-
- @DomName('PeriodicSyncManager.permissionState')
+ @DomName('PermissionStatus.changeEvent')
@DocsEditable()
@Experimental() // untriaged
- Future permissionState() native;
+ static const EventStreamProvider<Event> changeEvent =
+ const EventStreamProvider<Event>('change');
- @DomName('PeriodicSyncManager.register')
+ @DomName('PermissionStatus.state')
@DocsEditable()
@Experimental() // untriaged
- Future register([Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _register_1(options_1);
- }
- return _register_2();
- }
+ final String state;
- @JSName('register')
- @DomName('PeriodicSyncManager.register')
- @DocsEditable()
- @Experimental() // untriaged
- Future _register_1(options) native;
- @JSName('register')
- @DomName('PeriodicSyncManager.register')
+ @DomName('PermissionStatus.onchange')
@DocsEditable()
@Experimental() // untriaged
- Future _register_2() native;
+ Stream<Event> get onChange => changeEvent.forTarget(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
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('PeriodicSyncRegistration')
+@DomName('Permissions')
@Experimental() // untriaged
-@Native("PeriodicSyncRegistration")
-class PeriodicSyncRegistration extends Interceptor {
+@Native("Permissions")
+class Permissions extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory PeriodicSyncRegistration._() {
+ factory Permissions._() {
throw new UnsupportedError("Not supported");
}
- @DomName('PeriodicSyncRegistration.minPeriod')
- @DocsEditable()
- @Experimental() // untriaged
- final int minPeriod;
-
- @DomName('PeriodicSyncRegistration.networkState')
- @DocsEditable()
- @Experimental() // untriaged
- final String networkState;
-
- @DomName('PeriodicSyncRegistration.powerState')
+ @DomName('Permissions.query')
@DocsEditable()
@Experimental() // untriaged
- final String powerState;
+ Future query(Map permission) {
+ var permission_1 = convertDartToNative_Dictionary(permission);
+ return _query_1(permission_1);
+ }
- @DomName('PeriodicSyncRegistration.tag')
+ @JSName('query')
+ @DomName('Permissions.query')
@DocsEditable()
@Experimental() // untriaged
- final String tag;
+ Future _query_1(permission) native;
- @DomName('PeriodicSyncRegistration.unregister')
+ @DomName('Permissions.request')
@DocsEditable()
@Experimental() // untriaged
- Future unregister() native;
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('PermissionStatus')
-@Experimental() // untriaged
-@Native("PermissionStatus")
-class PermissionStatus extends EventTarget {
- // To suppress missing implicit constructor warnings.
- factory PermissionStatus._() {
- throw new UnsupportedError("Not supported");
+ Future request(Map permissions) {
+ var permissions_1 = convertDartToNative_Dictionary(permissions);
+ return _request_1(permissions_1);
}
- @DomName('PermissionStatus.changeEvent')
+ @JSName('request')
+ @DomName('Permissions.request')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<Event> changeEvent =
- const EventStreamProvider<Event>('change');
+ Future _request_1(permissions) native;
- @DomName('PermissionStatus.state')
+ @DomName('Permissions.requestAll')
@DocsEditable()
@Experimental() // untriaged
- final String state;
+ Future requestAll(List<Map> permissions) native;
- @DomName('PermissionStatus.status')
+ @DomName('Permissions.revoke')
@DocsEditable()
@Experimental() // untriaged
- final String status;
+ Future revoke(Map permission) {
+ var permission_1 = convertDartToNative_Dictionary(permission);
+ return _revoke_1(permission_1);
+ }
- @DomName('PermissionStatus.onchange')
+ @JSName('revoke')
+ @DomName('Permissions.revoke')
@DocsEditable()
@Experimental() // untriaged
- Stream<Event> get onChange => changeEvent.forTarget(this);
+ Future _revoke_1(permission) native;
}
// 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
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('Permissions')
+@DomName('Perspective')
@Experimental() // untriaged
-@Native("Permissions")
-class Permissions extends Interceptor {
+@Native("Perspective")
+class Perspective extends TransformComponent {
// To suppress missing implicit constructor warnings.
- factory Permissions._() {
+ factory Perspective._() {
throw new UnsupportedError("Not supported");
}
- @DomName('Permissions.query')
+ @DomName('Perspective.Perspective')
+ @DocsEditable()
+ factory Perspective(LengthValue length) {
+ return Perspective._create_1(length);
+ }
+ static Perspective _create_1(length) =>
+ JS('Perspective', 'new Perspective(#)', length);
+
+ @DomName('Perspective.length')
@DocsEditable()
@Experimental() // untriaged
- Future query(Object permission) native;
+ final LengthValue length;
}
// 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
@@ -27903,41 +28783,6 @@ class PluginArray extends Interceptor
// 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.
-@DocsEditable()
-@DomName('PluginPlaceholderElement')
-@Experimental() // untriaged
-@Native("PluginPlaceholderElement")
-class PluginPlaceholderElement extends DivElement {
- // To suppress missing implicit constructor warnings.
- factory PluginPlaceholderElement._() {
- throw new UnsupportedError("Not supported");
- }
- /**
- * Constructor instantiated by the DOM when a custom element has been created.
- *
- * This can only be called by subclasses from their created constructor.
- */
- PluginPlaceholderElement.created() : super.created();
-
- @DomName('PluginPlaceholderElement.closeable')
- @DocsEditable()
- @Experimental() // untriaged
- bool closeable;
-
- @DomName('PluginPlaceholderElement.message')
- @DocsEditable()
- @Experimental() // untriaged
- String message;
-
- @DomName('PluginPlaceholderElement.createdCallback')
- @DocsEditable()
- @Experimental() // untriaged
- void createdCallback() native;
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('PointerEvent')
@Experimental() // untriaged
@@ -28129,6 +28974,38 @@ class PositionSensorVRDevice extends VRDevice {
// 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.
+@DocsEditable()
+@DomName('PositionValue')
+@Experimental() // untriaged
+@Native("PositionValue")
+class PositionValue extends StyleValue {
+ // To suppress missing implicit constructor warnings.
+ factory PositionValue._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('PositionValue.PositionValue')
+ @DocsEditable()
+ factory PositionValue(LengthValue x, LengthValue y) {
+ return PositionValue._create_1(x, y);
+ }
+ static PositionValue _create_1(x, y) =>
+ JS('PositionValue', 'new PositionValue(#,#)', x, y);
+
+ @DomName('PositionValue.x')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final LengthValue x;
+
+ @DomName('PositionValue.y')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final LengthValue y;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('HTMLPreElement')
@Native("HTMLPreElement")
@@ -28157,31 +29034,21 @@ class PreElement extends HtmlElement {
@DomName('Presentation')
@Experimental() // untriaged
@Native("Presentation")
-class Presentation extends EventTarget {
+class Presentation extends Interceptor {
// To suppress missing implicit constructor warnings.
factory Presentation._() {
throw new UnsupportedError("Not supported");
}
- @DomName('Presentation.session')
- @DocsEditable()
- @Experimental() // untriaged
- final PresentationSession session;
-
- @DomName('Presentation.getAvailability')
- @DocsEditable()
- @Experimental() // untriaged
- Future getAvailability(String url) native;
-
- @DomName('Presentation.joinSession')
+ @DomName('Presentation.defaultRequest')
@DocsEditable()
@Experimental() // untriaged
- Future joinSession(String url, String presentationId) native;
+ PresentationRequest defaultRequest;
- @DomName('Presentation.startSession')
+ @DomName('Presentation.receiver')
@DocsEditable()
@Experimental() // untriaged
- Future startSession(String url) native;
+ final PresentationReceiver receiver;
}
// 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
@@ -28218,47 +29085,52 @@ class PresentationAvailability extends EventTarget {
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('PresentationSession')
+@DomName('PresentationConnection')
@Experimental() // untriaged
-@Native("PresentationSession")
-class PresentationSession extends EventTarget {
+@Native("PresentationConnection")
+class PresentationConnection extends EventTarget {
// To suppress missing implicit constructor warnings.
- factory PresentationSession._() {
+ factory PresentationConnection._() {
throw new UnsupportedError("Not supported");
}
- @DomName('PresentationSession.messageEvent')
+ @DomName('PresentationConnection.messageEvent')
@DocsEditable()
@Experimental() // untriaged
static const EventStreamProvider<MessageEvent> messageEvent =
const EventStreamProvider<MessageEvent>('message');
- @DomName('PresentationSession.binaryType')
+ @DomName('PresentationConnection.binaryType')
@DocsEditable()
@Experimental() // untriaged
String binaryType;
- @DomName('PresentationSession.id')
+ @DomName('PresentationConnection.id')
@DocsEditable()
@Experimental() // untriaged
final String id;
- @DomName('PresentationSession.state')
+ @DomName('PresentationConnection.state')
@DocsEditable()
@Experimental() // untriaged
final String state;
- @DomName('PresentationSession.close')
+ @DomName('PresentationConnection.close')
@DocsEditable()
@Experimental() // untriaged
void close() native;
- @DomName('PresentationSession.send')
+ @DomName('PresentationConnection.send')
@DocsEditable()
@Experimental() // untriaged
void send(data_OR_message) native;
- @DomName('PresentationSession.onmessage')
+ @DomName('PresentationConnection.terminate')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void terminate() native;
+
+ @DomName('PresentationConnection.onmessage')
@DocsEditable()
@Experimental() // untriaged
Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
@@ -28267,6 +29139,134 @@ class PresentationSession extends EventTarget {
// 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.
+@DocsEditable()
+@DomName('PresentationConnectionAvailableEvent')
+@Experimental() // untriaged
+@Native("PresentationConnectionAvailableEvent")
+class PresentationConnectionAvailableEvent extends Event {
+ // To suppress missing implicit constructor warnings.
+ factory PresentationConnectionAvailableEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName(
+ 'PresentationConnectionAvailableEvent.PresentationConnectionAvailableEvent')
+ @DocsEditable()
+ factory PresentationConnectionAvailableEvent(String type, Map eventInitDict) {
+ var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
+ return PresentationConnectionAvailableEvent._create_1(
+ type, eventInitDict_1);
+ }
+ static PresentationConnectionAvailableEvent _create_1(type, eventInitDict) =>
+ JS('PresentationConnectionAvailableEvent',
+ 'new PresentationConnectionAvailableEvent(#,#)', type, eventInitDict);
+
+ @DomName('PresentationConnectionAvailableEvent.connection')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final PresentationConnection connection;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('PresentationConnectionCloseEvent')
+@Experimental() // untriaged
+@Native("PresentationConnectionCloseEvent")
+class PresentationConnectionCloseEvent extends Event {
+ // To suppress missing implicit constructor warnings.
+ factory PresentationConnectionCloseEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('PresentationConnectionCloseEvent.PresentationConnectionCloseEvent')
+ @DocsEditable()
+ factory PresentationConnectionCloseEvent(String type, Map eventInitDict) {
+ var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
+ return PresentationConnectionCloseEvent._create_1(type, eventInitDict_1);
+ }
+ static PresentationConnectionCloseEvent _create_1(type, eventInitDict) => JS(
+ 'PresentationConnectionCloseEvent',
+ 'new PresentationConnectionCloseEvent(#,#)',
+ type,
+ eventInitDict);
+
+ @DomName('PresentationConnectionCloseEvent.message')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String message;
+
+ @DomName('PresentationConnectionCloseEvent.reason')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String reason;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('PresentationReceiver')
+@Experimental() // untriaged
+@Native("PresentationReceiver")
+class PresentationReceiver extends EventTarget {
+ // To suppress missing implicit constructor warnings.
+ factory PresentationReceiver._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('PresentationReceiver.getConnection')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future getConnection() native;
+
+ @DomName('PresentationReceiver.getConnections')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future getConnections() native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('PresentationRequest')
+@Experimental() // untriaged
+@Native("PresentationRequest")
+class PresentationRequest extends EventTarget {
+ // To suppress missing implicit constructor warnings.
+ factory PresentationRequest._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('PresentationRequest.PresentationRequest')
+ @DocsEditable()
+ factory PresentationRequest(String url) {
+ return PresentationRequest._create_1(url);
+ }
+ static PresentationRequest _create_1(url) =>
+ JS('PresentationRequest', 'new PresentationRequest(#)', url);
+
+ @DomName('PresentationRequest.getAvailability')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future getAvailability() native;
+
+ @DomName('PresentationRequest.reconnect')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future reconnect(String id) native;
+
+ @DomName('PresentationRequest.start')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future start() native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('ProcessingInstruction')
@Unstable()
@@ -28390,20 +29390,15 @@ class PromiseRejectionEvent extends Event {
@DomName('PromiseRejectionEvent.PromiseRejectionEvent')
@DocsEditable()
- factory PromiseRejectionEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return PromiseRejectionEvent._create_1(type, eventInitDict_1);
- }
- return PromiseRejectionEvent._create_2(type);
+ factory PromiseRejectionEvent(String type, Map eventInitDict) {
+ var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
+ return PromiseRejectionEvent._create_1(type, eventInitDict_1);
}
static PromiseRejectionEvent _create_1(type, eventInitDict) => JS(
'PromiseRejectionEvent',
'new PromiseRejectionEvent(#,#)',
type,
eventInitDict);
- static PromiseRejectionEvent _create_2(type) =>
- JS('PromiseRejectionEvent', 'new PromiseRejectionEvent(#)', type);
@DomName('PromiseRejectionEvent.promise')
@DocsEditable()
@@ -28524,14 +29519,6 @@ class PushMessageData extends Interceptor {
throw new UnsupportedError("Not supported");
}
- @DomName('PushMessageData.PushMessageData')
- @DocsEditable()
- factory PushMessageData(String message) {
- return PushMessageData._create_1(message);
- }
- static PushMessageData _create_1(message) =>
- JS('PushMessageData', 'new PushMessageData(#)', message);
-
@DomName('PushMessageData.arrayBuffer')
@DocsEditable()
@Experimental() // untriaged
@@ -28571,6 +29558,11 @@ class PushSubscription extends Interceptor {
@Experimental() // untriaged
final String endpoint;
+ @DomName('PushSubscription.getKey')
+ @DocsEditable()
+ @Experimental() // untriaged
+ ByteBuffer getKey(String name) native;
+
@DomName('PushSubscription.unsubscribe')
@DocsEditable()
@Experimental() // untriaged
@@ -28613,10 +29605,9 @@ class QuoteElement extends HtmlElement {
// WARNING: Do not edit - generated code.
-@DomName('RTCErrorCallback')
-// http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcerror
-@Experimental()
-typedef void _RtcErrorCallback(String errorInformation);
+@DomName('RTCPeerConnectionErrorCallback')
+@Experimental() // untriaged
+typedef void RtcPeerConnectionErrorCallback(DomException exception);
// 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
// BSD-style license that can be found in the LICENSE file.
@@ -28864,30 +29855,6 @@ class ReadableByteStreamReader extends Interceptor {
// 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.
-@DocsEditable()
-@DomName('ReadableStream')
-@Experimental() // untriaged
-@Native("ReadableStream")
-class ReadableStream extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory ReadableStream._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('ReadableStream.cancel')
- @DocsEditable()
- @Experimental() // untriaged
- Future cancel([Object reason]) native;
-
- @DomName('ReadableStream.getReader')
- @DocsEditable()
- @Experimental() // untriaged
- ReadableStreamReader getReader() native;
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('ReadableStreamReader')
@Experimental() // untriaged
@@ -28969,6 +29936,74 @@ typedef void RequestAnimationFrameCallback(num highResTime);
// 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.
+@DocsEditable()
+@DomName('Rotation')
+@Experimental() // untriaged
+@Native("Rotation")
+class Rotation extends TransformComponent {
+ // To suppress missing implicit constructor warnings.
+ factory Rotation._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('Rotation.Rotation')
+ @DocsEditable()
+ factory Rotation(num angle, [num x, num y, num z]) {
+ if ((angle is num) && x == null && y == null && z == null) {
+ return Rotation._create_1(angle);
+ }
+ if ((z is num) && (y is num) && (x is num) && (angle is num)) {
+ return Rotation._create_2(angle, x, y, z);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
+ }
+ static Rotation _create_1(angle) => JS('Rotation', 'new Rotation(#)', angle);
+ static Rotation _create_2(angle, x, y, z) =>
+ JS('Rotation', 'new Rotation(#,#,#,#)', angle, x, y, z);
+
+ @DomName('Rotation.angle')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double angle;
+
+ @DomName('Rotation.x')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double x;
+
+ @DomName('Rotation.y')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double y;
+
+ @DomName('Rotation.z')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double z;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('RTCCertificate')
+@Experimental() // untriaged
+@Native("RTCCertificate")
+class RtcCertificate extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory RtcCertificate._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('RTCCertificate.expires')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int expires;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('RTCDataChannel')
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDataChannel
@@ -29032,6 +30067,11 @@ class RtcDataChannel extends EventTarget {
@DocsEditable()
final int bufferedAmount;
+ @DomName('RTCDataChannel.bufferedAmountLowThreshold')
+ @DocsEditable()
+ @Experimental() // untriaged
+ int bufferedAmountLowThreshold;
+
@DomName('RTCDataChannel.id')
@DocsEditable()
@Experimental() // untriaged
@@ -29366,6 +30406,12 @@ class RtcPeerConnection extends EventTarget {
return completer.future;
}
+ @DomName('RTCPeerConnection.generateCertificate')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static Future generateCertificate(/*AlgorithmIdentifier*/ keygenAlgorithm) =>
+ JS('dynamic', 'generateCertificate(#)', keygenAlgorithm);
+
// To suppress missing implicit constructor warnings.
factory RtcPeerConnection._() {
throw new UnsupportedError("Not supported");
@@ -29470,8 +30516,9 @@ class RtcPeerConnection extends EventTarget {
@DomName('RTCPeerConnection.addIceCandidate')
@DocsEditable()
- void addIceCandidate(RtcIceCandidate candidate, VoidCallback successCallback,
- _RtcErrorCallback failureCallback) native;
+ Future addIceCandidate(candidate,
+ [VoidCallback successCallback,
+ RtcPeerConnectionErrorCallback failureCallback]) native;
@DomName('RTCPeerConnection.addStream')
@DocsEditable()
@@ -29501,7 +30548,8 @@ class RtcPeerConnection extends EventTarget {
@DomName('RTCPeerConnection.createAnswer')
@DocsEditable()
void _createAnswer(_RtcSessionDescriptionCallback successCallback,
- [_RtcErrorCallback failureCallback, Map mediaConstraints]) {
+ RtcPeerConnectionErrorCallback failureCallback,
+ [Map mediaConstraints]) {
if (mediaConstraints != null) {
var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
_createAnswer_1(successCallback, failureCallback, mediaConstraints_1);
@@ -29515,12 +30563,12 @@ class RtcPeerConnection extends EventTarget {
@DomName('RTCPeerConnection.createAnswer')
@DocsEditable()
void _createAnswer_1(_RtcSessionDescriptionCallback successCallback,
- _RtcErrorCallback failureCallback, mediaConstraints) native;
+ RtcPeerConnectionErrorCallback failureCallback, mediaConstraints) native;
@JSName('createAnswer')
@DomName('RTCPeerConnection.createAnswer')
@DocsEditable()
void _createAnswer_2(_RtcSessionDescriptionCallback successCallback,
- _RtcErrorCallback failureCallback) native;
+ RtcPeerConnectionErrorCallback failureCallback) native;
@JSName('createDTMFSender')
@DomName('RTCPeerConnection.createDTMFSender')
@@ -29549,7 +30597,8 @@ class RtcPeerConnection extends EventTarget {
@DomName('RTCPeerConnection.createOffer')
@DocsEditable()
void _createOffer(_RtcSessionDescriptionCallback successCallback,
- [_RtcErrorCallback failureCallback, Map rtcOfferOptions]) {
+ RtcPeerConnectionErrorCallback failureCallback,
+ [Map rtcOfferOptions]) {
if (rtcOfferOptions != null) {
var rtcOfferOptions_1 = convertDartToNative_Dictionary(rtcOfferOptions);
_createOffer_1(successCallback, failureCallback, rtcOfferOptions_1);
@@ -29563,12 +30612,12 @@ class RtcPeerConnection extends EventTarget {
@DomName('RTCPeerConnection.createOffer')
@DocsEditable()
void _createOffer_1(_RtcSessionDescriptionCallback successCallback,
- _RtcErrorCallback failureCallback, rtcOfferOptions) native;
+ RtcPeerConnectionErrorCallback failureCallback, rtcOfferOptions) native;
@JSName('createOffer')
@DomName('RTCPeerConnection.createOffer')
@DocsEditable()
void _createOffer_2(_RtcSessionDescriptionCallback successCallback,
- _RtcErrorCallback failureCallback) native;
+ RtcPeerConnectionErrorCallback failureCallback) native;
@DomName('RTCPeerConnection.getLocalStreams')
@DocsEditable()
@@ -29595,8 +30644,9 @@ class RtcPeerConnection extends EventTarget {
@JSName('setLocalDescription')
@DomName('RTCPeerConnection.setLocalDescription')
@DocsEditable()
- void _setLocalDescription(RtcSessionDescription description,
- [VoidCallback successCallback, _RtcErrorCallback failureCallback]) native;
+ Future _setLocalDescription(
+ RtcSessionDescription description, VoidCallback successCallback,
+ [RtcPeerConnectionErrorCallback failureCallback]) native;
@JSName('setLocalDescription')
@DomName('RTCPeerConnection.setLocalDescription')
@@ -29614,8 +30664,9 @@ class RtcPeerConnection extends EventTarget {
@JSName('setRemoteDescription')
@DomName('RTCPeerConnection.setRemoteDescription')
@DocsEditable()
- void _setRemoteDescription(RtcSessionDescription description,
- [VoidCallback successCallback, _RtcErrorCallback failureCallback]) native;
+ Future _setRemoteDescription(
+ RtcSessionDescription description, VoidCallback successCallback,
+ [RtcPeerConnectionErrorCallback failureCallback]) native;
@JSName('setRemoteDescription')
@DomName('RTCPeerConnection.setRemoteDescription')
@@ -29801,6 +30852,49 @@ class RtcStatsResponse extends Interceptor {
@DocsEditable()
List<RtcStatsReport> result() native;
}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('Scale')
+@Experimental() // untriaged
+@Native("Scale")
+class Scale extends TransformComponent {
+ // To suppress missing implicit constructor warnings.
+ factory Scale._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('Scale.Scale')
+ @DocsEditable()
+ factory Scale(num x, num y, [num z]) {
+ if ((y is num) && (x is num) && z == null) {
+ return Scale._create_1(x, y);
+ }
+ if ((z is num) && (y is num) && (x is num)) {
+ return Scale._create_2(x, y, z);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
+ }
+ static Scale _create_1(x, y) => JS('Scale', 'new Scale(#,#)', x, y);
+ static Scale _create_2(x, y, z) => JS('Scale', 'new Scale(#,#,#)', x, y, z);
+
+ @DomName('Scale.x')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double x;
+
+ @DomName('Scale.y')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double y;
+
+ @DomName('Scale.z')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double z;
+}
// Copyright (c) 2013, 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.
@@ -29850,6 +30944,11 @@ class Screen extends Interceptor {
@DocsEditable()
final int height;
+ @DomName('Screen.keepAwake')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool keepAwake;
+
@DomName('Screen.orientation')
@DocsEditable()
@Experimental() // untriaged
@@ -29988,84 +31087,16 @@ class ScrollState extends Interceptor {
@DomName('ScrollState.ScrollState')
@DocsEditable()
- factory ScrollState(
- [num deltaX,
- num deltaY,
- num deltaGranularity,
- num velocityX,
- num velocityY,
- bool inInertialPhase,
- bool isBeginning,
- bool isEnding]) {
- if (isEnding != null) {
- return ScrollState._create_1(deltaX, deltaY, deltaGranularity, velocityX,
- velocityY, inInertialPhase, isBeginning, isEnding);
- }
- if (isBeginning != null) {
- return ScrollState._create_2(deltaX, deltaY, deltaGranularity, velocityX,
- velocityY, inInertialPhase, isBeginning);
+ factory ScrollState([Map scrollStateInit]) {
+ if (scrollStateInit != null) {
+ var scrollStateInit_1 = convertDartToNative_Dictionary(scrollStateInit);
+ return ScrollState._create_1(scrollStateInit_1);
}
- if (inInertialPhase != null) {
- return ScrollState._create_3(deltaX, deltaY, deltaGranularity, velocityX,
- velocityY, inInertialPhase);
- }
- if (velocityY != null) {
- return ScrollState._create_4(
- deltaX, deltaY, deltaGranularity, velocityX, velocityY);
- }
- if (velocityX != null) {
- return ScrollState._create_5(deltaX, deltaY, deltaGranularity, velocityX);
- }
- if (deltaGranularity != null) {
- return ScrollState._create_6(deltaX, deltaY, deltaGranularity);
- }
- if (deltaY != null) {
- return ScrollState._create_7(deltaX, deltaY);
- }
- if (deltaX != null) {
- return ScrollState._create_8(deltaX);
- }
- return ScrollState._create_9();
+ return ScrollState._create_2();
}
- static ScrollState _create_1(deltaX, deltaY, deltaGranularity, velocityX,
- velocityY, inInertialPhase, isBeginning, isEnding) =>
- JS(
- 'ScrollState',
- 'new ScrollState(#,#,#,#,#,#,#,#)',
- deltaX,
- deltaY,
- deltaGranularity,
- velocityX,
- velocityY,
- inInertialPhase,
- isBeginning,
- isEnding);
- static ScrollState _create_2(deltaX, deltaY, deltaGranularity, velocityX,
- velocityY, inInertialPhase, isBeginning) =>
- JS('ScrollState', 'new ScrollState(#,#,#,#,#,#,#)', deltaX, deltaY,
- deltaGranularity, velocityX, velocityY, inInertialPhase, isBeginning);
- static ScrollState _create_3(deltaX, deltaY, deltaGranularity, velocityX,
- velocityY, inInertialPhase) =>
- JS('ScrollState', 'new ScrollState(#,#,#,#,#,#)', deltaX, deltaY,
- deltaGranularity, velocityX, velocityY, inInertialPhase);
- static ScrollState _create_4(
- deltaX, deltaY, deltaGranularity, velocityX, velocityY) =>
- JS('ScrollState', 'new ScrollState(#,#,#,#,#)', deltaX, deltaY,
- deltaGranularity, velocityX, velocityY);
- static ScrollState _create_5(deltaX, deltaY, deltaGranularity, velocityX) =>
- JS('ScrollState', 'new ScrollState(#,#,#,#)', deltaX, deltaY,
- deltaGranularity, velocityX);
- static ScrollState _create_6(deltaX, deltaY, deltaGranularity) => JS(
- 'ScrollState',
- 'new ScrollState(#,#,#)',
- deltaX,
- deltaY,
- deltaGranularity);
- static ScrollState _create_7(deltaX, deltaY) =>
- JS('ScrollState', 'new ScrollState(#,#)', deltaX, deltaY);
- static ScrollState _create_8(deltaX) =>
- JS('ScrollState', 'new ScrollState(#)', deltaX);
- static ScrollState _create_9() => JS('ScrollState', 'new ScrollState()');
+ static ScrollState _create_1(scrollStateInit) =>
+ JS('ScrollState', 'new ScrollState(#)', scrollStateInit);
+ static ScrollState _create_2() => JS('ScrollState', 'new ScrollState()');
@DomName('ScrollState.deltaGranularity')
@DocsEditable()
@@ -30097,6 +31128,11 @@ class ScrollState extends Interceptor {
@Experimental() // untriaged
final bool isBeginning;
+ @DomName('ScrollState.isDirectManipulation')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool isDirectManipulation;
+
@DomName('ScrollState.isEnding')
@DocsEditable()
@Experimental() // untriaged
@@ -30107,6 +31143,16 @@ class ScrollState extends Interceptor {
@Experimental() // untriaged
final bool shouldPropagate;
+ @DomName('ScrollState.startPositionX')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int startPositionX;
+
+ @DomName('ScrollState.startPositionY')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int startPositionY;
+
@DomName('ScrollState.velocityX')
@DocsEditable()
@Experimental() // untriaged
@@ -30121,11 +31167,25 @@ class ScrollState extends Interceptor {
@DocsEditable()
@Experimental() // untriaged
void consumeDelta(num x, num y) native;
+
+ @DomName('ScrollState.distributeToScrollChainDescendant')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void distributeToScrollChainDescendant() native;
}
// 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
// BSD-style license that can be found in the LICENSE file.
+// WARNING: Do not edit - generated code.
+
+@DomName('ScrollStateCallback')
+@Experimental() // untriaged
+typedef void ScrollStateCallback(ScrollState scrollState);
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('SecurityPolicyViolationEvent')
// https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html#securitypolicyviolationevent-events
@@ -30416,7 +31476,7 @@ class Selection extends Interceptor {
@DomName('Selection.containsNode')
@DocsEditable()
@Experimental() // non-standard
- bool containsNode(Node node, bool allowPartialContainment) native;
+ bool containsNode(Node node, [bool allowPartialContainment]) native;
@DomName('Selection.deleteFromDocument')
@DocsEditable()
@@ -30742,11 +31802,6 @@ class ServiceWorkerGlobalScope extends WorkerGlobalScope {
@Experimental() // untriaged
final Clients clients;
- @DomName('ServiceWorkerGlobalScope.ports')
- @DocsEditable()
- @Experimental() // untriaged
- final StashedPortCollection ports;
-
@DomName('ServiceWorkerGlobalScope.registration')
@DocsEditable()
@Experimental() // untriaged
@@ -30793,23 +31848,6 @@ class ServiceWorkerMessageEvent extends Event {
throw new UnsupportedError("Not supported");
}
- @DomName('ServiceWorkerMessageEvent.ServiceWorkerMessageEvent')
- @DocsEditable()
- factory ServiceWorkerMessageEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return ServiceWorkerMessageEvent._create_1(type, eventInitDict_1);
- }
- return ServiceWorkerMessageEvent._create_2(type);
- }
- static ServiceWorkerMessageEvent _create_1(type, eventInitDict) => JS(
- 'ServiceWorkerMessageEvent',
- 'new ServiceWorkerMessageEvent(#,#)',
- type,
- eventInitDict);
- static ServiceWorkerMessageEvent _create_2(type) =>
- JS('ServiceWorkerMessageEvent', 'new ServiceWorkerMessageEvent(#)', type);
-
@DomName('ServiceWorkerMessageEvent.lastEventId')
@DocsEditable()
@Experimental() // untriaged
@@ -30861,11 +31899,6 @@ class ServiceWorkerRegistration extends EventTarget {
@Experimental() // untriaged
final _ServiceWorker installing;
- @DomName('ServiceWorkerRegistration.periodicSync')
- @DocsEditable()
- @Experimental() // untriaged
- final PeriodicSyncManager periodicSync;
-
@DomName('ServiceWorkerRegistration.pushManager')
@DocsEditable()
@Experimental() // untriaged
@@ -30938,7 +31971,7 @@ class ServiceWorkerRegistration extends EventTarget {
@DomName('ServiceWorkerRegistration.update')
@DocsEditable()
@Experimental() // untriaged
- void update() native;
+ Future update() native;
}
// 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
@@ -31027,7 +32060,7 @@ class ShadowRoot extends DocumentFragment {
@JSName('cloneNode')
@DomName('ShadowRoot.cloneNode')
@DocsEditable()
- Node clone(bool deep) native;
+ Node clone([bool deep]) native;
@DomName('ShadowRoot.elementFromPoint')
@DocsEditable()
@@ -31175,11 +32208,61 @@ class SharedWorkerGlobalScope extends WorkerGlobalScope {
static const EventStreamProvider<Event> connectEvent =
const EventStreamProvider<Event>('connect');
+ @DomName('SharedWorkerGlobalScope.PERSISTENT')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const int PERSISTENT = 1;
+
+ @DomName('SharedWorkerGlobalScope.TEMPORARY')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const int TEMPORARY = 0;
+
@DomName('SharedWorkerGlobalScope.name')
@DocsEditable()
@Experimental() // untriaged
final String name;
+ @JSName('webkitRequestFileSystem')
+ @DomName('SharedWorkerGlobalScope.webkitRequestFileSystem')
+ @DocsEditable()
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
+ @Experimental() // untriaged
+ void _webkitRequestFileSystem(int type, int size,
+ [_FileSystemCallback successCallback,
+ _ErrorCallback errorCallback]) native;
+
+ @JSName('webkitRequestFileSystemSync')
+ @DomName('SharedWorkerGlobalScope.webkitRequestFileSystemSync')
+ @DocsEditable()
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
+ @Experimental() // untriaged
+ _DOMFileSystemSync requestFileSystemSync(int type, int size) native;
+
+ @JSName('webkitResolveLocalFileSystemSyncURL')
+ @DomName('SharedWorkerGlobalScope.webkitResolveLocalFileSystemSyncURL')
+ @DocsEditable()
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
+ @Experimental() // untriaged
+ _EntrySync resolveLocalFileSystemSyncUrl(String url) native;
+
+ @JSName('webkitResolveLocalFileSystemURL')
+ @DomName('SharedWorkerGlobalScope.webkitResolveLocalFileSystemURL')
+ @DocsEditable()
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
+ @Experimental() // untriaged
+ void _webkitResolveLocalFileSystemUrl(
+ String url, _EntryCallback successCallback,
+ [_ErrorCallback errorCallback]) native;
+
/// Stream of `connect` events handled by this [SharedWorkerGlobalScope].
@DomName('SharedWorkerGlobalScope.onconnect')
@DocsEditable()
@@ -31190,6 +32273,116 @@ class SharedWorkerGlobalScope extends WorkerGlobalScope {
// 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.
+@DocsEditable()
+@DomName('SimpleLength')
+@Experimental() // untriaged
+@Native("SimpleLength")
+class SimpleLength extends LengthValue {
+ // To suppress missing implicit constructor warnings.
+ factory SimpleLength._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('SimpleLength.SimpleLength')
+ @DocsEditable()
+ factory SimpleLength(num value, String type) {
+ return SimpleLength._create_1(value, type);
+ }
+ static SimpleLength _create_1(value, type) =>
+ JS('SimpleLength', 'new SimpleLength(#,#)', value, type);
+
+ @DomName('SimpleLength.type')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String type;
+
+ @DomName('SimpleLength.value')
+ @DocsEditable()
+ @Experimental() // untriaged
+ num value;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('Skew')
+@Experimental() // untriaged
+@Native("Skew")
+class Skew extends TransformComponent {
+ // To suppress missing implicit constructor warnings.
+ factory Skew._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('Skew.Skew')
+ @DocsEditable()
+ factory Skew(num ax, num ay) {
+ return Skew._create_1(ax, ay);
+ }
+ static Skew _create_1(ax, ay) => JS('Skew', 'new Skew(#,#)', ax, ay);
+
+ @DomName('Skew.ax')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double ax;
+
+ @DomName('Skew.ay')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double ay;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('HTMLSlotElement')
+@Experimental() // untriaged
+@Native("HTMLSlotElement")
+class SlotElement extends HtmlElement {
+ // To suppress missing implicit constructor warnings.
+ factory SlotElement._() {
+ throw new UnsupportedError("Not supported");
+ }
+ /**
+ * Constructor instantiated by the DOM when a custom element has been created.
+ *
+ * This can only be called by subclasses from their created constructor.
+ */
+ SlotElement.created() : super.created();
+
+ @DomName('HTMLSlotElement.name')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String name;
+
+ @DomName('HTMLSlotElement.getAssignedNodes')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<Node> getAssignedNodes([Map options]) {
+ if (options != null) {
+ var options_1 = convertDartToNative_Dictionary(options);
+ return _getAssignedNodes_1(options_1);
+ }
+ return _getAssignedNodes_2();
+ }
+
+ @JSName('getAssignedNodes')
+ @DomName('HTMLSlotElement.getAssignedNodes')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<Node> _getAssignedNodes_1(options) native;
+ @JSName('getAssignedNodes')
+ @DomName('HTMLSlotElement.getAssignedNodes')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<Node> _getAssignedNodes_2() native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('SourceBuffer')
// https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#sourcebuffer
@@ -31717,12 +32910,6 @@ class SpeechRecognition extends EventTarget {
@DocsEditable()
int maxAlternatives;
- @JSName('serviceURI')
- @DomName('SpeechRecognition.serviceURI')
- @DocsEditable()
- @Experimental() // untriaged
- String serviceUri;
-
@DomName('SpeechRecognition.abort')
@DocsEditable()
void abort() native;
@@ -32223,55 +33410,6 @@ class SpeechSynthesisVoice extends Interceptor {
// 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.
-@DocsEditable()
-@DomName('StashedMessagePort')
-@Experimental() // untriaged
-@Native("StashedMessagePort")
-class StashedMessagePort extends MessagePort {
- // To suppress missing implicit constructor warnings.
- factory StashedMessagePort._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('StashedMessagePort.name')
- @DocsEditable()
- @Experimental() // untriaged
- final String name;
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('StashedPortCollection')
-@Experimental() // untriaged
-@Native("StashedPortCollection")
-class StashedPortCollection extends EventTarget {
- // To suppress missing implicit constructor warnings.
- factory StashedPortCollection._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('StashedPortCollection.messageEvent')
- @DocsEditable()
- @Experimental() // untriaged
- static const EventStreamProvider<MessageEvent> messageEvent =
- const EventStreamProvider<MessageEvent>('message');
-
- @DomName('StashedPortCollection.add')
- @DocsEditable()
- @Experimental() // untriaged
- StashedMessagePort add(String name, MessagePort port) native;
-
- @DomName('StashedPortCollection.onmessage')
- @DocsEditable()
- @Experimental() // untriaged
- Stream<MessageEvent> get onMessage => messageEvent.forTarget(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
-// BSD-style license that can be found in the LICENSE file.
-
/**
* The type used by the
* [Window.localStorage] and [Window.sessionStorage] properties.
@@ -32402,7 +33540,7 @@ class Storage extends Interceptor implements Map<String, String> {
@JSName('setItem')
@DomName('Storage.setItem')
@DocsEditable()
- void _setItem(String key, String data) native;
+ void _setItem(String key, String value) native;
}
// 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
@@ -32514,6 +33652,30 @@ class StorageInfo extends Interceptor {
// 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.
+@DocsEditable()
+@DomName('StorageManager')
+@Experimental() // untriaged
+@Native("StorageManager")
+class StorageManager extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory StorageManager._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('StorageManager.persistentPermission')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future persistentPermission() native;
+
+ @DomName('StorageManager.requestPersistent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future requestPersistent() native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('StorageQuota')
// http://www.w3.org/TR/quota-api/#idl-def-StorageQuota
@@ -32641,6 +33803,55 @@ class StyleMedia extends Interceptor {
// 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.
+@DocsEditable()
+@DomName('StylePropertyMap')
+@Experimental() // untriaged
+@Native("StylePropertyMap")
+class StylePropertyMap extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory StylePropertyMap._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('StylePropertyMap.append')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void append(String property, Object value) native;
+
+ @DomName('StylePropertyMap.delete')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void delete(String property) native;
+
+ @DomName('StylePropertyMap.get')
+ @DocsEditable()
+ @Experimental() // untriaged
+ StyleValue get(String property) native;
+
+ @DomName('StylePropertyMap.getAll')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<StyleValue> getAll(String property) native;
+
+ @DomName('StylePropertyMap.getProperties')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<String> getProperties() native;
+
+ @DomName('StylePropertyMap.has')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool has(String property) native;
+
+ @DomName('StylePropertyMap.set')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void set(String property, Object value) native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('StyleSheet')
@Native("StyleSheet")
@@ -32683,103 +33894,81 @@ class StyleSheet extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('SyncEvent')
+@DomName('StyleValue')
@Experimental() // untriaged
-@Native("SyncEvent")
-class SyncEvent extends ExtendableEvent {
+@Native("StyleValue")
+class StyleValue extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory SyncEvent._() {
+ factory StyleValue._() {
throw new UnsupportedError("Not supported");
}
- @DomName('SyncEvent.SyncEvent')
+ @DomName('StyleValue.cssString')
@DocsEditable()
- factory SyncEvent(String type, Map init) {
- var init_1 = convertDartToNative_Dictionary(init);
- return SyncEvent._create_1(type, init_1);
- }
- static SyncEvent _create_1(type, init) =>
- JS('SyncEvent', 'new SyncEvent(#,#)', type, init);
+ @Experimental() // untriaged
+ final String cssString;
- @DomName('SyncEvent.registration')
+ @DomName('StyleValue.parse')
@DocsEditable()
@Experimental() // untriaged
- final SyncRegistration registration;
+ static Object parse(String property, String cssText) native;
}
// 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
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('SyncManager')
+@DomName('SyncEvent')
@Experimental() // untriaged
-@Native("SyncManager")
-class SyncManager extends Interceptor {
+@Native("SyncEvent")
+class SyncEvent extends ExtendableEvent {
// To suppress missing implicit constructor warnings.
- factory SyncManager._() {
+ factory SyncEvent._() {
throw new UnsupportedError("Not supported");
}
- @DomName('SyncManager.getRegistration')
- @DocsEditable()
- @Experimental() // untriaged
- Future getRegistration(String tag) native;
-
- @DomName('SyncManager.getRegistrations')
- @DocsEditable()
- @Experimental() // untriaged
- Future getRegistrations() native;
-
- @DomName('SyncManager.permissionState')
- @DocsEditable()
- @Experimental() // untriaged
- Future permissionState() native;
-
- @DomName('SyncManager.register')
+ @DomName('SyncEvent.SyncEvent')
@DocsEditable()
- @Experimental() // untriaged
- Future register([Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _register_1(options_1);
- }
- return _register_2();
+ factory SyncEvent(String type, Map init) {
+ var init_1 = convertDartToNative_Dictionary(init);
+ return SyncEvent._create_1(type, init_1);
}
+ static SyncEvent _create_1(type, init) =>
+ JS('SyncEvent', 'new SyncEvent(#,#)', type, init);
- @JSName('register')
- @DomName('SyncManager.register')
+ @DomName('SyncEvent.lastChance')
@DocsEditable()
@Experimental() // untriaged
- Future _register_1(options) native;
- @JSName('register')
- @DomName('SyncManager.register')
+ final bool lastChance;
+
+ @DomName('SyncEvent.tag')
@DocsEditable()
@Experimental() // untriaged
- Future _register_2() native;
+ final String tag;
}
// 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
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('SyncRegistration')
+@DomName('SyncManager')
@Experimental() // untriaged
-@Native("SyncRegistration")
-class SyncRegistration extends Interceptor {
+@Native("SyncManager")
+class SyncManager extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory SyncRegistration._() {
+ factory SyncManager._() {
throw new UnsupportedError("Not supported");
}
- @DomName('SyncRegistration.tag')
+ @DomName('SyncManager.getTags')
@DocsEditable()
@Experimental() // untriaged
- final String tag;
+ Future getTags() native;
- @DomName('SyncRegistration.unregister')
+ @DomName('SyncManager.register')
@DocsEditable()
@Experimental() // untriaged
- Future unregister() native;
+ Future register(String tag) native;
}
// 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
@@ -32984,17 +34173,17 @@ class TableElement extends HtmlElement {
@JSName('createCaption')
@DomName('HTMLTableElement.createCaption')
@DocsEditable()
- HtmlElement _createCaption() native;
+ TableCaptionElement _createCaption() native;
@JSName('createTFoot')
@DomName('HTMLTableElement.createTFoot')
@DocsEditable()
- HtmlElement _createTFoot() native;
+ TableSectionElement _createTFoot() native;
@JSName('createTHead')
@DomName('HTMLTableElement.createTHead')
@DocsEditable()
- HtmlElement _createTHead() native;
+ TableSectionElement _createTHead() native;
@DomName('HTMLTableElement.deleteCaption')
@DocsEditable()
@@ -33015,7 +34204,7 @@ class TableElement extends HtmlElement {
@JSName('insertRow')
@DomName('HTMLTableElement.insertRow')
@DocsEditable()
- HtmlElement _insertRow([int index]) native;
+ TableRowElement _insertRow([int index]) native;
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -33227,6 +34416,11 @@ class Text extends CharacterData {
throw new UnsupportedError("Not supported");
}
+ @DomName('Text.assignedSlot')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final SlotElement assignedSlot;
+
@DomName('Text.wholeText')
@DocsEditable()
final String wholeText;
@@ -33443,8 +34637,8 @@ class TextEvent extends UIEvent {
@JSName('initTextEvent')
@DomName('TextEvent.initTextEvent')
@DocsEditable()
- void _initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg,
- Window viewArg, String dataArg) native;
+ void _initTextEvent(String type, bool bubbles, bool cancelable, Window view,
+ String data) native;
}
// 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
@@ -33679,7 +34873,7 @@ class TextTrackCue extends EventTarget {
@Native("TextTrackCueList")
class TextTrackCueList extends Interceptor
with ListMixin<TextTrackCue>, ImmutableListMixin<TextTrackCue>
- implements List<TextTrackCue>, JavaScriptIndexingBehavior<TextTrackCue> {
+ implements List<TextTrackCue> {
// To suppress missing implicit constructor warnings.
factory TextTrackCueList._() {
throw new UnsupportedError("Not supported");
@@ -33689,12 +34883,6 @@ class TextTrackCueList extends Interceptor
@DocsEditable()
int get length => JS("int", "#.length", this);
- TextTrackCue operator [](int index) {
- if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length))
- throw new RangeError.index(index, this);
- return JS("TextTrackCue", "#[#]", this, index);
- }
-
void operator []=(int index, TextTrackCue value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
@@ -33732,13 +34920,14 @@ class TextTrackCueList extends Interceptor
TextTrackCue elementAt(int index) => this[index];
// -- end List<TextTrackCue> mixins.
- @DomName('TextTrackCueList.getCueById')
+ @DomName('TextTrackCueList.__getter__')
@DocsEditable()
- TextTrackCue getCueById(String id) native;
+ @Experimental() // untriaged
+ TextTrackCue __getter__(int index) native;
- @DomName('TextTrackCueList.item')
+ @DomName('TextTrackCueList.getCueById')
@DocsEditable()
- TextTrackCue item(int index) native;
+ TextTrackCue getCueById(String id) native;
}
// 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
@@ -33751,7 +34940,7 @@ class TextTrackCueList extends Interceptor
@Native("TextTrackList")
class TextTrackList extends EventTarget
with ListMixin<TextTrack>, ImmutableListMixin<TextTrack>
- implements List<TextTrack>, JavaScriptIndexingBehavior<TextTrack> {
+ implements List<TextTrack> {
// To suppress missing implicit constructor warnings.
factory TextTrackList._() {
throw new UnsupportedError("Not supported");
@@ -33778,12 +34967,6 @@ class TextTrackList extends EventTarget
@DocsEditable()
int get length => JS("int", "#.length", this);
- TextTrack operator [](int index) {
- if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length))
- throw new RangeError.index(index, this);
- return JS("TextTrack", "#[#]", this, index);
- }
-
void operator []=(int index, TextTrack value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
@@ -33821,14 +35004,15 @@ class TextTrackList extends EventTarget
TextTrack elementAt(int index) => this[index];
// -- end List<TextTrack> mixins.
- @DomName('TextTrackList.getTrackById')
+ @DomName('TextTrackList.__getter__')
@DocsEditable()
@Experimental() // untriaged
- TextTrack getTrackById(String id) native;
+ TextTrack __getter__(int index) native;
- @DomName('TextTrackList.item')
+ @DomName('TextTrackList.getTrackById')
@DocsEditable()
- TextTrack item(int index) native;
+ @Experimental() // untriaged
+ TextTrack getTrackById(String id) native;
/// Stream of `addtrack` events handled by this [TextTrackList].
@DomName('TextTrackList.onaddtrack')
@@ -33916,6 +35100,14 @@ class Touch extends Interceptor {
throw new UnsupportedError("Not supported");
}
+ @DomName('Touch.Touch')
+ @DocsEditable()
+ factory Touch(Map initDict) {
+ var initDict_1 = convertDartToNative_Dictionary(initDict);
+ return Touch._create_1(initDict_1);
+ }
+ static Touch _create_1(initDict) => JS('Touch', 'new Touch(#)', initDict);
+
@JSName('clientX')
@DomName('Touch.clientX')
@DocsEditable()
@@ -33957,6 +35149,11 @@ class Touch extends Interceptor {
@Experimental() // untriaged
final double _radiusY;
+ @DomName('Touch.region')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String region;
+
@DomName('Touch.rotationAngle')
@DocsEditable()
@Experimental() // untriaged
@@ -34399,6 +35596,70 @@ class TrackEvent extends Event {
// 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.
+@DocsEditable()
+@DomName('TransformComponent')
+@Experimental() // untriaged
+@Native("TransformComponent")
+class TransformComponent extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory TransformComponent._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('TransformComponent.cssString')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String cssString;
+
+ @DomName('TransformComponent.asMatrix')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Matrix asMatrix() native;
+
+ @DomName('TransformComponent.is2DComponent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool is2DComponent() native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('TransformValue')
+@Experimental() // untriaged
+@Native("TransformValue")
+class TransformValue extends StyleValue {
+ // To suppress missing implicit constructor warnings.
+ factory TransformValue._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('TransformValue.TransformValue')
+ @DocsEditable()
+ factory TransformValue([List<TransformComponent> transformComponents]) {
+ if (transformComponents == null) {
+ return TransformValue._create_1();
+ }
+ if ((transformComponents is List<TransformComponent>)) {
+ return TransformValue._create_2(transformComponents);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
+ }
+ static TransformValue _create_1() =>
+ JS('TransformValue', 'new TransformValue()');
+ static TransformValue _create_2(transformComponents) =>
+ JS('TransformValue', 'new TransformValue(#)', transformComponents);
+
+ @DomName('TransformValue.is2D')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool is2D() native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('TransitionEvent')
@Native("TransitionEvent,WebKitTransitionEvent")
@@ -34434,6 +35695,51 @@ class TransitionEvent extends Event {
@DocsEditable()
final String pseudoElement;
}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('Translation')
+@Experimental() // untriaged
+@Native("Translation")
+class Translation extends TransformComponent {
+ // To suppress missing implicit constructor warnings.
+ factory Translation._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('Translation.Translation')
+ @DocsEditable()
+ factory Translation(LengthValue x, LengthValue y, [LengthValue z]) {
+ if ((y is LengthValue) && (x is LengthValue) && z == null) {
+ return Translation._create_1(x, y);
+ }
+ if ((z is LengthValue) && (y is LengthValue) && (x is LengthValue)) {
+ return Translation._create_2(x, y, z);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
+ }
+ static Translation _create_1(x, y) =>
+ JS('Translation', 'new Translation(#,#)', x, y);
+ static Translation _create_2(x, y, z) =>
+ JS('Translation', 'new Translation(#,#,#)', x, y, z);
+
+ @DomName('Translation.x')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final LengthValue x;
+
+ @DomName('Translation.y')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final LengthValue y;
+
+ @DomName('Translation.z')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final LengthValue z;
+}
// Copyright (c) 2013, 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.
@@ -34535,26 +35841,14 @@ class UIEvent extends Event {
JS('UIEvent', 'new UIEvent(#,#)', type, eventInitDict);
static UIEvent _create_2(type) => JS('UIEvent', 'new UIEvent(#)', type);
- @JSName('charCode')
- @DomName('UIEvent.charCode')
- @DocsEditable()
- @Unstable()
- final int _charCode;
-
@DomName('UIEvent.detail')
@DocsEditable()
final int detail;
- @JSName('keyCode')
- @DomName('UIEvent.keyCode')
- @DocsEditable()
- @Unstable()
- final int _keyCode;
-
- @DomName('UIEvent.sourceDevice')
+ @DomName('UIEvent.sourceCapabilities')
@DocsEditable()
@Experimental() // untriaged
- final InputDevice sourceDevice;
+ final InputDeviceCapabilities sourceCapabilities;
@DomName('UIEvent.view')
@DocsEditable()
@@ -34609,6 +35903,35 @@ class UListElement extends HtmlElement {
// 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.
+@DocsEditable()
+@DomName('UnderlyingSourceBase')
+@Experimental() // untriaged
+@Native("UnderlyingSourceBase")
+class UnderlyingSourceBase extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UnderlyingSourceBase._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('UnderlyingSourceBase.cancel')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future cancel(Object reason) native;
+
+ @DomName('UnderlyingSourceBase.pull')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future pull() native;
+
+ @DomName('UnderlyingSourceBase.start')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future start(Object stream) native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('HTMLUnknownElement')
@Native("HTMLUnknownElement")
@@ -34718,6 +36041,63 @@ class Url extends Interceptor implements UrlUtils {
// 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.
+@DocsEditable()
+@DomName('URLSearchParams')
+@Experimental() // untriaged
+@Native("URLSearchParams")
+class UrlSearchParams extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UrlSearchParams._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('URLSearchParams.URLSearchParams')
+ @DocsEditable()
+ factory UrlSearchParams([Object init]) {
+ if (init != null) {
+ return UrlSearchParams._create_1(init);
+ }
+ return UrlSearchParams._create_2();
+ }
+ static UrlSearchParams _create_1(init) =>
+ JS('UrlSearchParams', 'new URLSearchParams(#)', init);
+ static UrlSearchParams _create_2() =>
+ JS('UrlSearchParams', 'new URLSearchParams()');
+
+ @DomName('URLSearchParams.append')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void append(String name, String value) native;
+
+ @DomName('URLSearchParams.delete')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void delete(String name) native;
+
+ @DomName('URLSearchParams.get')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String get(String name) native;
+
+ @DomName('URLSearchParams.getAll')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<String> getAll(String name) native;
+
+ @DomName('URLSearchParams.has')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool has(String name) native;
+
+ @DomName('URLSearchParams.set')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void set(String name, String value) native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('URLUtils')
@Experimental() // untriaged
@@ -34788,6 +36168,582 @@ abstract class UrlUtilsReadOnly extends Interceptor {
// 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.
+@DocsEditable()
+@DomName('USB')
+@Experimental() // untriaged
+@Native("USB")
+class Usb extends EventTarget {
+ // To suppress missing implicit constructor warnings.
+ factory Usb._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USB.getDevices')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future getDevices() native;
+
+ @DomName('USB.requestDevice')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future requestDevice(Map options) {
+ var options_1 = convertDartToNative_Dictionary(options);
+ return _requestDevice_1(options_1);
+ }
+
+ @JSName('requestDevice')
+ @DomName('USB.requestDevice')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future _requestDevice_1(options) native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBAlternateInterface')
+@Experimental() // untriaged
+@Native("USBAlternateInterface")
+class UsbAlternateInterface extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbAlternateInterface._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBAlternateInterface.USBAlternateInterface')
+ @DocsEditable()
+ factory UsbAlternateInterface(
+ UsbInterface deviceInterface, int alternateSetting) {
+ return UsbAlternateInterface._create_1(deviceInterface, alternateSetting);
+ }
+ static UsbAlternateInterface _create_1(deviceInterface, alternateSetting) =>
+ JS('UsbAlternateInterface', 'new USBAlternateInterface(#,#)',
+ deviceInterface, alternateSetting);
+
+ @DomName('USBAlternateInterface.alternateSetting')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int alternateSetting;
+
+ @DomName('USBAlternateInterface.endpoints')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final List<UsbEndpoint> endpoints;
+
+ @DomName('USBAlternateInterface.interfaceClass')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int interfaceClass;
+
+ @DomName('USBAlternateInterface.interfaceName')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String interfaceName;
+
+ @DomName('USBAlternateInterface.interfaceProtocol')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int interfaceProtocol;
+
+ @DomName('USBAlternateInterface.interfaceSubclass')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int interfaceSubclass;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBConfiguration')
+@Experimental() // untriaged
+@Native("USBConfiguration")
+class UsbConfiguration extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbConfiguration._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBConfiguration.USBConfiguration')
+ @DocsEditable()
+ factory UsbConfiguration(UsbDevice device, int configurationValue) {
+ return UsbConfiguration._create_1(device, configurationValue);
+ }
+ static UsbConfiguration _create_1(device, configurationValue) => JS(
+ 'UsbConfiguration',
+ 'new USBConfiguration(#,#)',
+ device,
+ configurationValue);
+
+ @DomName('USBConfiguration.configurationName')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String configurationName;
+
+ @DomName('USBConfiguration.configurationValue')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int configurationValue;
+
+ @DomName('USBConfiguration.interfaces')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final List<UsbInterface> interfaces;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBConnectionEvent')
+@Experimental() // untriaged
+@Native("USBConnectionEvent")
+class UsbConnectionEvent extends Event {
+ // To suppress missing implicit constructor warnings.
+ factory UsbConnectionEvent._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBConnectionEvent.USBConnectionEvent')
+ @DocsEditable()
+ factory UsbConnectionEvent(String type, [Map eventInitDict]) {
+ if (eventInitDict != null) {
+ var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
+ return UsbConnectionEvent._create_1(type, eventInitDict_1);
+ }
+ return UsbConnectionEvent._create_2(type);
+ }
+ static UsbConnectionEvent _create_1(type, eventInitDict) => JS(
+ 'UsbConnectionEvent', 'new USBConnectionEvent(#,#)', type, eventInitDict);
+ static UsbConnectionEvent _create_2(type) =>
+ JS('UsbConnectionEvent', 'new USBConnectionEvent(#)', type);
+
+ @DomName('USBConnectionEvent.device')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final UsbDevice device;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBDevice')
+@Experimental() // untriaged
+@Native("USBDevice")
+class UsbDevice extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbDevice._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBDevice.configurations')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final List<UsbConfiguration> configurations;
+
+ @DomName('USBDevice.deviceClass')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int deviceClass;
+
+ @DomName('USBDevice.deviceProtocol')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int deviceProtocol;
+
+ @DomName('USBDevice.deviceSubclass')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int deviceSubclass;
+
+ @DomName('USBDevice.deviceVersionMajor')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int deviceVersionMajor;
+
+ @DomName('USBDevice.deviceVersionMinor')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int deviceVersionMinor;
+
+ @DomName('USBDevice.deviceVersionSubminor')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int deviceVersionSubminor;
+
+ @DomName('USBDevice.guid')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String guid;
+
+ @DomName('USBDevice.manufacturerName')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String manufacturerName;
+
+ @DomName('USBDevice.productId')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int productId;
+
+ @DomName('USBDevice.productName')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String productName;
+
+ @DomName('USBDevice.serialNumber')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String serialNumber;
+
+ @DomName('USBDevice.usbVersionMajor')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int usbVersionMajor;
+
+ @DomName('USBDevice.usbVersionMinor')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int usbVersionMinor;
+
+ @DomName('USBDevice.usbVersionSubminor')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int usbVersionSubminor;
+
+ @DomName('USBDevice.vendorId')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int vendorId;
+
+ @DomName('USBDevice.claimInterface')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future claimInterface(int interfaceNumber) native;
+
+ @DomName('USBDevice.clearHalt')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future clearHalt(int endpointNumber) native;
+
+ @DomName('USBDevice.close')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future close() native;
+
+ @DomName('USBDevice.controlTransferIn')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future controlTransferIn(Map setup, int length) {
+ var setup_1 = convertDartToNative_Dictionary(setup);
+ return _controlTransferIn_1(setup_1, length);
+ }
+
+ @JSName('controlTransferIn')
+ @DomName('USBDevice.controlTransferIn')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future _controlTransferIn_1(setup, length) native;
+
+ @DomName('USBDevice.controlTransferOut')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future controlTransferOut(Map setup, [/*BufferSource*/ data]) {
+ if (data != null) {
+ var setup_1 = convertDartToNative_Dictionary(setup);
+ return _controlTransferOut_1(setup_1, data);
+ }
+ var setup_1 = convertDartToNative_Dictionary(setup);
+ return _controlTransferOut_2(setup_1);
+ }
+
+ @JSName('controlTransferOut')
+ @DomName('USBDevice.controlTransferOut')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future _controlTransferOut_1(setup, data) native;
+ @JSName('controlTransferOut')
+ @DomName('USBDevice.controlTransferOut')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future _controlTransferOut_2(setup) native;
+
+ @DomName('USBDevice.getConfiguration')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future getConfiguration() native;
+
+ @DomName('USBDevice.isochronousTransferIn')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future isochronousTransferIn(int endpointNumber, List<int> packetLengths)
+ native;
+
+ @DomName('USBDevice.isochronousTransferOut')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future isochronousTransferOut(int endpointNumber, /*BufferSource*/ data,
+ List<int> packetLengths) native;
+
+ @DomName('USBDevice.open')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future open() native;
+
+ @DomName('USBDevice.releaseInterface')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future releaseInterface(int interfaceNumber) native;
+
+ @DomName('USBDevice.reset')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future reset() native;
+
+ @DomName('USBDevice.setConfiguration')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future setConfiguration(int configurationValue) native;
+
+ @DomName('USBDevice.setInterface')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future setInterface(int interfaceNumber, int alternateSetting) native;
+
+ @DomName('USBDevice.transferIn')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future transferIn(int endpointNumber, int length) native;
+
+ @DomName('USBDevice.transferOut')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future transferOut(int endpointNumber, /*BufferSource*/ data) native;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBEndpoint')
+@Experimental() // untriaged
+@Native("USBEndpoint")
+class UsbEndpoint extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbEndpoint._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBEndpoint.USBEndpoint')
+ @DocsEditable()
+ factory UsbEndpoint(
+ UsbAlternateInterface alternate, int endpointNumber, String direction) {
+ return UsbEndpoint._create_1(alternate, endpointNumber, direction);
+ }
+ static UsbEndpoint _create_1(alternate, endpointNumber, direction) => JS(
+ 'UsbEndpoint',
+ 'new USBEndpoint(#,#,#)',
+ alternate,
+ endpointNumber,
+ direction);
+
+ @DomName('USBEndpoint.direction')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String direction;
+
+ @DomName('USBEndpoint.endpointNumber')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int endpointNumber;
+
+ @DomName('USBEndpoint.packetSize')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int packetSize;
+
+ @DomName('USBEndpoint.type')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String type;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBInTransferResult')
+@Experimental() // untriaged
+@Native("USBInTransferResult")
+class UsbInTransferResult extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbInTransferResult._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBInTransferResult.data')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final _DataView data;
+
+ @DomName('USBInTransferResult.status')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String status;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBInterface')
+@Experimental() // untriaged
+@Native("USBInterface")
+class UsbInterface extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbInterface._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBInterface.USBInterface')
+ @DocsEditable()
+ factory UsbInterface(UsbConfiguration configuration, int interfaceNumber) {
+ return UsbInterface._create_1(configuration, interfaceNumber);
+ }
+ static UsbInterface _create_1(configuration, interfaceNumber) => JS(
+ 'UsbInterface', 'new USBInterface(#,#)', configuration, interfaceNumber);
+
+ @DomName('USBInterface.alternates')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final List<UsbAlternateInterface> alternates;
+
+ @DomName('USBInterface.interfaceNumber')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int interfaceNumber;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBIsochronousInTransferPacket')
+@Experimental() // untriaged
+@Native("USBIsochronousInTransferPacket")
+class UsbIsochronousInTransferPacket extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbIsochronousInTransferPacket._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBIsochronousInTransferPacket.data')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final _DataView data;
+
+ @DomName('USBIsochronousInTransferPacket.status')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String status;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBIsochronousInTransferResult')
+@Experimental() // untriaged
+@Native("USBIsochronousInTransferResult")
+class UsbIsochronousInTransferResult extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbIsochronousInTransferResult._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBIsochronousInTransferResult.data')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final _DataView data;
+
+ @DomName('USBIsochronousInTransferResult.packets')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final List<UsbIsochronousInTransferPacket> packets;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBIsochronousOutTransferPacket')
+@Experimental() // untriaged
+@Native("USBIsochronousOutTransferPacket")
+class UsbIsochronousOutTransferPacket extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbIsochronousOutTransferPacket._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBIsochronousOutTransferPacket.bytesWritten')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int bytesWritten;
+
+ @DomName('USBIsochronousOutTransferPacket.status')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String status;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBIsochronousOutTransferResult')
+@Experimental() // untriaged
+@Native("USBIsochronousOutTransferResult")
+class UsbIsochronousOutTransferResult extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbIsochronousOutTransferResult._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBIsochronousOutTransferResult.packets')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final List<UsbIsochronousOutTransferPacket> packets;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('USBOutTransferResult')
+@Experimental() // untriaged
+@Native("USBOutTransferResult")
+class UsbOutTransferResult extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory UsbOutTransferResult._() {
+ throw new UnsupportedError("Not supported");
+ }
+
+ @DomName('USBOutTransferResult.bytesWritten')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int bytesWritten;
+
+ @DomName('USBOutTransferResult.status')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String status;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
@DocsEditable()
@DomName('VRDevice')
@Experimental() // untriaged
@@ -36376,6 +38332,11 @@ class Window extends EventTarget
@DocsEditable()
final int innerWidth;
+ @DomName('Window.isSecureContext')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final bool isSecureContext;
+
/**
* Storage for this window that persists across sessions.
*
@@ -36563,6 +38524,11 @@ class Window extends EventTarget
@SupportedBrowser(SupportedBrowser.IE)
final Performance performance;
+ @DomName('Window.renderWorklet')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final _Worklet renderWorklet;
+
/**
* Information about the screen displaying this window.
*
@@ -36816,6 +38782,11 @@ class Window extends EventTarget
@DocsEditable()
void alert([String message]) native;
+ @DomName('Window.cancelIdleCallback')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void cancelIdleCallback(int handle) native;
+
@DomName('Window.close')
@DocsEditable()
void close() native;
@@ -36980,6 +38951,28 @@ class Window extends EventTarget
@DocsEditable()
void print() native;
+ @DomName('Window.requestIdleCallback')
+ @DocsEditable()
+ @Experimental() // untriaged
+ int requestIdleCallback(IdleRequestCallback callback, [Map options]) {
+ if (options != null) {
+ var options_1 = convertDartToNative_Dictionary(options);
+ return _requestIdleCallback_1(callback, options_1);
+ }
+ return _requestIdleCallback_2(callback);
+ }
+
+ @JSName('requestIdleCallback')
+ @DomName('Window.requestIdleCallback')
+ @DocsEditable()
+ @Experimental() // untriaged
+ int _requestIdleCallback_1(IdleRequestCallback callback, options) native;
+ @JSName('requestIdleCallback')
+ @DomName('Window.requestIdleCallback')
+ @DocsEditable()
+ @Experimental() // untriaged
+ int _requestIdleCallback_2(IdleRequestCallback callback) native;
+
/**
* Resizes this window by an offset.
*
@@ -38007,6 +40000,11 @@ class WindowClient extends Client {
@DocsEditable()
@Experimental() // untriaged
Future focus() native;
+
+ @DomName('WindowClient.navigate')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future navigate(String url) native;
}
// 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
@@ -38231,16 +40229,6 @@ class WorkerGlobalScope extends EventTarget
static const EventStreamProvider<Event> errorEvent =
const EventStreamProvider<Event>('error');
- @DomName('WorkerGlobalScope.PERSISTENT')
- @DocsEditable()
- @Experimental() // untriaged
- static const int PERSISTENT = 1;
-
- @DomName('WorkerGlobalScope.TEMPORARY')
- @DocsEditable()
- @Experimental() // untriaged
- static const int TEMPORARY = 0;
-
@DomName('WorkerGlobalScope.caches')
@DocsEditable()
@Experimental() // untriaged
@@ -38313,68 +40301,6 @@ class WorkerGlobalScope extends EventTarget
@Experimental() // untriaged
void importScripts(String urls) native;
- @JSName('webkitRequestFileSystem')
- @DomName('WorkerGlobalScope.webkitRequestFileSystem')
- @DocsEditable()
- @Experimental() // untriaged
- void _webkitRequestFileSystem(int type, int size,
- [_FileSystemCallback successCallback,
- _ErrorCallback errorCallback]) native;
-
- @JSName('webkitRequestFileSystem')
- @DomName('WorkerGlobalScope.webkitRequestFileSystem')
- @DocsEditable()
- @Experimental() // untriaged
- Future<FileSystem> webkitRequestFileSystem(int type, int size) {
- var completer = new Completer<FileSystem>();
- _webkitRequestFileSystem(type, size, (value) {
- completer.complete(value);
- }, (error) {
- completer.completeError(error);
- });
- return completer.future;
- }
-
- @JSName('webkitRequestFileSystemSync')
- @DomName('WorkerGlobalScope.webkitRequestFileSystemSync')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- @Experimental() // untriaged
- _DOMFileSystemSync requestFileSystemSync(int type, int size) native;
-
- @JSName('webkitResolveLocalFileSystemSyncURL')
- @DomName('WorkerGlobalScope.webkitResolveLocalFileSystemSyncURL')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- @Experimental() // untriaged
- _EntrySync resolveLocalFileSystemSyncUrl(String url) native;
-
- @JSName('webkitResolveLocalFileSystemURL')
- @DomName('WorkerGlobalScope.webkitResolveLocalFileSystemURL')
- @DocsEditable()
- @Experimental() // untriaged
- void _webkitResolveLocalFileSystemUrl(
- String url, _EntryCallback successCallback,
- [_ErrorCallback errorCallback]) native;
-
- @JSName('webkitResolveLocalFileSystemURL')
- @DomName('WorkerGlobalScope.webkitResolveLocalFileSystemURL')
- @DocsEditable()
- @Experimental() // untriaged
- Future<Entry> webkitResolveLocalFileSystemUrl(String url) {
- var completer = new Completer<Entry>();
- _webkitResolveLocalFileSystemUrl(url, (value) {
- completer.complete(value);
- }, (error) {
- completer.completeError(error);
- });
- return completer.future;
- }
-
// From WindowBase64
@DomName('WorkerGlobalScope.atob')
@@ -38462,6 +40388,11 @@ class WorkerPerformance extends EventTarget {
@Experimental() // untriaged
void clearMeasures(String measureName) native;
+ @DomName('WorkerPerformance.clearResourceTimings')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void clearResourceTimings() native;
+
@DomName('WorkerPerformance.getEntries')
@DocsEditable()
@Experimental() // untriaged
@@ -38492,21 +40423,8 @@ class WorkerPerformance extends EventTarget {
@Experimental() // untriaged
double now() native;
- @JSName('webkitClearResourceTimings')
- @DomName('WorkerPerformance.webkitClearResourceTimings')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- @Experimental() // untriaged
- void clearResourceTimings() native;
-
- @JSName('webkitSetResourceTimingBufferSize')
- @DomName('WorkerPerformance.webkitSetResourceTimingBufferSize')
+ @DomName('WorkerPerformance.setResourceTimingBufferSize')
@DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
@Experimental() // untriaged
void setResourceTimingBufferSize(int maxSize) native;
}
@@ -38792,15 +40710,21 @@ class _Attr extends Node {
throw new UnsupportedError("Not supported");
}
- // Use implementation from Node.
- // final String _localName;
+ @JSName('localName')
+ @DomName('Attr.localName')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String _localName;
@DomName('Attr.name')
@DocsEditable()
final String name;
- // Use implementation from Node.
- // final String _namespaceUri;
+ @JSName('namespaceURI')
+ @DomName('Attr.namespaceURI')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String _namespaceUri;
// Use implementation from Node.
// final String nodeValue;
@@ -39428,27 +41352,6 @@ abstract class _HTMLAllCollection extends Interceptor {
// 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.
-@DocsEditable()
-@DomName('HTMLAppletElement')
-// http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the-applet-element
-@deprecated // deprecated
-@Native("HTMLAppletElement")
-abstract class _HTMLAppletElement extends HtmlElement {
- // To suppress missing implicit constructor warnings.
- factory _HTMLAppletElement._() {
- throw new UnsupportedError("Not supported");
- }
- /**
- * Constructor instantiated by the DOM when a custom element has been created.
- *
- * This can only be called by subclasses from their created constructor.
- */
- _HTMLAppletElement.created() : super.created();
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('HTMLDirectoryElement')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#dir
@@ -39693,11 +41596,6 @@ class _Request extends Body {
JS('_Request', 'new Request(#,#)', input, requestInitDict);
static _Request _create_2(input) => JS('_Request', 'new Request(#)', input);
- @DomName('Request.context')
- @DocsEditable()
- @Experimental() // untriaged
- final String context;
-
@DomName('Request.credentials')
@DocsEditable()
@Experimental() // untriaged
@@ -39708,11 +41606,21 @@ class _Request extends Body {
@Experimental() // untriaged
final Headers headers;
+ @DomName('Request.integrity')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String integrity;
+
@DomName('Request.mode')
@DocsEditable()
@Experimental() // untriaged
final String mode;
+ @DomName('Request.redirect')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String redirect;
+
@DomName('Request.referrer')
@DocsEditable()
@Experimental() // untriaged
@@ -40049,12 +41957,26 @@ abstract class _WorkerNavigator extends Interceptor
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('XMLHttpRequestProgressEvent')
-@Experimental() // nonstandard
-@Native("XMLHttpRequestProgressEvent")
-abstract class _XMLHttpRequestProgressEvent extends ProgressEvent {
+@DomName('Worklet')
+@Experimental() // untriaged
+@Native("Worklet")
+abstract class _Worklet extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory _Worklet._() {
+ throw new UnsupportedError("Not supported");
+ }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+@DocsEditable()
+@DomName('WorkletGlobalScope')
+@Experimental() // untriaged
+@Native("WorkletGlobalScope")
+abstract class _WorkletGlobalScope extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory _XMLHttpRequestProgressEvent._() {
+ factory _WorkletGlobalScope._() {
throw new UnsupportedError("Not supported");
}
}
« no previous file with comments | « no previous file | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698