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

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

Issue 1763753002: Revert "Changes to tests and status file for the 45 roll w/ regenderated sdk/libs" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/html/dartium/html_dartium.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 edafddd1a35cc8531796793970acd9d8d6f5791c..25dce9d907caed58d2853ac2eb9d8007692b7d2f 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -187,6 +187,11 @@ class AnchorElement extends HtmlElement implements UrlUtils {
@DocsEditable()
String hreflang;
+ @DomName('HTMLAnchorElement.integrity')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String integrity;
+
@DomName('HTMLAnchorElement.rel')
@DocsEditable()
String rel;
@@ -263,110 +268,117 @@ class AnchorElement extends HtmlElement implements UrlUtils {
@DomName('Animation')
@Experimental() // untriaged
@Native("Animation")
-class Animation extends EventTarget {
+class Animation extends AnimationNode {
// To suppress missing implicit constructor warnings.
factory Animation._() { throw new UnsupportedError("Not supported"); }
- /// Checks if this type is supported on the current platform.
- static bool get supported => JS('bool', '!!(document.body.animate)');
-
- @DomName('Animation.currentTime')
+ @DomName('Animation.Animation')
@DocsEditable()
- @Experimental() // untriaged
- num currentTime;
+ factory Animation(Element target, List<Map> keyframes, [timingInput]) {
+ if ((keyframes is List<Map> || keyframes == null) && (target is Element || target == null) && timingInput == null) {
+ return Animation._create_1(target, keyframes);
+ }
+ if ((timingInput is num || timingInput == null) && (keyframes is List<Map> || keyframes == null) && (target is Element || target == null)) {
+ return Animation._create_2(target, keyframes, timingInput);
+ }
+ if ((timingInput is Map || timingInput == null) && (keyframes is List<Map> || keyframes == null) && (target is Element || target == null)) {
+ var timingInput_1 = convertDartToNative_Dictionary(timingInput);
+ return Animation._create_3(target, keyframes, timingInput_1);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
+ }
+ static Animation _create_1(target, keyframes) => JS('Animation', 'new Animation(#,#)', target, keyframes);
+ static Animation _create_2(target, keyframes, timingInput) => JS('Animation', 'new Animation(#,#,#)', target, keyframes, timingInput);
+ static Animation _create_3(target, keyframes, timingInput) => JS('Animation', 'new Animation(#,#,#)', target, keyframes, timingInput);
+}
+// 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('Animation.effect')
- @DocsEditable()
- @Experimental() // untriaged
- AnimationEffectReadOnly effect;
- @DomName('Animation.endClip')
- @DocsEditable()
- @Experimental() // untriaged
- num endClip;
+@DocsEditable()
+@DomName('AnimationEffect')
+@Experimental() // untriaged
+@Native("AnimationEffect")
+class AnimationEffect extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory AnimationEffect._() { 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.
- @DomName('Animation.finished')
- @DocsEditable()
- @Experimental() // untriaged
- final Future finished;
- @DomName('Animation.playState')
- @DocsEditable()
- @Experimental() // untriaged
- final String playState;
+@DocsEditable()
+@DomName('WebKitAnimationEvent')
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.SAFARI)
+@Experimental()
+@Native("WebKitAnimationEvent")
+class AnimationEvent extends Event {
+ // To suppress missing implicit constructor warnings.
+ factory AnimationEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('Animation.playbackRate')
+ @DomName('WebKitAnimationEvent.animationName')
@DocsEditable()
- @Experimental() // untriaged
- num playbackRate;
+ final String animationName;
- @DomName('Animation.ready')
+ @DomName('WebKitAnimationEvent.elapsedTime')
@DocsEditable()
- @Experimental() // untriaged
- final Future ready;
+ final double elapsedTime;
+}
+// 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('Animation.startClip')
- @DocsEditable()
- @Experimental() // untriaged
- num startClip;
- @DomName('Animation.startTime')
- @DocsEditable()
- @Experimental() // untriaged
- num startTime;
+@DocsEditable()
+@DomName('AnimationNode')
+@Experimental() // untriaged
+@Native("AnimationNode")
+class AnimationNode extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory AnimationNode._() { throw new UnsupportedError("Not supported"); }
- @DomName('Animation.cancel')
+ @DomName('AnimationNode.activeDuration')
@DocsEditable()
@Experimental() // untriaged
- void cancel() native;
+ final double activeDuration;
- @DomName('Animation.finish')
+ @DomName('AnimationNode.currentIteration')
@DocsEditable()
@Experimental() // untriaged
- void finish() native;
+ final int currentIteration;
- @DomName('Animation.pause')
+ @DomName('AnimationNode.duration')
@DocsEditable()
@Experimental() // untriaged
- void pause() native;
+ final double duration;
- @DomName('Animation.play')
+ @DomName('AnimationNode.endTime')
@DocsEditable()
@Experimental() // untriaged
- void play() native;
+ final double endTime;
- @DomName('Animation.reverse')
+ @DomName('AnimationNode.localTime')
@DocsEditable()
@Experimental() // untriaged
- void reverse() 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.
-
+ final double localTime;
-@DocsEditable()
-@DomName('AnimationEffectReadOnly')
-@Experimental() // untriaged
-@Native("AnimationEffectReadOnly")
-class AnimationEffectReadOnly extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory AnimationEffectReadOnly._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('AnimationEffectReadOnly.computedTiming')
+ @DomName('AnimationNode.player')
@DocsEditable()
@Experimental() // untriaged
- Map get computedTiming => convertNativeToDart_Dictionary(this._get_computedTiming);
- @JSName('computedTiming')
- @DomName('AnimationEffectReadOnly.computedTiming')
+ final AnimationPlayer player;
+
+ @DomName('AnimationNode.startTime')
@DocsEditable()
@Experimental() // untriaged
- final dynamic _get_computedTiming;
+ final double startTime;
- @DomName('AnimationEffectReadOnly.timing')
+ @DomName('AnimationNode.timing')
@DocsEditable()
@Experimental() // untriaged
- final AnimationEffectTiming timing;
+ final Timing 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
@@ -374,92 +386,65 @@ class AnimationEffectReadOnly extends Interceptor {
@DocsEditable()
-@DomName('AnimationEffectTiming')
+@DomName('AnimationPlayer')
@Experimental() // untriaged
-@Native("AnimationEffectTiming")
-class AnimationEffectTiming extends Interceptor {
+@Native("AnimationPlayer")
+class AnimationPlayer extends EventTarget {
// To suppress missing implicit constructor warnings.
- factory AnimationEffectTiming._() { throw new UnsupportedError("Not supported"); }
+ factory AnimationPlayer._() { throw new UnsupportedError("Not supported"); }
- @DomName('AnimationEffectTiming.delay')
- @DocsEditable()
- @Experimental() // untriaged
- num delay;
+ /// Checks if this type is supported on the current platform.
+ static bool get supported => JS('bool', '!!(document.body.animate)');
- @DomName('AnimationEffectTiming.direction')
+ @DomName('AnimationPlayer.currentTime')
@DocsEditable()
@Experimental() // untriaged
- String direction;
+ num currentTime;
- @DomName('AnimationEffectTiming.duration')
+ @DomName('AnimationPlayer.playState')
@DocsEditable()
@Experimental() // untriaged
- Object duration;
+ final String playState;
- @DomName('AnimationEffectTiming.easing')
+ @DomName('AnimationPlayer.playbackRate')
@DocsEditable()
@Experimental() // untriaged
- String easing;
+ num playbackRate;
- @DomName('AnimationEffectTiming.endDelay')
+ @DomName('AnimationPlayer.source')
@DocsEditable()
@Experimental() // untriaged
- num endDelay;
+ AnimationNode source;
- @DomName('AnimationEffectTiming.fill')
+ @DomName('AnimationPlayer.startTime')
@DocsEditable()
@Experimental() // untriaged
- String fill;
+ num startTime;
- @DomName('AnimationEffectTiming.iterationStart')
+ @DomName('AnimationPlayer.cancel')
@DocsEditable()
@Experimental() // untriaged
- num iterationStart;
+ void cancel() native;
- @DomName('AnimationEffectTiming.iterations')
+ @DomName('AnimationPlayer.finish')
@DocsEditable()
@Experimental() // untriaged
- num iterations;
+ void finish() native;
- @DomName('AnimationEffectTiming.playbackRate')
+ @DomName('AnimationPlayer.pause')
@DocsEditable()
@Experimental() // untriaged
- num playbackRate;
-}
-// 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('AnimationEvent')
-@Experimental() // untriaged
-@Native("AnimationEvent")
-class AnimationEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory AnimationEvent._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('AnimationEvent.AnimationEvent')
- @DocsEditable()
- factory AnimationEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return AnimationEvent._create_1(type, eventInitDict_1);
- }
- return AnimationEvent._create_2(type);
- }
- static AnimationEvent _create_1(type, eventInitDict) => JS('AnimationEvent', 'new AnimationEvent(#,#)', type, eventInitDict);
- static AnimationEvent _create_2(type) => JS('AnimationEvent', 'new AnimationEvent(#)', type);
+ void pause() native;
- @DomName('AnimationEvent.animationName')
+ @DomName('AnimationPlayer.play')
@DocsEditable()
@Experimental() // untriaged
- final String animationName;
+ void play() native;
- @DomName('AnimationEvent.elapsedTime')
+ @DomName('AnimationPlayer.reverse')
@DocsEditable()
@Experimental() // untriaged
- final double elapsedTime;
+ void reverse() 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
@@ -474,18 +459,6 @@ class AnimationPlayerEvent extends Event {
// To suppress missing implicit constructor warnings.
factory AnimationPlayerEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('AnimationPlayerEvent.AnimationPlayerEvent')
- @DocsEditable()
- factory AnimationPlayerEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return AnimationPlayerEvent._create_1(type, eventInitDict_1);
- }
- return AnimationPlayerEvent._create_2(type);
- }
- static AnimationPlayerEvent _create_1(type, eventInitDict) => JS('AnimationPlayerEvent', 'new AnimationPlayerEvent(#,#)', type, eventInitDict);
- static AnimationPlayerEvent _create_2(type) => JS('AnimationPlayerEvent', 'new AnimationPlayerEvent(#)', type);
-
@DomName('AnimationPlayerEvent.currentTime')
@DocsEditable()
@Experimental() // untriaged
@@ -512,45 +485,17 @@ class AnimationTimeline extends Interceptor {
@DomName('AnimationTimeline.currentTime')
@DocsEditable()
@Experimental() // untriaged
- num currentTime;
-
- @DomName('AnimationTimeline.playbackRate')
- @DocsEditable()
- @Experimental() // untriaged
- num playbackRate;
+ final double currentTime;
- @DomName('AnimationTimeline.getAnimations')
+ @DomName('AnimationTimeline.getAnimationPlayers')
@DocsEditable()
@Experimental() // untriaged
- List<Animation> getAnimations() native;
+ List<AnimationPlayer> getAnimationPlayers() native;
@DomName('AnimationTimeline.play')
@DocsEditable()
@Experimental() // untriaged
- Animation play(AnimationEffectReadOnly source) 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('AppBannerPromptResult')
-@Experimental() // untriaged
-@Native("AppBannerPromptResult")
-class AppBannerPromptResult extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory AppBannerPromptResult._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('AppBannerPromptResult.outcome')
- @DocsEditable()
- @Experimental() // untriaged
- final String outcome;
-
- @DomName('AppBannerPromptResult.platform')
- @DocsEditable()
- @Experimental() // untriaged
- final String platform;
+ AnimationPlayer play(AnimationNode source) 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
@@ -749,18 +694,6 @@ class ApplicationCacheErrorEvent extends Event {
// To suppress missing implicit constructor warnings.
factory ApplicationCacheErrorEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('ApplicationCacheErrorEvent.ApplicationCacheErrorEvent')
- @DocsEditable()
- factory ApplicationCacheErrorEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return ApplicationCacheErrorEvent._create_1(type, eventInitDict_1);
- }
- return ApplicationCacheErrorEvent._create_2(type);
- }
- static ApplicationCacheErrorEvent _create_1(type, eventInitDict) => JS('ApplicationCacheErrorEvent', 'new ApplicationCacheErrorEvent(#,#)', type, eventInitDict);
- static ApplicationCacheErrorEvent _create_2(type) => JS('ApplicationCacheErrorEvent', 'new ApplicationCacheErrorEvent(#)', type);
-
@DomName('ApplicationCacheErrorEvent.message')
@DocsEditable()
@Experimental() // untriaged
@@ -1002,18 +935,6 @@ class AutocompleteErrorEvent extends Event {
// To suppress missing implicit constructor warnings.
factory AutocompleteErrorEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('AutocompleteErrorEvent.AutocompleteErrorEvent')
- @DocsEditable()
- factory AutocompleteErrorEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return AutocompleteErrorEvent._create_1(type, eventInitDict_1);
- }
- return AutocompleteErrorEvent._create_2(type);
- }
- static AutocompleteErrorEvent _create_1(type, eventInitDict) => JS('AutocompleteErrorEvent', 'new AutocompleteErrorEvent(#,#)', type, eventInitDict);
- static AutocompleteErrorEvent _create_2(type) => JS('AutocompleteErrorEvent', 'new AutocompleteErrorEvent(#)', type);
-
@DomName('AutocompleteErrorEvent.reason')
@DocsEditable()
final String reason;
@@ -1124,43 +1045,6 @@ class BatteryManager extends EventTarget {
@DocsEditable()
-@DomName('BeforeInstallPromptEvent')
-@Experimental() // untriaged
-@Native("BeforeInstallPromptEvent")
-class BeforeInstallPromptEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory BeforeInstallPromptEvent._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('BeforeInstallPromptEvent.BeforeInstallPromptEvent')
- @DocsEditable()
- factory BeforeInstallPromptEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return BeforeInstallPromptEvent._create_1(type, eventInitDict_1);
- }
- return BeforeInstallPromptEvent._create_2(type);
- }
- static BeforeInstallPromptEvent _create_1(type, eventInitDict) => JS('BeforeInstallPromptEvent', 'new BeforeInstallPromptEvent(#,#)', type, eventInitDict);
- static BeforeInstallPromptEvent _create_2(type) => JS('BeforeInstallPromptEvent', 'new BeforeInstallPromptEvent(#)', type);
-
- List<String> get platforms => JS("List<String>", "#.platforms", this);
-
- @DomName('BeforeInstallPromptEvent.userChoice')
- @DocsEditable()
- @Experimental() // untriaged
- final Future userChoice;
-
- @DomName('BeforeInstallPromptEvent.prompt')
- @DocsEditable()
- @Experimental() // untriaged
- Future prompt() 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('BeforeUnloadEvent')
@Native("BeforeUnloadEvent")
class BeforeUnloadEvent extends Event {
@@ -1227,178 +1111,6 @@ class Blob extends Interceptor {
@DocsEditable()
-@DomName('Bluetooth')
-@Experimental() // untriaged
-@Native("Bluetooth")
-class Bluetooth extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory Bluetooth._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('Bluetooth.requestDevice')
- @DocsEditable()
- @Experimental() // untriaged
- Future requestDevice(Map options) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _requestDevice_1(options_1);
- }
- @JSName('requestDevice')
- @DomName('Bluetooth.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('BluetoothDevice')
-@Experimental() // untriaged
-@Native("BluetoothDevice")
-class BluetoothDevice extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory BluetoothDevice._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('BluetoothDevice.deviceClass')
- @DocsEditable()
- @Experimental() // untriaged
- final int deviceClass;
-
- @DomName('BluetoothDevice.instanceID')
- @DocsEditable()
- @Experimental() // untriaged
- final String instanceID;
-
- @DomName('BluetoothDevice.name')
- @DocsEditable()
- @Experimental() // untriaged
- final String name;
-
- @DomName('BluetoothDevice.paired')
- @DocsEditable()
- @Experimental() // untriaged
- final bool paired;
-
- @DomName('BluetoothDevice.productID')
- @DocsEditable()
- @Experimental() // untriaged
- final int productID;
-
- @DomName('BluetoothDevice.productVersion')
- @DocsEditable()
- @Experimental() // untriaged
- final int productVersion;
-
- @DomName('BluetoothDevice.vendorID')
- @DocsEditable()
- @Experimental() // untriaged
- final int vendorID;
-
- @DomName('BluetoothDevice.vendorIDSource')
- @DocsEditable()
- @Experimental() // untriaged
- final String vendorIDSource;
-
- @JSName('connectGATT')
- @DomName('BluetoothDevice.connectGATT')
- @DocsEditable()
- @Experimental() // untriaged
- Future connectGatt() 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('BluetoothGATTCharacteristic')
-@Experimental() // untriaged
-@Native("BluetoothGATTCharacteristic")
-class BluetoothGattCharacteristic extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory BluetoothGattCharacteristic._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('BluetoothGATTCharacteristic.readValue')
- @DocsEditable()
- @Experimental() // untriaged
- Future readValue() native;
-
- @DomName('BluetoothGATTCharacteristic.writeValue')
- @DocsEditable()
- @Experimental() // untriaged
- Future writeValue(/*BufferSource*/ 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('BluetoothGATTRemoteServer')
-@Experimental() // untriaged
-@Native("BluetoothGATTRemoteServer")
-class BluetoothGattRemoteServer extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory BluetoothGattRemoteServer._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('BluetoothGATTRemoteServer.connected')
- @DocsEditable()
- @Experimental() // untriaged
- final bool connected;
-
- @DomName('BluetoothGATTRemoteServer.getPrimaryService')
- @DocsEditable()
- @Experimental() // untriaged
- Future getPrimaryService(/*BluetoothServiceUUID*/ service) 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('BluetoothGATTService')
-@Experimental() // untriaged
-@Native("BluetoothGATTService")
-class BluetoothGattService extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory BluetoothGattService._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('BluetoothGATTService.isPrimary')
- @DocsEditable()
- @Experimental() // untriaged
- final bool isPrimary;
-
- @DomName('BluetoothGATTService.uuid')
- @DocsEditable()
- @Experimental() // untriaged
- final String uuid;
-
- @DomName('BluetoothGATTService.getCharacteristic')
- @DocsEditable()
- @Experimental() // untriaged
- Future getCharacteristic(/*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
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DocsEditable()
-@DomName('BluetoothUUID')
-@Experimental() // untriaged
-@Native("BluetoothUUID")
-class BluetoothUuid extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory BluetoothUuid._() { 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('Body')
@Experimental() // untriaged
@Native("Body")
@@ -1732,11 +1444,6 @@ class ButtonElement extends HtmlElement {
@DocsEditable()
bool checkValidity() native;
- @DomName('HTMLButtonElement.reportValidity')
- @DocsEditable()
- @Experimental() // untriaged
- bool reportValidity() native;
-
@DomName('HTMLButtonElement.setCustomValidity')
@DocsEditable()
void setCustomValidity(String error) native;
@@ -1768,11 +1475,21 @@ class CacheStorage extends Interceptor {
// To suppress missing implicit constructor warnings.
factory CacheStorage._() { throw new UnsupportedError("Not supported"); }
+ @DomName('CacheStorage.create')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future create(String cacheName) native;
+
@DomName('CacheStorage.delete')
@DocsEditable()
@Experimental() // untriaged
Future delete(String cacheName) native;
+ @DomName('CacheStorage.get')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future get(String cacheName) native;
+
@DomName('CacheStorage.has')
@DocsEditable()
@Experimental() // untriaged
@@ -1782,32 +1499,29 @@ class CacheStorage extends Interceptor {
@DocsEditable()
@Experimental() // untriaged
Future keys() 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('CacheStorage.match')
- @DocsEditable()
- @Experimental() // untriaged
- Future match(/*RequestInfo*/ request, [Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _match_1(request, options_1);
- }
- return _match_2(request);
- }
- @JSName('match')
- @DomName('CacheStorage.match')
- @DocsEditable()
- @Experimental() // untriaged
- Future _match_1(request, options) native;
- @JSName('match')
- @DomName('CacheStorage.match')
+
+@DocsEditable()
+@DomName('Canvas2DContextAttributes')
+// http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL
+@Experimental()
+@Native("Canvas2DContextAttributes")
+class Canvas2DContextAttributes extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory Canvas2DContextAttributes._() { throw new UnsupportedError("Not supported"); }
+
+ @DomName('Canvas2DContextAttributes.alpha')
@DocsEditable()
- @Experimental() // untriaged
- Future _match_2(request) native;
+ bool alpha;
- @DomName('CacheStorage.open')
+ @DomName('Canvas2DContextAttributes.storage')
@DocsEditable()
@Experimental() // untriaged
- Future open(String cacheName) native;
+ String storage;
}
// 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
@@ -1869,10 +1583,10 @@ class CanvasElement extends HtmlElement implements CanvasImageSource {
@DocsEditable()
@Creates('CanvasRenderingContext2D|RenderingContext')
@Returns('CanvasRenderingContext2D|RenderingContext|Null')
- Object getContext(String contextId, [Map attributes]) {
- if (attributes != null) {
- var attributes_1 = convertDartToNative_Dictionary(attributes);
- return _getContext_1(contextId, attributes_1);
+ Object getContext(String contextId, [Map attrs]) {
+ if (attrs != null) {
+ var attrs_1 = convertDartToNative_Dictionary(attrs);
+ return _getContext_1(contextId, attrs_1);
}
return _getContext_2(contextId);
}
@@ -1881,7 +1595,7 @@ class CanvasElement extends HtmlElement implements CanvasImageSource {
@DocsEditable()
@Creates('CanvasRenderingContext2D|RenderingContext')
@Returns('CanvasRenderingContext2D|RenderingContext|Null')
- Object _getContext_1(contextId, attributes) native;
+ Object _getContext_1(contextId, attrs) native;
@JSName('getContext')
@DomName('HTMLCanvasElement.getContext')
@DocsEditable()
@@ -1892,7 +1606,7 @@ class CanvasElement extends HtmlElement implements CanvasImageSource {
@JSName('toDataURL')
@DomName('HTMLCanvasElement.toDataURL')
@DocsEditable()
- String _toDataUrl(String type, [arguments_OR_quality]) native;
+ String _toDataUrl(String type, [num quality]) native;
/// Stream of `webglcontextlost` events handled by this [CanvasElement].
@DomName('HTMLCanvasElement.onwebglcontextlost')
@@ -2118,11 +1832,6 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon
@Returns('String|CanvasGradient|CanvasPattern')
Object fillStyle;
- @DomName('CanvasRenderingContext2D.filter')
- @DocsEditable()
- @Experimental() // untriaged
- String filter;
-
@DomName('CanvasRenderingContext2D.font')
@DocsEditable()
String font;
@@ -2239,26 +1948,27 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon
@DomName('CanvasRenderingContext2D.createImageData')
@DocsEditable()
@Creates('ImageData|=Object')
- ImageData createImageData(imagedata_OR_sw, [num sh]) {
- if ((imagedata_OR_sw is ImageData) && sh == null) {
- var imagedata_1 = convertDartToNative_ImageData(imagedata_OR_sw);
- return convertNativeToDart_ImageData(_createImageData_1(imagedata_1));
- }
- if (sh != null && (imagedata_OR_sw is num)) {
- return convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh));
- }
- throw new ArgumentError("Incorrect number or type of arguments");
+ ImageData createImageData(num sw, num sh) {
+ return convertNativeToDart_ImageData(_createImageData_1(sw, sh));
}
@JSName('createImageData')
@DomName('CanvasRenderingContext2D.createImageData')
@DocsEditable()
@Creates('ImageData|=Object')
- _createImageData_1(imagedata) native;
+ _createImageData_1(sw, sh) native;
+
+ @DomName('CanvasRenderingContext2D.createImageData')
+ @DocsEditable()
+ @Creates('ImageData|=Object')
+ ImageData createImageDataFromImageData(ImageData imagedata) {
+ var imagedata_1 = convertDartToNative_ImageData(imagedata);
+ return convertNativeToDart_ImageData(_createImageDataFromImageData_1(imagedata_1));
+ }
@JSName('createImageData')
@DomName('CanvasRenderingContext2D.createImageData')
@DocsEditable()
@Creates('ImageData|=Object')
- _createImageData_2(num sw, sh) native;
+ _createImageDataFromImageData_1(imagedata) native;
@DomName('CanvasRenderingContext2D.createLinearGradient')
@DocsEditable()
@@ -2266,7 +1976,12 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon
@DomName('CanvasRenderingContext2D.createPattern')
@DocsEditable()
- CanvasPattern createPattern(Object image, String repetitionType) native;
+ CanvasPattern createPattern(canvas_OR_image, String repetitionType) native;
+
+ @JSName('createPattern')
+ @DomName('CanvasRenderingContext2D.createPattern')
+ @DocsEditable()
+ CanvasPattern createPatternFromImage(ImageElement image, String repetitionType) native;
@DomName('CanvasRenderingContext2D.createRadialGradient')
@DocsEditable()
@@ -2285,15 +2000,7 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon
@DocsEditable()
// http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL
@Experimental()
- Map getContextAttributes() {
- return convertNativeToDart_Dictionary(_getContextAttributes_1());
- }
- @JSName('getContextAttributes')
- @DomName('CanvasRenderingContext2D.getContextAttributes')
- @DocsEditable()
- // http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL
- @Experimental()
- _getContextAttributes_1() native;
+ Canvas2DContextAttributes getContextAttributes() native;
@DomName('CanvasRenderingContext2D.getImageData')
@DocsEditable()
@@ -2449,11 +2156,6 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon
void rect(num x, num y, num width, num height) native;
- @DomName('CanvasRenderingContext2D.createImageDataFromImageData')
- @DocsEditable()
- ImageData createImageDataFromImageData(ImageData imagedata) =>
- JS('ImageData', '#.createImageData(#, #, null)', this, imagedata);
-
/**
* Sets the color used inside shapes.
* [r], [g], [b] are 0-255, [a] is 0-1.
@@ -2498,10 +2200,6 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon
endAngle, anticlockwise);
}
- @DomName('CanvasRenderingContext2D.createPatternFromImage')
- CanvasPattern createPatternFromImage(ImageElement image, String repetitionType) =>
- JS('CanvasPattern', '#.createPattern(#, #)', this, image, repetitionType);
-
/**
* Draws an image from a CanvasImageSource to an area of this canvas.
*
@@ -2759,7 +2457,7 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon
@DocsEditable()
@DomName('CharacterData')
@Native("CharacterData")
-class CharacterData extends Node implements NonDocumentTypeChildNode, ChildNode {
+class CharacterData extends Node implements ChildNode {
// To suppress missing implicit constructor warnings.
factory CharacterData._() { throw new UnsupportedError("Not supported"); }
@@ -2777,7 +2475,7 @@ class CharacterData extends Node implements NonDocumentTypeChildNode, ChildNode
@DomName('CharacterData.deleteData')
@DocsEditable()
- void deleteData(int offset, int count) native;
+ void deleteData(int offset, int length) native;
@DomName('CharacterData.insertData')
@DocsEditable()
@@ -2785,26 +2483,14 @@ class CharacterData extends Node implements NonDocumentTypeChildNode, ChildNode
@DomName('CharacterData.replaceData')
@DocsEditable()
- void replaceData(int offset, int count, String data) native;
+ void replaceData(int offset, int length, String data) native;
@DomName('CharacterData.substringData')
@DocsEditable()
- String substringData(int offset, int count) native;
+ String substringData(int offset, int length) native;
// 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')
@DocsEditable()
final Element nextElementSibling;
@@ -2825,9 +2511,9 @@ abstract class ChildNode extends Interceptor {
// To suppress missing implicit constructor warnings.
factory ChildNode._() { throw new UnsupportedError("Not supported"); }
- void after(Object nodes);
+ final Element nextElementSibling;
- void before(Object nodes);
+ final Element previousElementSibling;
void remove();
}
@@ -2837,19 +2523,6 @@ abstract class ChildNode extends Interceptor {
@DocsEditable()
-@DomName('CHROMIUMValuebuffer')
-@Experimental() // untriaged
-@Native("CHROMIUMValuebuffer")
-class ChromiumValuebuffer extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory ChromiumValuebuffer._() { 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('CircularGeofencingRegion')
@Experimental() // untriaged
@Native("CircularGeofencingRegion")
@@ -2896,138 +2569,12 @@ class CircularGeofencingRegion extends GeofencingRegion {
@DocsEditable()
-@DomName('Client')
-@Experimental() // untriaged
-@Native("Client")
-class Client extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory Client._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('Client.frameType')
- @DocsEditable()
- @Experimental() // untriaged
- final String frameType;
-
- @DomName('Client.id')
- @DocsEditable()
- @Experimental() // untriaged
- final String id;
-
- @DomName('Client.url')
- @DocsEditable()
- @Experimental() // untriaged
- final String url;
-
- @DomName('Client.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) {
- if (transfer != null) {
- var message_1 = convertDartToNative_SerializedScriptValue(message);
- _postMessage_1(message_1, transfer);
- return;
- }
- var message_1 = convertDartToNative_SerializedScriptValue(message);
- _postMessage_2(message_1);
- return;
- }
- @JSName('postMessage')
- @DomName('Client.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void _postMessage_1(message, List<MessagePort> transfer) native;
- @JSName('postMessage')
- @DomName('Client.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void _postMessage_2(message) 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('Clients')
-@Experimental() // untriaged
-@Native("Clients")
-class Clients extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory Clients._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('Clients.claim')
- @DocsEditable()
- @Experimental() // untriaged
- Future claim() native;
-
- @DomName('Clients.matchAll')
- @DocsEditable()
- @Experimental() // untriaged
- Future matchAll([Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _matchAll_1(options_1);
- }
- return _matchAll_2();
- }
- @JSName('matchAll')
- @DomName('Clients.matchAll')
- @DocsEditable()
- @Experimental() // untriaged
- Future _matchAll_1(options) native;
- @JSName('matchAll')
- @DomName('Clients.matchAll')
- @DocsEditable()
- @Experimental() // untriaged
- Future _matchAll_2() native;
-
- @DomName('Clients.openWindow')
- @DocsEditable()
- @Experimental() // untriaged
- Future openWindow(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
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DocsEditable()
-@DomName('ClipboardEvent')
-@Experimental() // untriaged
-@Native("ClipboardEvent")
-class ClipboardEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory ClipboardEvent._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('ClipboardEvent.clipboardData')
- @DocsEditable()
- @Experimental() // untriaged
- final DataTransfer clipboardData;
-}
-// 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('CloseEvent')
@Native("CloseEvent")
class CloseEvent extends Event {
// To suppress missing implicit constructor warnings.
factory CloseEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('CloseEvent.CloseEvent')
- @DocsEditable()
- factory CloseEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return CloseEvent._create_1(type, eventInitDict_1);
- }
- return CloseEvent._create_2(type);
- }
- static CloseEvent _create_1(type, eventInitDict) => JS('CloseEvent', 'new CloseEvent(#,#)', type, eventInitDict);
- static CloseEvent _create_2(type) => JS('CloseEvent', 'new CloseEvent(#)', type);
-
@DomName('CloseEvent.code')
@DocsEditable()
final int code;
@@ -3087,204 +2634,33 @@ class CompositionEvent extends UIEvent {
return e;
}
-
- @DomName('CompositionEvent.CompositionEvent')
- @DocsEditable()
- factory CompositionEvent._(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return CompositionEvent._create_1(type, eventInitDict_1);
- }
- return CompositionEvent._create_2(type);
- }
- static CompositionEvent _create_1(type, eventInitDict) => JS('CompositionEvent', 'new CompositionEvent(#,#)', type, eventInitDict);
- static CompositionEvent _create_2(type) => JS('CompositionEvent', 'new CompositionEvent(#)', type);
-
- @DomName('CompositionEvent.data')
- @DocsEditable()
- final String data;
-
- @JSName('initCompositionEvent')
- @DomName('CompositionEvent.initCompositionEvent')
- @DocsEditable()
- void _initCompositionEvent(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
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DocsEditable()
-@DomName('CompositorProxy')
-@Experimental() // untriaged
-@Native("CompositorProxy")
-class CompositorProxy extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory CompositorProxy._() { throw new UnsupportedError("Not supported"); }
+ factory CompositionEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('CompositorProxy.CompositorProxy')
- @DocsEditable()
- factory CompositorProxy(Element element, List<String> attributeArray) {
- return CompositorProxy._create_1(element, attributeArray);
- }
- static CompositorProxy _create_1(element, attributeArray) => JS('CompositorProxy', 'new CompositorProxy(#,#)', element, attributeArray);
-
- @DomName('CompositorProxy.opacity')
+ @DomName('CompositionEvent.activeSegmentEnd')
@DocsEditable()
@Experimental() // untriaged
- num opacity;
+ final int activeSegmentEnd;
- @DomName('CompositorProxy.scrollLeft')
+ @DomName('CompositionEvent.activeSegmentStart')
@DocsEditable()
@Experimental() // untriaged
- num scrollLeft;
+ final int activeSegmentStart;
- @DomName('CompositorProxy.scrollTop')
- @DocsEditable()
- @Experimental() // untriaged
- num scrollTop;
-
- @DomName('CompositorProxy.transform')
- @DocsEditable()
- @Experimental() // untriaged
- DomMatrix transform;
-
- @DomName('CompositorProxy.disconnect')
- @DocsEditable()
- @Experimental() // untriaged
- void disconnect() native;
-
- @DomName('CompositorProxy.supports')
- @DocsEditable()
- @Experimental() // untriaged
- bool supports(String attribute) 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('CompositorWorker')
-@Experimental() // untriaged
-@Native("CompositorWorker")
-class CompositorWorker extends EventTarget implements AbstractWorker {
- // To suppress missing implicit constructor warnings.
- factory CompositorWorker._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('CompositorWorker.errorEvent')
- @DocsEditable()
- @Experimental() // untriaged
- static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
-
- @DomName('CompositorWorker.messageEvent')
- @DocsEditable()
- @Experimental() // untriaged
- static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
-
- @DomName('CompositorWorker.CompositorWorker')
- @DocsEditable()
- factory CompositorWorker(String scriptUrl) {
- return CompositorWorker._create_1(scriptUrl);
- }
- static CompositorWorker _create_1(scriptUrl) => JS('CompositorWorker', 'new CompositorWorker(#)', scriptUrl);
-
- @DomName('CompositorWorker.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) {
- if (transfer != null) {
- var message_1 = convertDartToNative_SerializedScriptValue(message);
- _postMessage_1(message_1, transfer);
- return;
- }
- var message_1 = convertDartToNative_SerializedScriptValue(message);
- _postMessage_2(message_1);
- return;
- }
- @JSName('postMessage')
- @DomName('CompositorWorker.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void _postMessage_1(message, List<MessagePort> transfer) native;
- @JSName('postMessage')
- @DomName('CompositorWorker.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void _postMessage_2(message) native;
-
- @DomName('CompositorWorker.terminate')
- @DocsEditable()
- @Experimental() // untriaged
- void terminate() native;
-
- @DomName('CompositorWorker.onerror')
- @DocsEditable()
- @Experimental() // untriaged
- Stream<Event> get onError => errorEvent.forTarget(this);
-
- @DomName('CompositorWorker.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.
-
-
-@DocsEditable()
-@DomName('CompositorWorkerGlobalScope')
-@Experimental() // untriaged
-@Native("CompositorWorkerGlobalScope")
-class CompositorWorkerGlobalScope extends WorkerGlobalScope {
- // To suppress missing implicit constructor warnings.
- factory CompositorWorkerGlobalScope._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('CompositorWorkerGlobalScope.messageEvent')
+ @DomName('CompositionEvent.data')
@DocsEditable()
- @Experimental() // untriaged
- static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
+ final String data;
- @DomName('CompositorWorkerGlobalScope.cancelAnimationFrame')
+ @DomName('CompositionEvent.getSegments')
@DocsEditable()
@Experimental() // untriaged
- void cancelAnimationFrame(int handle) native;
+ List<int> getSegments() native;
- @DomName('CompositorWorkerGlobalScope.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void postMessage(/*any*/ message, [List<MessagePort> transfer]) {
- if (transfer != null) {
- var message_1 = convertDartToNative_SerializedScriptValue(message);
- _postMessage_1(message_1, transfer);
- return;
- }
- var message_1 = convertDartToNative_SerializedScriptValue(message);
- _postMessage_2(message_1);
- return;
- }
- @JSName('postMessage')
- @DomName('CompositorWorkerGlobalScope.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void _postMessage_1(message, List<MessagePort> transfer) native;
- @JSName('postMessage')
- @DomName('CompositorWorkerGlobalScope.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void _postMessage_2(message) native;
-
- @DomName('CompositorWorkerGlobalScope.requestAnimationFrame')
+ @JSName('initCompositionEvent')
+ @DomName('CompositionEvent.initCompositionEvent')
@DocsEditable()
- @Experimental() // untriaged
- int requestAnimationFrame(FrameRequestCallback callback) native;
+ void _initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) native;
- @DomName('CompositorWorkerGlobalScope.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
@@ -3404,12 +2780,6 @@ class ConsoleBase extends Interceptor {
// To suppress missing implicit constructor warnings.
factory ConsoleBase._() { throw new UnsupportedError("Not supported"); }
- @JSName('assert')
- @DomName('ConsoleBase.assert')
- @DocsEditable()
- @Experimental() // untriaged
- void assertCondition(bool condition, Object arg) native;
-
@DomName('ConsoleBase.timeline')
@DocsEditable()
@Experimental() // untriaged
@@ -3511,11 +2881,11 @@ class Credential extends Interceptor {
// To suppress missing implicit constructor warnings.
factory Credential._() { throw new UnsupportedError("Not supported"); }
- @JSName('iconURL')
- @DomName('Credential.iconURL')
+ @JSName('avatarURL')
+ @DomName('Credential.avatarURL')
@DocsEditable()
@Experimental() // untriaged
- final String iconUrl;
+ final String avatarUrl;
@DomName('Credential.id')
@DocsEditable()
@@ -3526,11 +2896,6 @@ class Credential extends Interceptor {
@DocsEditable()
@Experimental() // untriaged
final String name;
-
- @DomName('Credential.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
@@ -3545,11 +2910,21 @@ class CredentialsContainer extends Interceptor {
// To suppress missing implicit constructor warnings.
factory CredentialsContainer._() { throw new UnsupportedError("Not supported"); }
+ @DomName('CredentialsContainer.notifyFailedSignIn')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future notifyFailedSignIn(Credential credential) native;
+
@DomName('CredentialsContainer.notifySignedIn')
@DocsEditable()
@Experimental() // untriaged
Future notifySignedIn(Credential credential) native;
+ @DomName('CredentialsContainer.notifySignedOut')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future notifySignedOut() native;
+
@DomName('CredentialsContainer.request')
@DocsEditable()
@Experimental() // untriaged
@@ -3570,81 +2945,6 @@ class CredentialsContainer extends Interceptor {
@DocsEditable()
@Experimental() // untriaged
Future _request_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')
- @DocsEditable()
- @Experimental() // untriaged
- void acceptConnection(Future shouldAccept) 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('CrossOriginServiceWorkerClient')
-@Experimental() // untriaged
-@Native("CrossOriginServiceWorkerClient")
-class CrossOriginServiceWorkerClient extends EventTarget {
- // To suppress missing implicit constructor warnings.
- factory CrossOriginServiceWorkerClient._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('CrossOriginServiceWorkerClient.origin')
- @DocsEditable()
- @Experimental() // untriaged
- final String origin;
-
- @DomName('CrossOriginServiceWorkerClient.targetUrl')
- @DocsEditable()
- @Experimental() // untriaged
- final String targetUrl;
-
- @DomName('CrossOriginServiceWorkerClient.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) {
- if (transfer != null) {
- var message_1 = convertDartToNative_SerializedScriptValue(message);
- _postMessage_1(message_1, transfer);
- return;
- }
- var message_1 = convertDartToNative_SerializedScriptValue(message);
- _postMessage_2(message_1);
- return;
- }
- @JSName('postMessage')
- @DomName('CrossOriginServiceWorkerClient.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void _postMessage_1(message, List<MessagePort> transfer) native;
- @JSName('postMessage')
- @DomName('CrossOriginServiceWorkerClient.postMessage')
- @DocsEditable()
- @Experimental() // untriaged
- void _postMessage_2(message) native;
}
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -3731,12 +3031,12 @@ class Css extends Interceptor {
@DomName('CSS.supports')
@DocsEditable()
- static bool supports(String property, String value) native;
+ bool supports(String property, String value) native;
@JSName('supports')
@DomName('CSS.supports')
@DocsEditable()
- static bool supportsCondition(String conditionText) native;
+ bool supportsCondition(String conditionText) 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
@@ -3744,15 +3044,17 @@ class Css extends Interceptor {
@DocsEditable()
-@DomName('CSSFontFaceRule')
-@Native("CSSFontFaceRule")
-class CssFontFaceRule extends CssRule {
+@DomName('CSSCharsetRule')
+// http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface
+@Experimental()
+@Native("CSSCharsetRule")
+class CssCharsetRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssCharsetRule._() { throw new UnsupportedError("Not supported"); }
- @DomName('CSSFontFaceRule.style')
+ @DomName('CSSCharsetRule.encoding')
@DocsEditable()
- final CssStyleDeclaration style;
+ String encoding;
}
// 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
@@ -3760,29 +3062,35 @@ class CssFontFaceRule extends CssRule {
@DocsEditable()
-@DomName('CSSGroupingRule')
-@Experimental() // untriaged
-@Native("CSSGroupingRule")
-class CssGroupingRule extends CssRule {
+@DomName('WebKitCSSFilterRule')
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.SAFARI)
+@Experimental()
+// http://www.w3.org/TR/filter-effects/
+@Native("WebKitCSSFilterRule")
+class CssFilterRule extends CssRule {
// To suppress missing implicit constructor warnings.
- factory CssGroupingRule._() { throw new UnsupportedError("Not supported"); }
+ factory CssFilterRule._() { throw new UnsupportedError("Not supported"); }
- @DomName('CSSGroupingRule.cssRules')
+ @DomName('WebKitCSSFilterRule.style')
@DocsEditable()
- @Experimental() // untriaged
- @Returns('_CssRuleList')
- @Creates('_CssRuleList')
- final List<CssRule> cssRules;
+ final CssStyleDeclaration style;
+}
+// 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('CSSGroupingRule.deleteRule')
- @DocsEditable()
- @Experimental() // untriaged
- void deleteRule(int index) native;
- @DomName('CSSGroupingRule.insertRule')
+@DocsEditable()
+@DomName('CSSFontFaceRule')
+@Native("CSSFontFaceRule")
+class CssFontFaceRule extends CssRule {
+ // To suppress missing implicit constructor warnings.
+ factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); }
+
+ @DomName('CSSFontFaceRule.style')
@DocsEditable()
- @Experimental() // untriaged
- int insertRule(String rule, int index) native;
+ final CssStyleDeclaration style;
}
// 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
@@ -3861,20 +3169,21 @@ class CssKeyframesRule extends CssRule {
@Experimental() // untriaged
CssKeyframeRule __getter__(int index) native;
- @DomName('CSSKeyframesRule.appendRule')
+ @DomName('CSSKeyframesRule.deleteRule')
@DocsEditable()
@Experimental() // untriaged
- void appendRule(String rule) native;
+ void deleteRule(String key) native;
- @DomName('CSSKeyframesRule.deleteRule')
+ @DomName('CSSKeyframesRule.findRule')
@DocsEditable()
@Experimental() // untriaged
- void deleteRule(String select) native;
+ CssKeyframeRule findRule(String key) native;
- @DomName('CSSKeyframesRule.findRule')
+ @JSName('insertRule')
+ @DomName('CSSKeyframesRule.insertRule')
@DocsEditable()
@Experimental() // untriaged
- CssKeyframeRule findRule(String select) native;
+ void appendRule(String rule) 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
@@ -3884,13 +3193,27 @@ class CssKeyframesRule extends CssRule {
@DocsEditable()
@DomName('CSSMediaRule')
@Native("CSSMediaRule")
-class CssMediaRule extends CssGroupingRule {
+class CssMediaRule extends CssRule {
// To suppress missing implicit constructor warnings.
factory CssMediaRule._() { throw new UnsupportedError("Not supported"); }
+ @DomName('CSSMediaRule.cssRules')
+ @DocsEditable()
+ @Returns('_CssRuleList')
+ @Creates('_CssRuleList')
+ final List<CssRule> cssRules;
+
@DomName('CSSMediaRule.media')
@DocsEditable()
final MediaList media;
+
+ @DomName('CSSMediaRule.deleteRule')
+ @DocsEditable()
+ void deleteRule(int index) native;
+
+ @DomName('CSSMediaRule.insertRule')
+ @DocsEditable()
+ int insertRule(String rule, int index) 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
@@ -3967,6 +3290,12 @@ class CssRule extends Interceptor {
@Experimental() // untriaged
static const int VIEWPORT_RULE = 15;
+ @DomName('CSSRule.WEBKIT_FILTER_RULE')
+ @DocsEditable()
+ // http://www.w3.org/TR/filter-effects/
+ @Experimental()
+ static const int WEBKIT_FILTER_RULE = 17;
+
@DomName('CSSRule.WEBKIT_KEYFRAMES_RULE')
@DocsEditable()
// http://www.w3.org/TR/css3-animations/#cssrule
@@ -4117,16 +3446,16 @@ class CssStyleDeclaration extends Interceptor with
@DomName('CSSStyleDeclaration.__setter__')
@DocsEditable()
- void __setter__(String property, String propertyValue) native;
+ void __setter__(String propertyName, String propertyValue) native;
@DomName('CSSStyleDeclaration.getPropertyPriority')
@DocsEditable()
- String getPropertyPriority(String property) native;
+ String getPropertyPriority(String propertyName) native;
@JSName('getPropertyValue')
@DomName('CSSStyleDeclaration.getPropertyValue')
@DocsEditable()
- String _getPropertyValue(String property) native;
+ String _getPropertyValue(String propertyName) native;
@DomName('CSSStyleDeclaration.item')
@DocsEditable()
@@ -4134,7 +3463,7 @@ class CssStyleDeclaration extends Interceptor with
@DomName('CSSStyleDeclaration.removeProperty')
@DocsEditable()
- String removeProperty(String property) native;
+ String removeProperty(String propertyName) native;
/** Gets the value of "background" */
@@ -8859,18 +8188,8 @@ 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);
+ // To suppress missing implicit constructor warnings.
+ factory CustomEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('CustomEvent._detail')
@DocsEditable()
@@ -8886,7 +8205,7 @@ class CustomEvent extends Event {
@JSName('initCustomEvent')
@DomName('CustomEvent.initCustomEvent')
@DocsEditable()
- void _initCustomEvent(String type, bool bubbles, bool cancelable, Object detail) native;
+ void _initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -8989,17 +8308,17 @@ class DataTransfer extends Interceptor {
@DomName('DataTransfer.clearData')
@DocsEditable()
@Experimental() // untriaged
- void clearData([String format]) native;
+ void clearData([String type]) native;
@DomName('DataTransfer.getData')
@DocsEditable()
@Experimental() // untriaged
- String getData(String format) native;
+ String getData(String type) native;
@DomName('DataTransfer.setData')
@DocsEditable()
@Experimental() // untriaged
- void setData(String format, String data) native;
+ void setData(String type, String data) native;
@DomName('DataTransfer.setDragImage')
@DocsEditable()
@@ -9073,6 +8392,11 @@ class DataTransferItemList extends Interceptor {
@DocsEditable()
final int length;
+ @DomName('DataTransferItemList.__getter__')
+ @DocsEditable()
+ @Experimental() // untriaged
+ DataTransferItem __getter__(int index) native;
+
@DomName('DataTransferItemList.add')
@DocsEditable()
DataTransferItem add(data_OR_file, [String type]) native;
@@ -9091,10 +8415,6 @@ class DataTransferItemList extends Interceptor {
@DocsEditable()
void clear() native;
- @DomName('DataTransferItemList.item')
- @DocsEditable()
- DataTransferItem item(int index) native;
-
@DomName('DataTransferItemList.remove')
@DocsEditable()
@Experimental() // untriaged
@@ -9177,36 +8497,6 @@ class DedicatedWorkerGlobalScope extends WorkerGlobalScope {
@DocsEditable()
-@DomName('DefaultSessionStartEvent')
-@Experimental() // untriaged
-@Native("DefaultSessionStartEvent")
-class DefaultSessionStartEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory DefaultSessionStartEvent._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('DefaultSessionStartEvent.DefaultSessionStartEvent')
- @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);
-
- @DomName('DefaultSessionStartEvent.session')
- @DocsEditable()
- @Experimental() // untriaged
- final PresentationSession session;
-}
-// 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('DeprecatedStorageInfo')
@Experimental() // untriaged
@Native("DeprecatedStorageInfo")
@@ -9328,18 +8618,6 @@ class DeviceLightEvent extends Event {
// To suppress missing implicit constructor warnings.
factory DeviceLightEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('DeviceLightEvent.DeviceLightEvent')
- @DocsEditable()
- factory DeviceLightEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return DeviceLightEvent._create_1(type, eventInitDict_1);
- }
- return DeviceLightEvent._create_2(type);
- }
- static DeviceLightEvent _create_1(type, eventInitDict) => JS('DeviceLightEvent', 'new DeviceLightEvent(#,#)', type, eventInitDict);
- static DeviceLightEvent _create_2(type) => JS('DeviceLightEvent', 'new DeviceLightEvent(#)', type);
-
@DomName('DeviceLightEvent.value')
@DocsEditable()
@Experimental() // untriaged
@@ -9878,11 +9156,6 @@ class Document extends Node
@DocsEditable()
final String _lastModified;
- @DomName('Document.origin')
- @DocsEditable()
- @Experimental() // untriaged
- final String origin;
-
@DomName('Document.pointerLockElement')
@DocsEditable()
@Experimental() // untriaged
@@ -9907,11 +9180,6 @@ class Document extends Node
@Experimental() // untriaged
final SvgSvgElement rootElement;
- @DomName('Document.scrollingElement')
- @DocsEditable()
- @Experimental() // untriaged
- final Element scrollingElement;
-
@JSName('selectedStylesheetSet')
@DomName('Document.selectedStylesheetSet')
@DocsEditable()
@@ -10018,16 +9286,16 @@ class Document extends Node
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- Touch _createTouch(Window window, EventTarget target, int identifier, num pageX, num pageY, num screenX, num screenY, num radiusX, num radiusY, num rotationAngle, num force) {
+ Touch _createTouch(Window window, EventTarget target, int identifier, num pageX, num pageY, num screenX, num screenY, num webkitRadiusX, num webkitRadiusY, num webkitRotationAngle, num webkitForce) {
var target_1 = _convertDartToNative_EventTarget(target);
- return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, screenY, radiusX, radiusY, rotationAngle, force);
+ return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce);
}
@JSName('createTouch')
@DomName('Document.createTouch')
@DocsEditable()
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental()
- Touch _createTouch_1(Window window, target, identifier, pageX, pageY, screenX, screenY, radiusX, radiusY, rotationAngle, force) native;
+ Touch _createTouch_1(Window window, target, identifier, pageX, pageY, screenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) native;
@JSName('createTouchList')
@DomName('Document.createTouchList')
@@ -10041,14 +9309,9 @@ class Document extends Node
@DocsEditable()
Element _elementFromPoint(int x, int y) native;
- @DomName('Document.elementsFromPoint')
- @DocsEditable()
- @Experimental() // untriaged
- List<Element> elementsFromPoint(int x, int y) native;
-
@DomName('Document.execCommand')
@DocsEditable()
- bool execCommand(String commandId, [bool showUI, String value]) native;
+ bool execCommand(String command, bool userInterface, String value) native;
@DomName('Document.exitFullscreen')
@DocsEditable()
@@ -10067,6 +9330,10 @@ class Document extends Node
@Experimental() // non-standard
Object _getCssCanvasContext(String contextId, String name, int width, int height) native;
+ @DomName('Document.getElementById')
+ @DocsEditable()
+ Element getElementById(String elementId) native;
+
@DomName('Document.getElementsByClassName')
@DocsEditable()
@Creates('NodeList|HtmlCollection')
@@ -10091,23 +9358,23 @@ class Document extends Node
@DomName('Document.queryCommandEnabled')
@DocsEditable()
- bool queryCommandEnabled(String commandId) native;
+ bool queryCommandEnabled(String command) native;
@DomName('Document.queryCommandIndeterm')
@DocsEditable()
- bool queryCommandIndeterm(String commandId) native;
+ bool queryCommandIndeterm(String command) native;
@DomName('Document.queryCommandState')
@DocsEditable()
- bool queryCommandState(String commandId) native;
+ bool queryCommandState(String command) native;
@DomName('Document.queryCommandSupported')
@DocsEditable()
- bool queryCommandSupported(String commandId) native;
+ bool queryCommandSupported(String command) native;
@DomName('Document.queryCommandValue')
@DocsEditable()
- String queryCommandValue(String commandId) native;
+ String queryCommandValue(String command) native;
@DomName('Document.transformDocumentToTreeView')
@DocsEditable()
@@ -10123,12 +9390,6 @@ class Document extends Node
// https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-exitfullscreen
void _webkitExitFullscreen() native;
- // From NonElementParentNode
-
- @DomName('Document.getElementById')
- @DocsEditable()
- Element getElementById(String elementId) native;
-
// From ParentNode
@JSName('childElementCount')
@@ -10648,7 +9909,7 @@ class Document extends Node
@DomName('DocumentFragment')
@Native("DocumentFragment")
-class DocumentFragment extends Node implements NonElementParentNode, ParentNode {
+class DocumentFragment extends Node implements ParentNode {
factory DocumentFragment() => document.createDocumentFragment();
factory DocumentFragment.html(String html,
@@ -10763,8 +10024,6 @@ class DocumentFragment extends Node implements NonElementParentNode, ParentNode
// To suppress missing implicit constructor warnings.
factory DocumentFragment._() { throw new UnsupportedError("Not supported"); }
- // From NonElementParentNode
-
@DomName('DocumentFragment.getElementById')
@DocsEditable()
@Experimental() // untriaged
@@ -10923,7 +10182,7 @@ class DomImplementation extends Interceptor {
@DomName('DOMImplementation.hasFeature')
@DocsEditable()
- bool hasFeature() native;
+ bool hasFeature(String feature, String version) 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
@@ -11137,17 +10396,17 @@ class DomMatrix extends DomMatrixReadOnly {
@DomName('DOMMatrix.scale3dSelf')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scale3dSelf(num scale, [num originX, num originY, num originZ]) native;
+ DomMatrix scale3dSelf(num scale, [num ox, num oy, num oz]) native;
@DomName('DOMMatrix.scaleNonUniformSelf')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scaleNonUniformSelf(num scaleX, [num scaleY, num scaleZ, num originX, num originY, num originZ]) native;
+ DomMatrix scaleNonUniformSelf(num sx, [num sy, num sz, num ox, num oy, num oz]) native;
@DomName('DOMMatrix.scaleSelf')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scaleSelf(num scale, [num originX, num originY]) native;
+ DomMatrix scaleSelf(num scale, [num ox, num oy]) native;
@DomName('DOMMatrix.translateSelf')
@DocsEditable()
@@ -11295,17 +10554,17 @@ class DomMatrixReadOnly extends Interceptor {
@DomName('DOMMatrixReadOnly.scale')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scale(num scale, [num originX, num originY]) native;
+ DomMatrix scale(num scale, [num ox, num oy]) native;
@DomName('DOMMatrixReadOnly.scale3d')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scale3d(num scale, [num originX, num originY, num originZ]) native;
+ DomMatrix scale3d(num scale, [num ox, num oy, num oz]) native;
@DomName('DOMMatrixReadOnly.scaleNonUniform')
@DocsEditable()
@Experimental() // untriaged
- DomMatrix scaleNonUniform(num scaleX, [num scaleY, num scaleZn, num originX, num originY, num originZ]) native;
+ DomMatrix scaleNonUniform(num sx, [num sy, num sz, num ox, num oy, num oz]) native;
@DomName('DOMMatrixReadOnly.toFloat32Array')
@DocsEditable()
@@ -11343,7 +10602,7 @@ class DomParser extends Interceptor {
@DomName('DOMParser.parseFromString')
@DocsEditable()
- Document parseFromString(String str, String type) native;
+ Document parseFromString(String str, String contentType) 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
@@ -11361,33 +10620,29 @@ 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) {
- var point_1 = convertDartToNative_Dictionary(point_OR_x);
- return DomPoint._create_1(point_1);
- }
if (point_OR_x == null && y == null && z == null && w == null) {
- return DomPoint._create_2();
+ return DomPoint._create_1();
}
- if ((point_OR_x is num || point_OR_x == null) && y == null && z == null && w == null) {
- return DomPoint._create_3(point_OR_x);
+ if ((point_OR_x is Map || point_OR_x == null) && y == null && z == null && w == null) {
+ var point_1 = convertDartToNative_Dictionary(point_OR_x);
+ return DomPoint._create_2(point_1);
}
if ((y is num || y == null) && (point_OR_x is num || point_OR_x == null) && z == null && w == null) {
- return DomPoint._create_4(point_OR_x, y);
+ return DomPoint._create_3(point_OR_x, y);
}
if ((z is num || z == null) && (y is num || y == null) && (point_OR_x is num || point_OR_x == null) && w == null) {
- return DomPoint._create_5(point_OR_x, y, z);
+ return DomPoint._create_4(point_OR_x, y, z);
}
if ((w is num || w == null) && (z is num || z == null) && (y is num || y == null) && (point_OR_x is num || point_OR_x == null)) {
- return DomPoint._create_6(point_OR_x, y, z, w);
+ return DomPoint._create_5(point_OR_x, y, z, w);
}
throw new ArgumentError("Incorrect number or type of arguments");
}
- static DomPoint _create_1(point_OR_x) => JS('DomPoint', 'new DOMPoint(#)', point_OR_x);
- static DomPoint _create_2() => JS('DomPoint', 'new DOMPoint()');
- static DomPoint _create_3(point_OR_x) => JS('DomPoint', 'new DOMPoint(#)', point_OR_x);
- static DomPoint _create_4(point_OR_x, y) => JS('DomPoint', 'new DOMPoint(#,#)', point_OR_x, y);
- static DomPoint _create_5(point_OR_x, y, z) => JS('DomPoint', 'new DOMPoint(#,#,#)', point_OR_x, y, z);
- static DomPoint _create_6(point_OR_x, y, z, w) => JS('DomPoint', 'new DOMPoint(#,#,#,#)', point_OR_x, y, z, w);
+ static DomPoint _create_1() => JS('DomPoint', 'new DOMPoint()');
+ static DomPoint _create_2(point_OR_x) => JS('DomPoint', 'new DOMPoint(#)', point_OR_x);
+ static DomPoint _create_3(point_OR_x, y) => JS('DomPoint', 'new DOMPoint(#,#)', point_OR_x, y);
+ static DomPoint _create_4(point_OR_x, y, z) => JS('DomPoint', 'new DOMPoint(#,#,#)', point_OR_x, y, z);
+ static DomPoint _create_5(point_OR_x, y, z, w) => JS('DomPoint', 'new DOMPoint(#,#,#,#)', point_OR_x, y, z, w);
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.DOMPoint) || !!(window.WebKitPoint)');
@@ -11626,6 +10881,10 @@ class DomSettableTokenList extends DomTokenList {
@DomName('DOMSettableTokenList.value')
@DocsEditable()
String value;
+
+ @DomName('DOMSettableTokenList.__getter__')
+ @DocsEditable()
+ String __getter__(int index) 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
@@ -11635,7 +10894,7 @@ class DomSettableTokenList extends DomTokenList {
@DocsEditable()
@DomName('DOMStringList')
@Native("DOMStringList")
-class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMixin<String> implements List<String> {
+class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMixin<String> implements JavaScriptIndexingBehavior, List<String> {
// To suppress missing implicit constructor warnings.
factory DomStringList._() { throw new UnsupportedError("Not supported"); }
@@ -11647,7 +10906,7 @@ class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
if (JS("bool", "# >>> 0 !== # || # >= #", index,
index, index, length))
throw new RangeError.index(index, this);
- return this.item(index);
+ return JS("String", "#[#]", this, index);
}
void operator[]=(int index, String value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
@@ -11687,11 +10946,6 @@ class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
String elementAt(int index) => this[index];
// -- end List<String> mixins.
- @DomName('DOMStringList.__getter__')
- @DocsEditable()
- @Experimental() // untriaged
- String __getter__(int index) native;
-
@DomName('DOMStringList.contains')
@DocsEditable()
bool contains(String string) native;
@@ -11711,13 +10965,11 @@ abstract class DomStringMap extends Interceptor {
// To suppress missing implicit constructor warnings.
factory DomStringMap._() { throw new UnsupportedError("Not supported"); }
- void __delete__(index_OR_name);
+ bool __delete__(index_OR_name);
- String __getter__(int index);
+ String __getter__(index_OR_name);
void __setter__(index_OR_name, String value);
-
- String item(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
@@ -11762,19 +11014,6 @@ class DomTokenList extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
-@DocsEditable()
-@DomName('EffectModel')
-@Experimental() // untriaged
-@Native("EffectModel")
-class EffectModel extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory EffectModel._() { 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.
-
-
class _ChildrenElementList extends ListBase<Element>
implements NodeListWrapper {
// Raw Element.
@@ -13028,7 +12267,7 @@ class _FrozenElementList extends ListBase
*/
@DomName('Element')
@Native("Element")
-class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandlers, ParentNode, ChildNode {
+class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode {
/**
* Creates an HTML element from a valid fragment of HTML.
@@ -13491,7 +12730,7 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
* on which the method is called, and calls the play() method of the
* AnimationTimeline object of the document timeline of the node document
* of the element, passing the newly created AnimationEffect as the argument
- * to the method. Returns an Animation for the effect.
+ * to the method. Returns an AnimationPlayer for the effect.
*
* Examples
*
@@ -13510,7 +12749,7 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
**/
@Experimental()
@SupportedBrowser(SupportedBrowser.CHROME, '36')
- Animation animate(Iterable<Map<String, dynamic>> frames, [timing]) {
+ AnimationPlayer animate(Iterable<Map<String, dynamic>> frames, [timing]) {
if (frames is! Iterable || !(frames.every((x) => x is Map))) {
throw new ArgumentError("The frames parameter should be a List of Maps "
"with frame information");
@@ -13531,7 +12770,7 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
@DomName('Element.animate')
@JSName('animate')
@Experimental() // untriaged
- Animation _animate(Object effect, [timing]) native;
+ AnimationPlayer _animate(Object effect, [timing]) native;
/**
* Called by the DOM whenever an attribute on this has been changed.
*/
@@ -14152,10 +13391,6 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
return result;
}
- @DomName('Element.offsetParent')
- @DocsEditable()
- final Element offsetParent;
-
@DomName('Element.offsetHeight')
@DocsEditable()
int get offsetHeight => JS('num', '#.offsetHeight', this).round();
@@ -14172,6 +13407,22 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
@DocsEditable()
int get offsetWidth => JS('num', '#.offsetWidth', this).round();
+ @DomName('Element.clientHeight')
+ @DocsEditable()
+ int get clientHeight => JS('num', '#.clientHeight', this).round();
+
+ @DomName('Element.clientLeft')
+ @DocsEditable()
+ int get clientLeft => JS('num', '#.clientLeft', this).round();
+
+ @DomName('Element.clientTop')
+ @DocsEditable()
+ int get clientTop => JS('num', '#.clientTop', this).round();
+
+ @DomName('Element.clientWidth')
+ @DocsEditable()
+ int get clientWidth => JS('num', '#.clientWidth', this).round();
+
@DomName('Element.scrollHeight')
@DocsEditable()
int get scrollHeight => JS('num', '#.scrollHeight', this).round();
@@ -14919,10 +14170,6 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
@Experimental() // nonstandard
bool spellcheck;
- @DomName('Element.style')
- @DocsEditable()
- final CssStyleDeclaration style;
-
@DomName('Element.tabIndex')
@DocsEditable()
int tabIndex;
@@ -14970,18 +14217,10 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
// http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-dropzone-attribute
String dropzone;
- @DomName('Element.blur')
- @DocsEditable()
- void blur() native;
-
@DomName('Element.click')
@DocsEditable()
void click() native;
- @DomName('Element.focus')
- @DocsEditable()
- void focus() native;
-
@JSName('attributes')
@DomName('Element.attributes')
@DocsEditable()
@@ -14991,31 +14230,25 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
@DocsEditable()
String className;
+ @JSName('clientHeight')
@DomName('Element.clientHeight')
@DocsEditable()
- final int clientHeight;
+ final int _clientHeight;
+ @JSName('clientLeft')
@DomName('Element.clientLeft')
@DocsEditable()
- final int clientLeft;
+ final int _clientLeft;
+ @JSName('clientTop')
@DomName('Element.clientTop')
@DocsEditable()
- final int clientTop;
+ final int _clientTop;
+ @JSName('clientWidth')
@DomName('Element.clientWidth')
@DocsEditable()
- final int clientWidth;
-
- @DomName('Element.computedName')
- @DocsEditable()
- @Experimental() // untriaged
- final String computedName;
-
- @DomName('Element.computedRole')
- @DocsEditable()
- @Experimental() // untriaged
- final String computedRole;
+ final int _clientWidth;
@DomName('Element.id')
@DocsEditable()
@@ -15032,6 +14265,30 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
// Use implementation from Node.
// final String _namespaceUri;
+ @JSName('offsetHeight')
+ @DomName('Element.offsetHeight')
+ @DocsEditable()
+ final int _offsetHeight;
+
+ @JSName('offsetLeft')
+ @DomName('Element.offsetLeft')
+ @DocsEditable()
+ final int _offsetLeft;
+
+ @DomName('Element.offsetParent')
+ @DocsEditable()
+ final Element offsetParent;
+
+ @JSName('offsetTop')
+ @DomName('Element.offsetTop')
+ @DocsEditable()
+ final int _offsetTop;
+
+ @JSName('offsetWidth')
+ @DomName('Element.offsetWidth')
+ @DocsEditable()
+ final int _offsetWidth;
+
@JSName('outerHTML')
@DomName('Element.outerHTML')
@DocsEditable()
@@ -15057,19 +14314,26 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
@DocsEditable()
final int _scrollWidth;
+ @DomName('Element.style')
+ @DocsEditable()
+ final CssStyleDeclaration style;
+
@DomName('Element.tagName')
@DocsEditable()
final String tagName;
- @DomName('Element.closest')
+ @DomName('Element.blur')
@DocsEditable()
- @Experimental() // untriaged
- Element closest(String selectors) native;
+ void blur() native;
+
+ @DomName('Element.focus')
+ @DocsEditable()
+ void focus() native;
- @DomName('Element.getAnimations')
+ @DomName('Element.getAnimationPlayers')
@DocsEditable()
@Experimental() // untriaged
- List<Animation> getAnimations() native;
+ List<AnimationPlayer> getAnimationPlayers() native;
@DomName('Element.getAttribute')
@DocsEditable()
@@ -15152,7 +14416,7 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
@DocsEditable()
@Creates('NodeList|HtmlCollection')
@Returns('NodeList|HtmlCollection')
- List<Node> _getElementsByTagName(String localName) native;
+ List<Node> _getElementsByTagName(String name) native;
@JSName('hasAttribute')
@DomName('Element.hasAttribute')
@@ -15184,76 +14448,6 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
@Experimental() // untriaged
void requestPointerLock() native;
- @DomName('Element.scroll')
- @DocsEditable()
- @Experimental() // untriaged
- void scroll([options_OR_x, num y]) {
- if (options_OR_x == null && y == null) {
- _scroll_1();
- return;
- }
- if ((options_OR_x is Map) && y == null) {
- var options_1 = convertDartToNative_Dictionary(options_OR_x);
- _scroll_2(options_1);
- return;
- }
- if (y != null && (options_OR_x is num)) {
- _scroll_3(options_OR_x, y);
- return;
- }
- throw new ArgumentError("Incorrect number or type of arguments");
- }
- @JSName('scroll')
- @DomName('Element.scroll')
- @DocsEditable()
- @Experimental() // untriaged
- void _scroll_1() native;
- @JSName('scroll')
- @DomName('Element.scroll')
- @DocsEditable()
- @Experimental() // untriaged
- void _scroll_2(options) native;
- @JSName('scroll')
- @DomName('Element.scroll')
- @DocsEditable()
- @Experimental() // untriaged
- void _scroll_3(num x, y) native;
-
- @DomName('Element.scrollBy')
- @DocsEditable()
- @Experimental() // untriaged
- void scrollBy([options_OR_x, num y]) {
- if (options_OR_x == null && y == null) {
- _scrollBy_1();
- return;
- }
- if ((options_OR_x is Map) && y == null) {
- var options_1 = convertDartToNative_Dictionary(options_OR_x);
- _scrollBy_2(options_1);
- return;
- }
- if (y != null && (options_OR_x is num)) {
- _scrollBy_3(options_OR_x, y);
- return;
- }
- throw new ArgumentError("Incorrect number or type of arguments");
- }
- @JSName('scrollBy')
- @DomName('Element.scrollBy')
- @DocsEditable()
- @Experimental() // untriaged
- void _scrollBy_1() native;
- @JSName('scrollBy')
- @DomName('Element.scrollBy')
- @DocsEditable()
- @Experimental() // untriaged
- void _scrollBy_2(options) native;
- @JSName('scrollBy')
- @DomName('Element.scrollBy')
- @DocsEditable()
- @Experimental() // untriaged
- void _scrollBy_3(num x, y) native;
-
@JSName('scrollIntoView')
@DomName('Element.scrollIntoView')
@DocsEditable()
@@ -15266,63 +14460,16 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
@Experimental() // non-standard
void _scrollIntoViewIfNeeded([bool centerIfNeeded]) native;
- @DomName('Element.scrollTo')
- @DocsEditable()
- @Experimental() // untriaged
- void scrollTo([options_OR_x, num y]) {
- if (options_OR_x == null && y == null) {
- _scrollTo_1();
- return;
- }
- if ((options_OR_x is Map) && y == null) {
- var options_1 = convertDartToNative_Dictionary(options_OR_x);
- _scrollTo_2(options_1);
- return;
- }
- if (y != null && (options_OR_x is num)) {
- _scrollTo_3(options_OR_x, y);
- return;
- }
- throw new ArgumentError("Incorrect number or type of arguments");
- }
- @JSName('scrollTo')
- @DomName('Element.scrollTo')
- @DocsEditable()
- @Experimental() // untriaged
- void _scrollTo_1() native;
- @JSName('scrollTo')
- @DomName('Element.scrollTo')
- @DocsEditable()
- @Experimental() // untriaged
- void _scrollTo_2(options) native;
- @JSName('scrollTo')
- @DomName('Element.scrollTo')
- @DocsEditable()
- @Experimental() // untriaged
- void _scrollTo_3(num x, y) native;
-
@DomName('Element.setAttribute')
@DocsEditable()
void setAttribute(String name, String value) native;
@DomName('Element.setAttributeNS')
@DocsEditable()
- void setAttributeNS(String namespaceURI, String name, String value) native;
+ void setAttributeNS(String namespaceURI, String qualifiedName, String value) native;
// From ChildNode
- @DomName('Element.after')
- @DocsEditable()
- @Experimental() // untriaged
- void after(Object nodes) native;
-
- @DomName('Element.before')
- @DocsEditable()
- @Experimental() // untriaged
- void before(Object nodes) native;
-
- // From NonDocumentTypeChildNode
-
@DomName('Element.nextElementSibling')
@DocsEditable()
final Element nextElementSibling;
@@ -15920,6 +15067,11 @@ class EmbedElement extends HtmlElement {
@DocsEditable()
String height;
+ @DomName('HTMLEmbedElement.integrity')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String integrity;
+
@DomName('HTMLEmbedElement.name')
@DocsEditable()
String name;
@@ -16109,18 +15261,6 @@ class ErrorEvent extends Event {
// To suppress missing implicit constructor warnings.
factory ErrorEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('ErrorEvent.ErrorEvent')
- @DocsEditable()
- factory ErrorEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return ErrorEvent._create_1(type, eventInitDict_1);
- }
- return ErrorEvent._create_2(type);
- }
- static ErrorEvent _create_1(type, eventInitDict) => JS('ErrorEvent', 'new ErrorEvent(#,#)', type, eventInitDict);
- static ErrorEvent _create_2(type) => JS('ErrorEvent', 'new ErrorEvent(#)', type);
-
@DomName('ErrorEvent.colno')
@DocsEditable()
@Experimental() // untriaged
@@ -16152,7 +15292,7 @@ class ErrorEvent extends Event {
@DomName('Event')
-@Native("Event,InputEvent")
+@Native("Event,InputEvent,ClipboardEvent")
class Event extends Interceptor {
// In JS, canBubble and cancelable are technically required parameters to
// init*Event. In practice, though, if they aren't provided they simply
@@ -16203,18 +15343,8 @@ class Event extends Interceptor {
} while (target != null && target != currentTarget.parent);
throw new StateError('No selector matched for populating matchedTarget.');
}
-
- @DomName('Event.Event')
- @DocsEditable()
- factory Event._(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return Event._create_1(type, eventInitDict_1);
- }
- return Event._create_2(type);
- }
- static Event _create_1(type, eventInitDict) => JS('Event', 'new Event(#,#)', type, eventInitDict);
- static Event _create_2(type) => JS('Event', 'new Event(#)', type);
+ // To suppress missing implicit constructor warnings.
+ factory Event._() { throw new UnsupportedError("Not supported"); }
/**
* This event is being handled by the event target.
@@ -16261,6 +15391,24 @@ class Event extends Interceptor {
@DocsEditable()
final bool cancelable;
+ /**
+ * Access to the system's clipboard data during copy, cut, and paste events.
+ *
+ * ## Other resources
+ *
+ * * [clipboardData specification](http://www.w3.org/TR/clipboard-apis/#attributes)
+ * from W3C.
+ */
+ @DomName('Event.clipboardData')
+ @DocsEditable()
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.FIREFOX)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
+ // Part of copy/paste
+ @Experimental() // nonstandard
+ final DataTransfer clipboardData;
+
@DomName('Event.currentTarget')
@DocsEditable()
EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._get_currentTarget);
@@ -16268,7 +15416,7 @@ class Event extends Interceptor {
@DomName('Event.currentTarget')
@DocsEditable()
@Creates('Null')
- @Returns('EventTarget|=Object')
+ @Returns('EventTarget|=Object|Null')
final dynamic _get_currentTarget;
@DomName('Event.defaultPrevented')
@@ -16292,7 +15440,9 @@ class Event extends Interceptor {
@DocsEditable()
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#extensions-to-event
@Experimental()
- final List<EventTarget> path;
+ @Returns('NodeList')
+ @Creates('NodeList')
+ final List<Node> path;
@DomName('Event.target')
@DocsEditable()
@@ -16301,7 +15451,7 @@ class Event extends Interceptor {
@DomName('Event.target')
@DocsEditable()
@Creates('Node')
- @Returns('EventTarget|=Object')
+ @Returns('EventTarget|=Object|Null')
final dynamic _get_target;
@DomName('Event.timeStamp')
@@ -16315,7 +15465,7 @@ class Event extends Interceptor {
@JSName('initEvent')
@DomName('Event.initEvent')
@DocsEditable()
- void _initEvent(String type, bool bubbles, bool cancelable) native;
+ void _initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) native;
@DomName('Event.preventDefault')
@DocsEditable()
@@ -16381,14 +15531,14 @@ class EventSource extends EventTarget {
@DomName('EventSource.EventSource')
@DocsEditable()
- static EventSource _factoryEventSource(String url, [Map eventSourceInitDict]) {
- if (eventSourceInitDict != null) {
- var eventSourceInitDict_1 = convertDartToNative_Dictionary(eventSourceInitDict);
- return EventSource._create_1(url, eventSourceInitDict_1);
+ static EventSource _factoryEventSource(String url, [Map eventSourceInit]) {
+ if (eventSourceInit != null) {
+ var eventSourceInit_1 = convertDartToNative_Dictionary(eventSourceInit);
+ return EventSource._create_1(url, eventSourceInit_1);
}
return EventSource._create_2(url);
}
- static EventSource _create_1(url, eventSourceInitDict) => JS('EventSource', 'new EventSource(#,#)', url, eventSourceInitDict);
+ static EventSource _create_1(url, eventSourceInit) => JS('EventSource', 'new EventSource(#,#)', url, eventSourceInit);
static EventSource _create_2(url) => JS('EventSource', 'new EventSource(#)', url);
@DomName('EventSource.CLOSED')
@@ -16563,7 +15713,7 @@ class EventTarget extends Interceptor {
@JSName('addEventListener')
@DomName('EventTarget.addEventListener')
@DocsEditable()
- void _addEventListener(String type, EventListener listener, [bool capture]) native;
+ void _addEventListener([String type, EventListener listener, bool useCapture]) native;
@DomName('EventTarget.dispatchEvent')
@DocsEditable()
@@ -16572,7 +15722,7 @@ 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, bool useCapture]) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -16588,18 +15738,6 @@ class ExtendableEvent extends Event {
// To suppress missing implicit constructor warnings.
factory ExtendableEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('ExtendableEvent.ExtendableEvent')
- @DocsEditable()
- factory ExtendableEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return ExtendableEvent._create_1(type, eventInitDict_1);
- }
- return ExtendableEvent._create_2(type);
- }
- static ExtendableEvent _create_1(type, eventInitDict) => JS('ExtendableEvent', 'new ExtendableEvent(#,#)', type, eventInitDict);
- static ExtendableEvent _create_2(type) => JS('ExtendableEvent', 'new ExtendableEvent(#)', type);
-
@DomName('ExtendableEvent.waitUntil')
@DocsEditable()
@Experimental() // untriaged
@@ -16620,21 +15758,15 @@ class FederatedCredential extends Credential {
@DomName('FederatedCredential.FederatedCredential')
@DocsEditable()
- factory FederatedCredential(Map data) {
- var data_1 = convertDartToNative_Dictionary(data);
- return FederatedCredential._create_1(data_1);
+ factory FederatedCredential(String id, String name, String avatarURL, String federation) {
+ return FederatedCredential._create_1(id, name, avatarURL, federation);
}
- static FederatedCredential _create_1(data) => JS('FederatedCredential', 'new FederatedCredential(#)', data);
+ static FederatedCredential _create_1(id, name, avatarURL, federation) => JS('FederatedCredential', 'new FederatedCredential(#,#,#,#)', id, name, avatarURL, federation);
- @DomName('FederatedCredential.protocol')
+ @DomName('FederatedCredential.federation')
@DocsEditable()
@Experimental() // untriaged
- final String protocol;
-
- @DomName('FederatedCredential.provider')
- @DocsEditable()
- @Experimental() // untriaged
- final String provider;
+ final String federation;
}
// 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
@@ -16645,22 +15777,10 @@ class FederatedCredential extends Credential {
@DomName('FetchEvent')
@Experimental() // untriaged
@Native("FetchEvent")
-class FetchEvent extends ExtendableEvent {
+class FetchEvent extends Event {
// To suppress missing implicit constructor warnings.
factory FetchEvent._() { throw new UnsupportedError("Not supported"); }
- @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);
- }
- static FetchEvent _create_1(type, eventInitDict) => JS('FetchEvent', 'new FetchEvent(#,#)', type, eventInitDict);
- static FetchEvent _create_2(type) => JS('FetchEvent', 'new FetchEvent(#)', type);
-
@DomName('FetchEvent.isReload')
@DocsEditable()
@Experimental() // untriaged
@@ -16705,7 +15825,9 @@ class FieldSetElement extends HtmlElement {
@DomName('HTMLFieldSetElement.elements')
@DocsEditable()
- final HtmlFormControlsCollection elements;
+ @Returns('HtmlCollection')
+ @Creates('HtmlCollection')
+ final List<Node> elements;
@DomName('HTMLFieldSetElement.form')
@DocsEditable()
@@ -16735,11 +15857,6 @@ class FieldSetElement extends HtmlElement {
@DocsEditable()
bool checkValidity() native;
- @DomName('HTMLFieldSetElement.reportValidity')
- @DocsEditable()
- @Experimental() // untriaged
- bool reportValidity() native;
-
@DomName('HTMLFieldSetElement.setCustomValidity')
@DocsEditable()
void setCustomValidity(String error) native;
@@ -16756,18 +15873,6 @@ class File extends Blob {
// To suppress missing implicit constructor warnings.
factory File._() { throw new UnsupportedError("Not supported"); }
- @DomName('File.File')
- @DocsEditable()
- factory File(List<Object> fileBits, String fileName, [Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return File._create_1(fileBits, fileName, options_1);
- }
- return File._create_2(fileBits, fileName);
- }
- static File _create_1(fileBits, fileName, options) => JS('File', 'new File(#,#,#)', fileBits, fileName, options);
- static File _create_2(fileBits, fileName) => JS('File', 'new File(#,#)', fileBits, fileName);
-
@DomName('File.lastModified')
@DocsEditable()
@Experimental() // untriaged
@@ -17107,7 +16212,7 @@ class FileReader extends EventTarget {
@DomName('FileReader.readAsText')
@DocsEditable()
- void readAsText(Blob blob, [String label]) native;
+ void readAsText(Blob blob, [String encoding]) native;
/// Stream of `abort` events handled by this [FileReader].
@DomName('FileReader.onabort')
@@ -17366,18 +16471,6 @@ class FocusEvent extends UIEvent {
// To suppress missing implicit constructor warnings.
factory FocusEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('FocusEvent.FocusEvent')
- @DocsEditable()
- factory FocusEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return FocusEvent._create_1(type, eventInitDict_1);
- }
- return FocusEvent._create_2(type);
- }
- static FocusEvent _create_1(type, eventInitDict) => JS('FocusEvent', 'new FocusEvent(#,#)', type, eventInitDict);
- static FocusEvent _create_2(type) => JS('FocusEvent', 'new FocusEvent(#)', type);
-
@DomName('FocusEvent.relatedTarget')
@DocsEditable()
EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_relatedTarget);
@@ -17402,15 +16495,36 @@ class FontFace extends Interceptor {
@DomName('FontFace.FontFace')
@DocsEditable()
- factory FontFace(String family, Object source, [Map descriptors]) {
- if (descriptors != null) {
+ factory FontFace(String family, source, [Map descriptors]) {
+ if ((source is String || source == null) && (family is String || family == null) && descriptors == null) {
+ return FontFace._create_1(family, source);
+ }
+ if ((descriptors is Map || descriptors == null) && (source is String || source == null) && (family is String || family == null)) {
var descriptors_1 = convertDartToNative_Dictionary(descriptors);
- return FontFace._create_1(family, source, descriptors_1);
+ return FontFace._create_2(family, source, descriptors_1);
+ }
+ if ((source is TypedData || source == null) && (family is String || family == null) && descriptors == null) {
+ return FontFace._create_3(family, source);
}
- return FontFace._create_2(family, source);
+ if ((descriptors is Map || descriptors == null) && (source is TypedData || source == null) && (family is String || family == null)) {
+ var descriptors_1 = convertDartToNative_Dictionary(descriptors);
+ return FontFace._create_4(family, source, descriptors_1);
+ }
+ if ((source is ByteBuffer || source == null) && (family is String || family == null) && descriptors == null) {
+ return FontFace._create_5(family, source);
+ }
+ if ((descriptors is Map || descriptors == null) && (source is ByteBuffer || source == null) && (family is String || family == null)) {
+ var descriptors_1 = convertDartToNative_Dictionary(descriptors);
+ return FontFace._create_6(family, source, descriptors_1);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
}
- static FontFace _create_1(family, source, descriptors) => JS('FontFace', 'new FontFace(#,#,#)', family, source, descriptors);
- static FontFace _create_2(family, source) => JS('FontFace', 'new FontFace(#,#)', family, source);
+ static FontFace _create_1(family, source) => JS('FontFace', 'new FontFace(#,#)', family, source);
+ static FontFace _create_2(family, source, descriptors) => JS('FontFace', 'new FontFace(#,#,#)', family, source, descriptors);
+ static FontFace _create_3(family, source) => JS('FontFace', 'new FontFace(#,#)', family, source);
+ static FontFace _create_4(family, source, descriptors) => JS('FontFace', 'new FontFace(#,#,#)', family, source, descriptors);
+ static FontFace _create_5(family, source) => JS('FontFace', 'new FontFace(#,#)', family, source);
+ static FontFace _create_6(family, source, descriptors) => JS('FontFace', 'new FontFace(#,#,#)', family, source, descriptors);
@DomName('FontFace.family')
@DocsEditable()
@@ -17581,31 +16695,6 @@ class FormData extends Interceptor {
@DomName('FormData.append')
@DocsEditable()
void appendBlob(String name, Blob value, [String filename]) native;
-
- @DomName('FormData.delete')
- @DocsEditable()
- @Experimental() // untriaged
- void delete(String name) native;
-
- @DomName('FormData.get')
- @DocsEditable()
- @Experimental() // untriaged
- Object get(String name) native;
-
- @DomName('FormData.getAll')
- @DocsEditable()
- @Experimental() // untriaged
- List<Object> getAll(String name) native;
-
- @DomName('FormData.has')
- @DocsEditable()
- @Experimental() // untriaged
- bool has(String name) native;
-
- @DomName('FormData.set')
- @DocsEditable()
- @Experimental() // untriaged
- void set(String name, value, [String filename]) 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
@@ -17673,22 +16762,12 @@ class FormElement extends HtmlElement {
@DomName('HTMLFormElement.__getter__')
@DocsEditable()
- Object __getter__(String name) native;
+ Element __getter__(index_OR_name) native;
@DomName('HTMLFormElement.checkValidity')
@DocsEditable()
bool checkValidity() native;
- @DomName('HTMLFormElement.item')
- @DocsEditable()
- @Experimental() // untriaged
- Element item(int index) native;
-
- @DomName('HTMLFormElement.reportValidity')
- @DocsEditable()
- @Experimental() // untriaged
- bool reportValidity() native;
-
@DomName('HTMLFormElement.requestAutocomplete')
@DocsEditable()
// http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.html
@@ -17717,16 +16796,6 @@ class FormElement 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.
-// WARNING: Do not edit - generated code.
-
-
-@DomName('FrameRequestCallback')
-@Experimental() // untriaged
-typedef void FrameRequestCallback(num highResTime);
-// 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('Gamepad')
@@ -17741,10 +16810,6 @@ class Gamepad extends Interceptor {
@DocsEditable()
final List<num> axes;
- @DomName('Gamepad.buttons')
- @DocsEditable()
- final List<GamepadButton> buttons;
-
@DomName('Gamepad.connected')
@DocsEditable()
@Experimental() // untriaged
@@ -17803,18 +16868,6 @@ class GamepadEvent extends Event {
// To suppress missing implicit constructor warnings.
factory GamepadEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('GamepadEvent.GamepadEvent')
- @DocsEditable()
- factory GamepadEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return GamepadEvent._create_1(type, eventInitDict_1);
- }
- return GamepadEvent._create_2(type);
- }
- static GamepadEvent _create_1(type, eventInitDict) => JS('GamepadEvent', 'new GamepadEvent(#,#)', type, eventInitDict);
- static GamepadEvent _create_2(type) => JS('GamepadEvent', 'new GamepadEvent(#)', type);
-
@DomName('GamepadEvent.gamepad')
@DocsEditable()
@Experimental() // untriaged
@@ -17854,29 +16907,6 @@ class Geofencing extends Interceptor {
@DocsEditable()
-@DomName('GeofencingEvent')
-@Experimental() // untriaged
-@Native("GeofencingEvent")
-class GeofencingEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory GeofencingEvent._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('GeofencingEvent.id')
- @DocsEditable()
- @Experimental() // untriaged
- final String id;
-
- @DomName('GeofencingEvent.region')
- @DocsEditable()
- @Experimental() // untriaged
- final GeofencingRegion region;
-}
-// 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('GeofencingRegion')
@Experimental() // untriaged
@Native("GeofencingRegion")
@@ -18669,18 +17699,8 @@ class HashChangeEvent extends Event {
type, convertDartToNative_Dictionary(options));
}
-
- @DomName('HashChangeEvent.HashChangeEvent')
- @DocsEditable()
- factory HashChangeEvent._(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return HashChangeEvent._create_1(type, eventInitDict_1);
- }
- return HashChangeEvent._create_2(type);
- }
- static HashChangeEvent _create_1(type, eventInitDict) => JS('HashChangeEvent', 'new HashChangeEvent(#,#)', type, eventInitDict);
- static HashChangeEvent _create_2(type) => JS('HashChangeEvent', 'new HashChangeEvent(#)', type);
+ // To suppress missing implicit constructor warnings.
+ factory HashChangeEvent._() { throw new UnsupportedError("Not supported"); }
/// Checks if this type is supported on the current platform.
static bool get supported => Device.isEventTypeSupported('HashChangeEvent');
@@ -18742,27 +17762,43 @@ class Headers extends Interceptor {
if (input == null) {
return Headers._create_1();
}
- if ((input is Headers)) {
+ if ((input is Headers || input == null)) {
return Headers._create_2(input);
}
- if ((input is Map)) {
+ if ((input is Map || input == null)) {
var input_1 = convertDartToNative_Dictionary(input);
return Headers._create_3(input_1);
}
- if ((input is List<Object>)) {
- return Headers._create_4(input);
- }
throw new ArgumentError("Incorrect number or type of arguments");
}
static Headers _create_1() => JS('Headers', 'new Headers()');
static Headers _create_2(input) => JS('Headers', 'new Headers(#)', input);
static Headers _create_3(input) => JS('Headers', 'new Headers(#)', input);
- static Headers _create_4(input) => JS('Headers', 'new Headers(#)', input);
+
+ @DomName('Headers.size')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int size;
+
+ @DomName('Headers.forEach')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void forEach(HeadersForEachCallback callback, [Object thisArg]) 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('HeadersForEachCallback')
+@Experimental() // untriaged
+typedef void HeadersForEachCallback(String value, String key, Headers map);
+// 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('HTMLHeadingElement')
@@ -18827,16 +17863,6 @@ 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')
- @DocsEditable()
- @Experimental() // untriaged
- final dynamic _get_options;
-
@DomName('History.state')
@DocsEditable()
dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state);
@@ -18857,7 +17883,7 @@ class History extends Interceptor implements HistoryBase {
@DomName('History.go')
@DocsEditable()
- void go([int delta]) native;
+ void go(int distance) native;
@DomName('History.pushState')
@DocsEditable()
@@ -18865,15 +17891,14 @@ 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) {
+ void pushState(/*any*/ data, String title, [String url]) {
+ if (url != null) {
var data_1 = convertDartToNative_SerializedScriptValue(data);
- var options_2 = convertDartToNative_Dictionary(options);
- _pushState_1(data_1, title, url, options_2);
+ _pushState_1(data_1, title, url);
return;
}
var data_1 = convertDartToNative_SerializedScriptValue(data);
- _pushState_2(data_1, title, url);
+ _pushState_2(data_1, title);
return;
}
@JSName('pushState')
@@ -18883,7 +17908,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;
+ void _pushState_1(data, title, url) native;
@JSName('pushState')
@DomName('History.pushState')
@DocsEditable()
@@ -18891,7 +17916,7 @@ class History extends Interceptor implements HistoryBase {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
- void _pushState_2(data, title, url) native;
+ void _pushState_2(data, title) native;
@DomName('History.replaceState')
@DocsEditable()
@@ -18899,15 +17924,14 @@ 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) {
+ void replaceState(/*any*/ data, String title, [String url]) {
+ if (url != null) {
var data_1 = convertDartToNative_SerializedScriptValue(data);
- var options_2 = convertDartToNative_Dictionary(options);
- _replaceState_1(data_1, title, url, options_2);
+ _replaceState_1(data_1, title, url);
return;
}
var data_1 = convertDartToNative_SerializedScriptValue(data);
- _replaceState_2(data_1, title, url);
+ _replaceState_2(data_1, title);
return;
}
@JSName('replaceState')
@@ -18917,7 +17941,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;
+ void _replaceState_1(data, title, url) native;
@JSName('replaceState')
@DomName('History.replaceState')
@DocsEditable()
@@ -18925,30 +17949,7 @@ class History extends Interceptor implements HistoryBase {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
- void _replaceState_2(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
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DocsEditable()
-@DomName('HMDVRDevice')
-@Experimental() // untriaged
-@Native("HMDVRDevice")
-class HmdvrDevice extends VRDevice {
- // To suppress missing implicit constructor warnings.
- factory HmdvrDevice._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('HMDVRDevice.getEyeParameters')
- @DocsEditable()
- @Experimental() // untriaged
- VREyeParameters getEyeParameters(String whichEye) native;
-
- @DomName('HMDVRDevice.setFieldOfView')
- @DocsEditable()
- @Experimental() // untriaged
- void setFieldOfView([VRFieldOfView leftFov, VRFieldOfView rightFov]) native;
+ void _replaceState_2(data, title) 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
@@ -19308,11 +18309,6 @@ class HtmlFormControlsCollection extends HtmlCollection {
// To suppress missing implicit constructor warnings.
factory HtmlFormControlsCollection._() { throw new UnsupportedError("Not supported"); }
- @DomName('HTMLFormControlsCollection.item')
- @DocsEditable()
- @Experimental() // untriaged
- Node item(int index) native;
-
@DomName('HTMLFormControlsCollection.namedItem')
@DocsEditable()
Object namedItem(String name) native;
@@ -19350,12 +18346,6 @@ class HtmlHtmlElement extends HtmlElement {
class HtmlOptionsCollection extends HtmlCollection {
// To suppress missing implicit constructor warnings.
factory HtmlOptionsCollection._() { throw new UnsupportedError("Not supported"); }
-
- @JSName('item')
- @DomName('HTMLOptionsCollection.item')
- @DocsEditable()
- @Experimental() // untriaged
- Node _item(int index) 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
@@ -19999,7 +18989,7 @@ class HttpRequest extends HttpRequestEventTarget {
@DomName('XMLHttpRequest.getResponseHeader')
@DocsEditable()
@Unstable()
- String getResponseHeader(String name) native;
+ String getResponseHeader(String header) native;
/**
* Specify a particular MIME type (such as `text/xml`) desired for the
@@ -20013,7 +19003,7 @@ class HttpRequest extends HttpRequestEventTarget {
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.SAFARI)
- void overrideMimeType(String mime) native;
+ void overrideMimeType(String override) native;
/**
* Send the request with any given `data`.
@@ -20030,7 +19020,7 @@ class HttpRequest extends HttpRequestEventTarget {
*/
@DomName('XMLHttpRequest.send')
@DocsEditable()
- void send([body_OR_data]) native;
+ void send([data]) native;
/**
* Sets the value of an HTTP requst header.
@@ -20051,7 +19041,7 @@ class HttpRequest extends HttpRequestEventTarget {
*/
@DomName('XMLHttpRequest.setRequestHeader')
@DocsEditable()
- void setRequestHeader(String name, String value) native;
+ void setRequestHeader(String header, String value) native;
/// Stream of `readystatechange` events handled by this [HttpRequest].
/**
@@ -20258,13 +19248,18 @@ class IFrameElement extends HtmlElement {
@DocsEditable()
String height;
+ @DomName('HTMLIFrameElement.integrity')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String integrity;
+
@DomName('HTMLIFrameElement.name')
@DocsEditable()
String name;
@DomName('HTMLIFrameElement.sandbox')
@DocsEditable()
- final DomSettableTokenList sandbox;
+ String sandbox;
@DomName('HTMLIFrameElement.src')
@DocsEditable()
@@ -20314,21 +19309,21 @@ class ImageData extends Interceptor {
@DomName('ImageData.ImageData')
@DocsEditable()
- factory ImageData(data_OR_sw, int sh_OR_sw, [int sh]) {
- if ((sh_OR_sw is int) && (data_OR_sw is int) && sh == null) {
- return ImageData._create_1(data_OR_sw, sh_OR_sw);
+ factory ImageData(data_OR_width, int height_OR_width, [int height]) {
+ if ((height_OR_width is int || height_OR_width == null) && (data_OR_width is int || data_OR_width == null) && height == null) {
+ return ImageData._create_1(data_OR_width, height_OR_width);
}
- if ((sh_OR_sw is int) && (data_OR_sw is Uint8ClampedList) && sh == null) {
- return ImageData._create_2(data_OR_sw, sh_OR_sw);
+ if ((height_OR_width is int || height_OR_width == null) && (data_OR_width is Uint8ClampedList || data_OR_width == null) && height == null) {
+ return ImageData._create_2(data_OR_width, height_OR_width);
}
- if ((sh is int) && (sh_OR_sw is int) && (data_OR_sw is Uint8ClampedList)) {
- return ImageData._create_3(data_OR_sw, sh_OR_sw, sh);
+ if ((height is int || height == null) && (height_OR_width is int || height_OR_width == null) && (data_OR_width is Uint8ClampedList || data_OR_width == null)) {
+ return ImageData._create_3(data_OR_width, height_OR_width, height);
}
throw new ArgumentError("Incorrect number or type of arguments");
}
- static ImageData _create_1(data_OR_sw, sh_OR_sw) => JS('ImageData', 'new ImageData(#,#)', data_OR_sw, sh_OR_sw);
- static ImageData _create_2(data_OR_sw, sh_OR_sw) => JS('ImageData', 'new ImageData(#,#)', data_OR_sw, sh_OR_sw);
- static ImageData _create_3(data_OR_sw, sh_OR_sw, sh) => JS('ImageData', 'new ImageData(#,#,#)', data_OR_sw, sh_OR_sw, sh);
+ static ImageData _create_1(data_OR_width, height_OR_width) => JS('ImageData', 'new ImageData(#,#)', data_OR_width, height_OR_width);
+ static ImageData _create_2(data_OR_width, height_OR_width) => JS('ImageData', 'new ImageData(#,#)', data_OR_width, height_OR_width);
+ static ImageData _create_3(data_OR_width, height_OR_width, height) => JS('ImageData', 'new ImageData(#,#,#)', data_OR_width, height_OR_width, height);
@DomName('ImageData.data')
@DocsEditable()
@@ -20393,6 +19388,11 @@ class ImageElement extends HtmlElement implements CanvasImageSource {
@DocsEditable()
int height;
+ @DomName('HTMLImageElement.integrity')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String integrity;
+
@DomName('HTMLImageElement.isMap')
@DocsEditable()
bool isMap;
@@ -20451,36 +19451,6 @@ class InjectedScriptHost extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
-@DocsEditable()
-@DomName('InputDevice')
-@Experimental() // untriaged
-@Native("InputDevice")
-class InputDevice extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory InputDevice._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('InputDevice.InputDevice')
- @DocsEditable()
- factory InputDevice([Map deviceInitDict]) {
- if (deviceInitDict != null) {
- var deviceInitDict_1 = convertDartToNative_Dictionary(deviceInitDict);
- return InputDevice._create_1(deviceInitDict_1);
- }
- return InputDevice._create_2();
- }
- static InputDevice _create_1(deviceInitDict) => JS('InputDevice', 'new InputDevice(#)', deviceInitDict);
- static InputDevice _create_2() => JS('InputDevice', 'new InputDevice()');
-
- @DomName('InputDevice.firesTouchEvents')
- @DocsEditable()
- @Experimental() // untriaged
- final bool firesTouchEvents;
-}
-// 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('HTMLInputElement')
@Native("HTMLInputElement")
class InputElement extends HtmlElement implements
@@ -20534,11 +19504,6 @@ class InputElement extends HtmlElement implements
@DocsEditable()
String alt;
- @DomName('HTMLInputElement.autocapitalize')
- @DocsEditable()
- @Experimental() // untriaged
- String autocapitalize;
-
@DomName('HTMLInputElement.autocomplete')
@DocsEditable()
String autocomplete;
@@ -20643,11 +19608,6 @@ class InputElement extends HtmlElement implements
@DocsEditable()
String min;
- @DomName('HTMLInputElement.minLength')
- @DocsEditable()
- @Experimental() // untriaged
- int minLength;
-
@DomName('HTMLInputElement.multiple')
@DocsEditable()
bool multiple;
@@ -20762,11 +19722,6 @@ class InputElement extends HtmlElement implements
@DocsEditable()
bool checkValidity() native;
- @DomName('HTMLInputElement.reportValidity')
- @DocsEditable()
- @Experimental() // untriaged
- bool reportValidity() native;
-
@DomName('HTMLInputElement.select')
@DocsEditable()
void select() native;
@@ -21354,6 +20309,66 @@ abstract class ButtonInputElement implements InputElementBase {
// BSD-style license that can be found in the LICENSE file.
+@DocsEditable()
+@DomName('InputMethodContext')
+// http://www.w3.org/TR/ime-api/#idl-def-InputMethodContext
+@Experimental()
+@Native("InputMethodContext")
+class InputMethodContext extends EventTarget {
+ // To suppress missing implicit constructor warnings.
+ factory InputMethodContext._() { throw new UnsupportedError("Not supported"); }
+
+ @DomName('InputMethodContext.compositionEndOffset')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int compositionEndOffset;
+
+ @DomName('InputMethodContext.compositionStartOffset')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final int compositionStartOffset;
+
+ @DomName('InputMethodContext.locale')
+ @DocsEditable()
+ final String locale;
+
+ @DomName('InputMethodContext.target')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final HtmlElement target;
+
+ @DomName('InputMethodContext.confirmComposition')
+ @DocsEditable()
+ void confirmComposition() 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('InstallEvent')
+@Experimental() // untriaged
+@Native("InstallEvent")
+class InstallEvent extends ExtendableEvent {
+ // To suppress missing implicit constructor warnings.
+ factory InstallEvent._() { throw new UnsupportedError("Not supported"); }
+
+ @DomName('InstallEvent.reloadAll')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Future reloadAll() native;
+
+ @DomName('InstallEvent.replace')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void replace() 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.
+
+
/**
* An event that describes user interaction with the keyboard.
*
@@ -21415,18 +20430,8 @@ class KeyboardEvent extends UIEvent {
@DomName('KeyboardEvent.charCode')
int get charCode => _charCode;
-
- @DomName('KeyboardEvent.KeyboardEvent')
- @DocsEditable()
- factory KeyboardEvent._(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return KeyboardEvent._create_1(type, eventInitDict_1);
- }
- return KeyboardEvent._create_2(type);
- }
- static KeyboardEvent _create_1(type, eventInitDict) => JS('KeyboardEvent', 'new KeyboardEvent(#,#)', type, eventInitDict);
- static KeyboardEvent _create_2(type) => JS('KeyboardEvent', 'new KeyboardEvent(#)', type);
+ // To suppress missing implicit constructor warnings.
+ factory KeyboardEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('KeyboardEvent.DOM_KEY_LOCATION_LEFT')
@DocsEditable()
@@ -21452,26 +20457,10 @@ class KeyboardEvent extends UIEvent {
@DocsEditable()
final bool altKey;
- // Use implementation from UIEvent.
- // final int _charCode;
-
- @DomName('KeyboardEvent.code')
- @DocsEditable()
- @Experimental() // untriaged
- final String code;
-
@DomName('KeyboardEvent.ctrlKey')
@DocsEditable()
final bool ctrlKey;
- @DomName('KeyboardEvent.key')
- @DocsEditable()
- @Experimental() // untriaged
- final String key;
-
- // Use implementation from UIEvent.
- // final int _keyCode;
-
@JSName('keyIdentifier')
@DomName('KeyboardEvent.keyIdentifier')
@DocsEditable()
@@ -21501,13 +20490,10 @@ class KeyboardEvent extends UIEvent {
@DocsEditable()
final bool shiftKey;
- // Use implementation from UIEvent.
- // final int which;
-
@DomName('KeyboardEvent.getModifierState')
@DocsEditable()
@Experimental() // untriaged
- bool getModifierState(String keyArg) native;
+ bool getModifierState(String keyArgument) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -21516,38 +20502,6 @@ class KeyboardEvent extends UIEvent {
@DocsEditable()
-@DomName('KeyframeEffect')
-@Experimental() // untriaged
-@Native("KeyframeEffect")
-class KeyframeEffect extends AnimationEffectReadOnly {
- // To suppress missing implicit constructor warnings.
- factory KeyframeEffect._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('KeyframeEffect.KeyframeEffect')
- @DocsEditable()
- factory KeyframeEffect(Element target, List<Map> keyframes, [timing]) {
- if ((keyframes is List<Map>) && (target is Element || target == null) && timing == null) {
- return KeyframeEffect._create_1(target, keyframes);
- }
- if ((timing is num) && (keyframes is List<Map>) && (target is Element || target == null)) {
- return KeyframeEffect._create_2(target, keyframes, timing);
- }
- if ((timing is Map) && (keyframes is List<Map>) && (target is Element || target == null)) {
- var timing_1 = convertDartToNative_Dictionary(timing);
- return KeyframeEffect._create_3(target, keyframes, 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);
-}
-// 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('HTMLKeygenElement')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@@ -21622,11 +20576,6 @@ class KeygenElement extends HtmlElement {
@DocsEditable()
bool checkValidity() native;
- @DomName('HTMLKeygenElement.reportValidity')
- @DocsEditable()
- @Experimental() // untriaged
- bool reportValidity() native;
-
@DomName('HTMLKeygenElement.setCustomValidity')
@DocsEditable()
void setCustomValidity(String error) native;
@@ -21793,6 +20742,31 @@ class LinkElement extends HtmlElement {
return JS('bool', '("import" in #)', 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('LocalCredential')
+@Experimental() // untriaged
+@Native("LocalCredential")
+class LocalCredential extends Credential {
+ // To suppress missing implicit constructor warnings.
+ factory LocalCredential._() { throw new UnsupportedError("Not supported"); }
+
+ @DomName('LocalCredential.LocalCredential')
+ @DocsEditable()
+ factory LocalCredential(String id, String name, String avatarURL, String password) {
+ return LocalCredential._create_1(id, name, avatarURL, password);
+ }
+ static LocalCredential _create_1(id, name, avatarURL, password) => JS('LocalCredential', 'new LocalCredential(#,#,#,#)', id, name, avatarURL, password);
+
+ @DomName('LocalCredential.password')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String password;
+}
// 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.
@@ -21873,6 +20847,27 @@ class Location extends Interceptor implements LocationBase {
// for 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('MIDIErrorCallback')
+// http://webaudio.github.io/web-midi-api/#midierrorcallback
+@Experimental()
+typedef void MidiErrorCallback(DomError error);
+// 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('MIDISuccessCallback')
+@Experimental() // untriaged
+typedef void MidiSuccessCallback(MidiAccess access, bool sysex);
+// 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('HTMLMapElement')
@@ -22015,33 +21010,12 @@ class MediaDeviceInfo 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.
-@DocsEditable()
-@DomName('MediaDevices')
-@Experimental() // untriaged
-@Native("MediaDevices")
-class MediaDevices extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory MediaDevices._() { throw new UnsupportedError("Not supported"); }
- @DomName('MediaDevices.enumerateDevices')
- @DocsEditable()
- @Experimental() // untriaged
- Future enumerateDevices() native;
-
- @DomName('MediaDevices.getUserMedia')
- @DocsEditable()
- @Experimental() // untriaged
- Future getUserMedia(Map options) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _getUserMedia_1(options_1);
- }
- @JSName('getUserMedia')
- @DomName('MediaDevices.getUserMedia')
- @DocsEditable()
- @Experimental() // untriaged
- Future _getUserMedia_1(options) native;
-}
+@DomName('MediaDeviceInfoCallback')
+@Experimental() // untriaged
+typedef void MediaDeviceInfoCallback(List<MediaDeviceInfo> devices);
// 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.
@@ -22207,6 +21181,11 @@ class MediaElement extends HtmlElement {
@DocsEditable()
final MediaError error;
+ @DomName('HTMLMediaElement.integrity')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String integrity;
+
@DomName('HTMLMediaElement.loop')
@DocsEditable()
bool loop;
@@ -22257,16 +21236,6 @@ class MediaElement extends HtmlElement {
@DocsEditable()
final bool seeking;
- @DomName('HTMLMediaElement.session')
- @DocsEditable()
- @Experimental() // untriaged
- MediaSession session;
-
- @DomName('HTMLMediaElement.sinkId')
- @DocsEditable()
- @Experimental() // untriaged
- final String sinkId;
-
@DomName('HTMLMediaElement.src')
@DocsEditable()
String src;
@@ -22332,11 +21301,6 @@ class MediaElement extends HtmlElement {
@Experimental() // untriaged
Future setMediaKeys(MediaKeys mediaKeys) native;
- @DomName('HTMLMediaElement.setSinkId')
- @DocsEditable()
- @Experimental() // untriaged
- Future setSinkId(String sinkId) native;
-
@JSName('webkitAddKey')
@DomName('HTMLMediaElement.webkitAddKey')
@DocsEditable()
@@ -22398,41 +21362,6 @@ class MediaElement extends HtmlElement {
@DocsEditable()
-@DomName('MediaEncryptedEvent')
-@Experimental() // untriaged
-@Native("MediaEncryptedEvent")
-class MediaEncryptedEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory MediaEncryptedEvent._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('MediaEncryptedEvent.MediaEncryptedEvent')
- @DocsEditable()
- factory MediaEncryptedEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return MediaEncryptedEvent._create_1(type, eventInitDict_1);
- }
- return MediaEncryptedEvent._create_2(type);
- }
- static MediaEncryptedEvent _create_1(type, eventInitDict) => JS('MediaEncryptedEvent', 'new MediaEncryptedEvent(#,#)', type, eventInitDict);
- static MediaEncryptedEvent _create_2(type) => JS('MediaEncryptedEvent', 'new MediaEncryptedEvent(#)', type);
-
- @DomName('MediaEncryptedEvent.initData')
- @DocsEditable()
- @Experimental() // untriaged
- final ByteBuffer initData;
-
- @DomName('MediaEncryptedEvent.initDataType')
- @DocsEditable()
- @Experimental() // untriaged
- final String initDataType;
-}
-// 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('MediaError')
@Unstable()
@Native("MediaError")
@@ -22448,6 +21377,12 @@ class MediaError extends Interceptor {
@DocsEditable()
static const int MEDIA_ERR_DECODE = 3;
+ @DomName('MediaError.MEDIA_ERR_ENCRYPTED')
+ @DocsEditable()
+ // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#error-codes
+ @Experimental()
+ static const int MEDIA_ERR_ENCRYPTED = 5;
+
@DomName('MediaError.MEDIA_ERR_NETWORK')
@DocsEditable()
static const int MEDIA_ERR_NETWORK = 2;
@@ -22521,18 +21456,6 @@ 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()
@@ -22576,26 +21499,37 @@ class MediaKeyMessageEvent extends Event {
// To suppress missing implicit constructor warnings.
factory MediaKeyMessageEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('MediaKeyMessageEvent.MediaKeyMessageEvent')
+ @JSName('destinationURL')
+ @DomName('MediaKeyMessageEvent.destinationURL')
@DocsEditable()
- factory MediaKeyMessageEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return MediaKeyMessageEvent._create_1(type, eventInitDict_1);
- }
- return MediaKeyMessageEvent._create_2(type);
- }
- static MediaKeyMessageEvent _create_1(type, eventInitDict) => JS('MediaKeyMessageEvent', 'new MediaKeyMessageEvent(#,#)', type, eventInitDict);
- static MediaKeyMessageEvent _create_2(type) => JS('MediaKeyMessageEvent', 'new MediaKeyMessageEvent(#)', type);
+ final String destinationUrl;
@DomName('MediaKeyMessageEvent.message')
@DocsEditable()
final ByteBuffer message;
+}
+// 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('MediaKeyMessageEvent.messageType')
+
+@DocsEditable()
+@DomName('MediaKeyNeededEvent')
+// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-mediakeyneededevent
+@Experimental()
+@Native("MediaKeyNeededEvent")
+class MediaKeyNeededEvent extends Event {
+ // To suppress missing implicit constructor warnings.
+ factory MediaKeyNeededEvent._() { throw new UnsupportedError("Not supported"); }
+
+ @DomName('MediaKeyNeededEvent.contentType')
@DocsEditable()
@Experimental() // untriaged
- final String messageType;
+ final String contentType;
+
+ @DomName('MediaKeyNeededEvent.initData')
+ @DocsEditable()
+ final Uint8List initData;
}
// 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
@@ -22616,96 +21550,32 @@ class MediaKeySession extends EventTarget {
@Experimental() // untriaged
final Future closed;
- @DomName('MediaKeySession.expiration')
+ @DomName('MediaKeySession.error')
@DocsEditable()
- @Experimental() // untriaged
- final double expiration;
+ final MediaKeyError error;
- @DomName('MediaKeySession.keyStatuses')
+ @DomName('MediaKeySession.keySystem')
@DocsEditable()
- @Experimental() // untriaged
- final MediaKeyStatusMap keyStatuses;
+ final String keySystem;
@DomName('MediaKeySession.sessionId')
@DocsEditable()
final String sessionId;
- @DomName('MediaKeySession.close')
- @DocsEditable()
- Future close() native;
-
@DomName('MediaKeySession.generateRequest')
@DocsEditable()
@Experimental() // untriaged
- Future generateRequest(String initDataType, /*BufferSource*/ initData) native;
+ Future generateRequest(String initDataType, initData) native;
- @DomName('MediaKeySession.load')
+ @DomName('MediaKeySession.release')
@DocsEditable()
@Experimental() // untriaged
- Future load(String sessionId) native;
-
- @DomName('MediaKeySession.remove')
- @DocsEditable()
- @Experimental() // untriaged
- Future remove() native;
+ Future release() native;
@JSName('update')
@DomName('MediaKeySession.update')
@DocsEditable()
- Future _update(/*BufferSource*/ response) 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('MediaKeyStatusMap')
-@Experimental() // untriaged
-@Native("MediaKeyStatusMap")
-class MediaKeyStatusMap extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory MediaKeyStatusMap._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('MediaKeyStatusMap.size')
- @DocsEditable()
- @Experimental() // untriaged
- final int size;
-}
-// 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('MediaKeySystemAccess')
-@Experimental() // untriaged
-@Native("MediaKeySystemAccess")
-class MediaKeySystemAccess extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory MediaKeySystemAccess._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('MediaKeySystemAccess.keySystem')
- @DocsEditable()
- @Experimental() // untriaged
- final String keySystem;
-
- @DomName('MediaKeySystemAccess.createMediaKeys')
- @DocsEditable()
- @Experimental() // untriaged
- Future createMediaKeys() native;
-
- @DomName('MediaKeySystemAccess.getConfiguration')
- @DocsEditable()
- @Experimental() // untriaged
- Map getConfiguration() {
- return convertNativeToDart_Dictionary(_getConfiguration_1());
- }
- @JSName('getConfiguration')
- @DomName('MediaKeySystemAccess.getConfiguration')
- @DocsEditable()
- @Experimental() // untriaged
- _getConfiguration_1() native;
+ Future _update(response) 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
@@ -22721,15 +21591,24 @@ class MediaKeys extends Interceptor {
// To suppress missing implicit constructor warnings.
factory MediaKeys._() { throw new UnsupportedError("Not supported"); }
+ @DomName('MediaKeys.keySystem')
+ @DocsEditable()
+ final String keySystem;
+
+ @DomName('MediaKeys.create')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static Future create(String keySystem) native;
+
@JSName('createSession')
@DomName('MediaKeys.createSession')
@DocsEditable()
MediaKeySession _createSession([String sessionType]) native;
- @DomName('MediaKeys.setServerCertificate')
+ @DomName('MediaKeys.isTypeSupported')
@DocsEditable()
@Experimental() // untriaged
- Future setServerCertificate(/*BufferSource*/ serverCertificate) native;
+ static bool isTypeSupported(String keySystem, String contentType) 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
@@ -22754,11 +21633,11 @@ class MediaList extends Interceptor {
@DomName('MediaList.appendMedium')
@DocsEditable()
- void appendMedium(String medium) native;
+ void appendMedium(String newMedium) native;
@DomName('MediaList.deleteMedium')
@DocsEditable()
- void deleteMedium(String medium) native;
+ void deleteMedium(String oldMedium) native;
@DomName('MediaList.item')
@DocsEditable()
@@ -22816,18 +21695,6 @@ class MediaQueryListEvent extends Event {
// To suppress missing implicit constructor warnings.
factory MediaQueryListEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('MediaQueryListEvent.MediaQueryListEvent')
- @DocsEditable()
- factory MediaQueryListEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return MediaQueryListEvent._create_1(type, eventInitDict_1);
- }
- return MediaQueryListEvent._create_2(type);
- }
- static MediaQueryListEvent _create_1(type, eventInitDict) => JS('MediaQueryListEvent', 'new MediaQueryListEvent(#,#)', type, eventInitDict);
- static MediaQueryListEvent _create_2(type) => JS('MediaQueryListEvent', 'new MediaQueryListEvent(#)', type);
-
@DomName('MediaQueryListEvent.matches')
@DocsEditable()
@Experimental() // untriaged
@@ -22844,36 +21711,6 @@ class MediaQueryListEvent extends Event {
@DocsEditable()
-@DomName('MediaSession')
-@Experimental() // untriaged
-@Native("MediaSession")
-class MediaSession extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory MediaSession._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('MediaSession.MediaSession')
- @DocsEditable()
- factory MediaSession() {
- return MediaSession._create_1();
- }
- static MediaSession _create_1() => JS('MediaSession', 'new MediaSession()');
-
- @DomName('MediaSession.activate')
- @DocsEditable()
- @Experimental() // untriaged
- void activate() native;
-
- @DomName('MediaSession.deactivate')
- @DocsEditable()
- @Experimental() // untriaged
- void 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
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DocsEditable()
@DomName('MediaSource')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.IE, '11')
@@ -22988,11 +21825,6 @@ class MediaStream extends EventTarget {
static MediaStream _create_2(stream_OR_tracks) => JS('MediaStream', 'new MediaStream(#)', stream_OR_tracks);
static MediaStream _create_3(stream_OR_tracks) => JS('MediaStream', 'new MediaStream(#)', stream_OR_tracks);
- @DomName('MediaStream.active')
- @DocsEditable()
- @Experimental() // untriaged
- final bool active;
-
@DomName('MediaStream.ended')
@DocsEditable()
final bool ended;
@@ -23090,18 +21922,6 @@ class MediaStreamEvent extends Event {
// To suppress missing implicit constructor warnings.
factory MediaStreamEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('MediaStreamEvent.MediaStreamEvent')
- @DocsEditable()
- factory MediaStreamEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return MediaStreamEvent._create_1(type, eventInitDict_1);
- }
- return MediaStreamEvent._create_2(type);
- }
- static MediaStreamEvent _create_1(type, eventInitDict) => JS('MediaStreamEvent', 'new MediaStreamEvent(#,#)', type, eventInitDict);
- static MediaStreamEvent _create_2(type) => JS('MediaStreamEvent', 'new MediaStreamEvent(#)', type);
-
/// Checks if this type is supported on the current platform.
static bool get supported => Device.isEventTypeSupported('MediaStreamEvent');
@@ -23355,21 +22175,11 @@ class MenuItemElement extends HtmlElement {
@Experimental() // untriaged
bool disabled;
- @DomName('HTMLMenuItemElement.icon')
- @DocsEditable()
- @Experimental() // untriaged
- String icon;
-
@DomName('HTMLMenuItemElement.label')
@DocsEditable()
@Experimental() // untriaged
String label;
- @DomName('HTMLMenuItemElement.radiogroup')
- @DocsEditable()
- @Experimental() // untriaged
- String radiogroup;
-
@DomName('HTMLMenuItemElement.type')
@DocsEditable()
@Experimental() // untriaged
@@ -23424,35 +22234,19 @@ class MessageEvent extends Event {
lastEventId, source, messagePorts);
return event;
}
+ // To suppress missing implicit constructor warnings.
+ factory MessageEvent._() { throw new UnsupportedError("Not supported"); }
- // TODO(alanknight): This really should be generated by the
- // _OutputConversion in the systemnative.py script, but that doesn't
- // use those conversions right now, so do this as a one-off.
@DomName('MessageEvent.data')
@DocsEditable()
dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
-
@JSName('data')
@DomName('MessageEvent.data')
@DocsEditable()
- @Creates('Null')
- @Returns('Object|Null')
+ @annotation_Creates_SerializedScriptValue
+ @annotation_Returns_SerializedScriptValue
final dynamic _get_data;
-
-
- @DomName('MessageEvent.MessageEvent')
- @DocsEditable()
- factory MessageEvent._(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return MessageEvent._create_1(type, eventInitDict_1);
- }
- return MessageEvent._create_2(type);
- }
- static MessageEvent _create_1(type, eventInitDict) => JS('MessageEvent', 'new MessageEvent(#,#)', type, eventInitDict);
- static MessageEvent _create_2(type) => JS('MessageEvent', 'new MessageEvent(#)', type);
-
@DomName('MessageEvent.lastEventId')
@DocsEditable()
@Unstable()
@@ -23475,7 +22269,7 @@ class MessageEvent extends Event {
@JSName('initMessageEvent')
@DomName('MessageEvent.initMessageEvent')
@DocsEditable()
- void _initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, List<MessagePort> portsArg) native;
+ void _initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, List<MessagePort> messagePorts) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -23681,6 +22475,26 @@ class MidiAccess extends EventTarget {
// To suppress missing implicit constructor warnings.
factory MidiAccess._() { throw new UnsupportedError("Not supported"); }
+ /**
+ * Static factory designed to expose `connect` events to event
+ * handlers that are not necessarily instances of [MidiAccess].
+ *
+ * See [EventStreamProvider] for usage information.
+ */
+ @DomName('MIDIAccess.connectEvent')
+ @DocsEditable()
+ static const EventStreamProvider<MidiConnectionEvent> connectEvent = const EventStreamProvider<MidiConnectionEvent>('connect');
+
+ /**
+ * Static factory designed to expose `disconnect` events to event
+ * handlers that are not necessarily instances of [MidiAccess].
+ *
+ * See [EventStreamProvider] for usage information.
+ */
+ @DomName('MIDIAccess.disconnectEvent')
+ @DocsEditable()
+ static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const EventStreamProvider<MidiConnectionEvent>('disconnect');
+
@DomName('MIDIAccess.inputs')
@DocsEditable()
final MidiInputMap inputs;
@@ -23693,6 +22507,16 @@ class MidiAccess extends EventTarget {
@DocsEditable()
@Experimental() // untriaged
final bool sysexEnabled;
+
+ /// Stream of `connect` events handled by this [MidiAccess].
+ @DomName('MIDIAccess.onconnect')
+ @DocsEditable()
+ Stream<MidiConnectionEvent> get onConnect => connectEvent.forTarget(this);
+
+ /// Stream of `disconnect` events handled by this [MidiAccess].
+ @DomName('MIDIAccess.ondisconnect')
+ @DocsEditable()
+ Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.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
@@ -23708,18 +22532,6 @@ class MidiConnectionEvent extends Event {
// To suppress missing implicit constructor warnings.
factory MidiConnectionEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('MIDIConnectionEvent.MIDIConnectionEvent')
- @DocsEditable()
- factory MidiConnectionEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return MidiConnectionEvent._create_1(type, eventInitDict_1);
- }
- return MidiConnectionEvent._create_2(type);
- }
- static MidiConnectionEvent _create_1(type, eventInitDict) => JS('MidiConnectionEvent', 'new MIDIConnectionEvent(#,#)', type, eventInitDict);
- static MidiConnectionEvent _create_2(type) => JS('MidiConnectionEvent', 'new MIDIConnectionEvent(#)', type);
-
@DomName('MIDIConnectionEvent.port')
@DocsEditable()
final MidiPort port;
@@ -23770,6 +22582,31 @@ class MidiInputMap extends Interceptor {
@DocsEditable()
@Experimental() // untriaged
final int size;
+
+ @DomName('MIDIInputMap.entries')
+ @DocsEditable()
+ @Experimental() // untriaged
+ DomIterator entries() native;
+
+ @DomName('MIDIInputMap.get')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Object get(String id) native;
+
+ @DomName('MIDIInputMap.has')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool has(String key) native;
+
+ @DomName('MIDIInputMap.keys')
+ @DocsEditable()
+ @Experimental() // untriaged
+ DomIterator keys() native;
+
+ @DomName('MIDIInputMap.values')
+ @DocsEditable()
+ @Experimental() // untriaged
+ DomIterator values() 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
@@ -23785,18 +22622,6 @@ class MidiMessageEvent extends Event {
// To suppress missing implicit constructor warnings.
factory MidiMessageEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('MIDIMessageEvent.MIDIMessageEvent')
- @DocsEditable()
- factory MidiMessageEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return MidiMessageEvent._create_1(type, eventInitDict_1);
- }
- return MidiMessageEvent._create_2(type);
- }
- static MidiMessageEvent _create_1(type, eventInitDict) => JS('MidiMessageEvent', 'new MIDIMessageEvent(#,#)', type, eventInitDict);
- static MidiMessageEvent _create_2(type) => JS('MidiMessageEvent', 'new MIDIMessageEvent(#)', type);
-
@DomName('MIDIMessageEvent.data')
@DocsEditable()
final Uint8List data;
@@ -23840,6 +22665,31 @@ class MidiOutputMap extends Interceptor {
@DocsEditable()
@Experimental() // untriaged
final int size;
+
+ @DomName('MIDIOutputMap.entries')
+ @DocsEditable()
+ @Experimental() // untriaged
+ DomIterator entries() native;
+
+ @DomName('MIDIOutputMap.get')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Object get(String id) native;
+
+ @DomName('MIDIOutputMap.has')
+ @DocsEditable()
+ @Experimental() // untriaged
+ bool has(String key) native;
+
+ @DomName('MIDIOutputMap.keys')
+ @DocsEditable()
+ @Experimental() // untriaged
+ DomIterator keys() native;
+
+ @DomName('MIDIOutputMap.values')
+ @DocsEditable()
+ @Experimental() // untriaged
+ DomIterator values() 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
@@ -23855,10 +22705,15 @@ class MidiPort extends EventTarget {
// To suppress missing implicit constructor warnings.
factory MidiPort._() { throw new UnsupportedError("Not supported"); }
- @DomName('MIDIPort.connection')
+ /**
+ * Static factory designed to expose `disconnect` events to event
+ * handlers that are not necessarily instances of [MidiPort].
+ *
+ * See [EventStreamProvider] for usage information.
+ */
+ @DomName('MIDIPort.disconnectEvent')
@DocsEditable()
- @Experimental() // untriaged
- final String connection;
+ static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const EventStreamProvider<MidiConnectionEvent>('disconnect');
@DomName('MIDIPort.id')
@DocsEditable()
@@ -23872,11 +22727,6 @@ class MidiPort extends EventTarget {
@DocsEditable()
final String name;
- @DomName('MIDIPort.state')
- @DocsEditable()
- @Experimental() // untriaged
- final String state;
-
@DomName('MIDIPort.type')
@DocsEditable()
final String type;
@@ -23885,15 +22735,10 @@ class MidiPort extends EventTarget {
@DocsEditable()
final String version;
- @DomName('MIDIPort.close')
+ /// Stream of `disconnect` events handled by this [MidiPort].
+ @DomName('MIDIPort.ondisconnect')
@DocsEditable()
- @Experimental() // untriaged
- Future close() native;
-
- @DomName('MIDIPort.open')
- @DocsEditable()
- @Experimental() // untriaged
- Future open() native;
+ Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.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
@@ -23985,6 +22830,10 @@ class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM
MimeType elementAt(int index) => this[index];
// -- end List<MimeType> mixins.
+ @DomName('MimeTypeArray.__getter__')
+ @DocsEditable()
+ MimeType __getter__(String name) native;
+
@DomName('MimeTypeArray.item')
@DocsEditable()
MimeType item(int index) native;
@@ -24026,7 +22875,7 @@ class ModElement extends HtmlElement {
@DomName('MouseEvent')
-@Native("MouseEvent,DragEvent")
+@Native("MouseEvent,DragEvent,PointerEvent,MSPointerEvent")
class MouseEvent extends UIEvent {
factory MouseEvent(String type,
{Window view, int detail: 0, int screenX: 0, int screenY: 0,
@@ -24043,18 +22892,8 @@ class MouseEvent extends UIEvent {
button, relatedTarget);
return event;
}
-
- @DomName('MouseEvent.MouseEvent')
- @DocsEditable()
- factory MouseEvent._(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return MouseEvent._create_1(type, eventInitDict_1);
- }
- return MouseEvent._create_2(type);
- }
- static MouseEvent _create_1(type, eventInitDict) => JS('MouseEvent', 'new MouseEvent(#,#)', type, eventInitDict);
- static MouseEvent _create_2(type) => JS('MouseEvent', 'new MouseEvent(#)', type);
+ // To suppress missing implicit constructor warnings.
+ factory MouseEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('MouseEvent.altKey')
@DocsEditable()
@@ -24064,11 +22903,6 @@ class MouseEvent extends UIEvent {
@DocsEditable()
final int button;
- @DomName('MouseEvent.buttons')
- @DocsEditable()
- @Experimental() // untriaged
- final int buttons;
-
@JSName('clientX')
@DomName('MouseEvent.clientX')
@DocsEditable()
@@ -24100,18 +22934,6 @@ class MouseEvent extends UIEvent {
@deprecated
final Node fromElement;
- @JSName('layerX')
- @DomName('MouseEvent.layerX')
- @DocsEditable()
- @Experimental() // untriaged
- final int _layerX;
-
- @JSName('layerY')
- @DomName('MouseEvent.layerY')
- @DocsEditable()
- @Experimental() // untriaged
- final int _layerY;
-
@DomName('MouseEvent.metaKey')
@DocsEditable()
final bool metaKey;
@@ -24128,18 +22950,6 @@ class MouseEvent extends UIEvent {
@Experimental() // untriaged
final int _movementY;
- @JSName('pageX')
- @DomName('MouseEvent.pageX')
- @DocsEditable()
- @Experimental() // untriaged
- final int _pageX;
-
- @JSName('pageY')
- @DomName('MouseEvent.pageY')
- @DocsEditable()
- @Experimental() // untriaged
- final int _pageY;
-
@DomName('MouseEvent.region')
@DocsEditable()
@Experimental() // untriaged
@@ -24152,7 +22962,7 @@ class MouseEvent extends UIEvent {
@DomName('MouseEvent.relatedTarget')
@DocsEditable()
@Creates('Node')
- @Returns('EventTarget|=Object')
+ @Returns('EventTarget|=Object|Null')
final dynamic _get_relatedTarget;
@JSName('screenX')
@@ -24197,20 +23007,17 @@ class MouseEvent extends UIEvent {
@Experimental()
final int _webkitMovementY;
- // Use implementation from UIEvent.
- // final int which;
-
@DomName('MouseEvent.initMouseEvent')
@DocsEditable()
- void _initMouseEvent(String type, bool bubbles, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget) {
+ void _initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget) {
var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget);
- _initMouseEvent_1(type, bubbles, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget_1);
+ _initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget_1);
return;
}
@JSName('initMouseEvent')
@DomName('MouseEvent.initMouseEvent')
@DocsEditable()
- void _initMouseEvent_1(type, bubbles, cancelable, Window view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) native;
+ void _initMouseEvent_1(type, canBubble, cancelable, Window view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) native;
@DomName('MouseEvent.clientX')
@@ -24430,7 +23237,7 @@ class MutationRecord extends Interceptor {
@DomName('Navigator')
@Native("Navigator")
-class Navigator extends Interceptor implements NavigatorStorageUtils, NavigatorCpu, NavigatorLanguage, NavigatorOnLine, NavigatorID {
+class Navigator extends Interceptor implements NavigatorCpu, NavigatorLanguage, NavigatorOnLine, NavigatorID {
@DomName('Navigator.language')
String get language => JS('String', '#.language || #.userLanguage', this,
@@ -24506,16 +23313,16 @@ class Navigator extends Interceptor implements NavigatorStorageUtils, NavigatorC
// To suppress missing implicit constructor warnings.
factory Navigator._() { throw new UnsupportedError("Not supported"); }
- @DomName('Navigator.bluetooth')
- @DocsEditable()
- @Experimental() // untriaged
- final Bluetooth bluetooth;
-
@DomName('Navigator.connection')
@DocsEditable()
@Experimental() // untriaged
final NetworkInformation connection;
+ @DomName('Navigator.cookieEnabled')
+ @DocsEditable()
+ @Unstable()
+ final bool cookieEnabled;
+
@DomName('Navigator.credentials')
@DocsEditable()
@Experimental() // untriaged
@@ -24527,6 +23334,11 @@ class Navigator extends Interceptor implements NavigatorStorageUtils, NavigatorC
@Experimental() // experimental
final String doNotTrack;
+ @DomName('Navigator.geofencing')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Geofencing geofencing;
+
@DomName('Navigator.geolocation')
@DocsEditable()
@Unstable()
@@ -24537,21 +23349,11 @@ class Navigator extends Interceptor implements NavigatorStorageUtils, NavigatorC
@Experimental() // untriaged
final int maxTouchPoints;
- @DomName('Navigator.mediaDevices')
- @DocsEditable()
- @Experimental() // untriaged
- final MediaDevices mediaDevices;
-
@DomName('Navigator.mimeTypes')
@DocsEditable()
@Experimental() // nonstandard
final MimeTypeArray mimeTypes;
- @DomName('Navigator.permissions')
- @DocsEditable()
- @Experimental() // untriaged
- final Permissions permissions;
-
@DomName('Navigator.presentation')
@DocsEditable()
@Experimental() // untriaged
@@ -24562,15 +23364,15 @@ class Navigator extends Interceptor implements NavigatorStorageUtils, NavigatorC
@Unstable()
final String productSub;
- @DomName('Navigator.serviceWorker')
+ @DomName('Navigator.push')
@DocsEditable()
@Experimental() // untriaged
- final ServiceWorkerContainer serviceWorker;
+ final PushManager push;
- @DomName('Navigator.services')
+ @DomName('Navigator.serviceWorker')
@DocsEditable()
@Experimental() // untriaged
- final ServicePortCollection services;
+ final ServiceWorkerContainer serviceWorker;
@DomName('Navigator.storageQuota')
@DocsEditable()
@@ -24617,46 +23419,21 @@ class Navigator extends Interceptor implements NavigatorStorageUtils, NavigatorC
@Creates('_GamepadList')
List<Gamepad> getGamepads() native;
- @DomName('Navigator.getVRDevices')
+ @DomName('Navigator.getStorageUpdates')
@DocsEditable()
- @Experimental() // untriaged
- Future getVRDevices() native;
+ // http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#navigatorstorageutils
+ @Experimental()
+ void getStorageUpdates() native;
@DomName('Navigator.registerProtocolHandler')
@DocsEditable()
@Unstable()
void registerProtocolHandler(String scheme, String url, String title) native;
- @DomName('Navigator.requestMIDIAccess')
- @DocsEditable()
- @Experimental() // untriaged
- Future requestMidiAccess([Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _requestMidiAccess_1(options_1);
- }
- return _requestMidiAccess_2();
- }
- @JSName('requestMIDIAccess')
- @DomName('Navigator.requestMIDIAccess')
- @DocsEditable()
- @Experimental() // untriaged
- Future _requestMidiAccess_1(options) native;
- @JSName('requestMIDIAccess')
- @DomName('Navigator.requestMIDIAccess')
- @DocsEditable()
- @Experimental() // untriaged
- Future _requestMidiAccess_2() native;
-
- @DomName('Navigator.requestMediaKeySystemAccess')
- @DocsEditable()
- @Experimental() // untriaged
- Future requestMediaKeySystemAccess(String keySystem, List<Map> supportedConfigurations) native;
-
@DomName('Navigator.sendBeacon')
@DocsEditable()
@Experimental() // untriaged
- bool sendBeacon(String url, Object data) native;
+ bool sendBeacon(String url, data) native;
// From NavigatorCPU
@@ -24712,19 +23489,6 @@ class Navigator extends Interceptor implements NavigatorStorageUtils, NavigatorC
@Unstable()
final bool onLine;
- // From NavigatorStorageUtils
-
- @DomName('Navigator.cookieEnabled')
- @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
@@ -24802,29 +23566,6 @@ abstract class NavigatorOnLine extends Interceptor {
@DocsEditable()
-@DomName('NavigatorStorageUtils')
-@Experimental() // untriaged
-@Native("NavigatorStorageUtils")
-class NavigatorStorageUtils extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory NavigatorStorageUtils._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('NavigatorStorageUtils.cookieEnabled')
- @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
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DocsEditable()
@DomName('NavigatorUserMediaError')
// http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserMediaError
@Experimental()
@@ -25400,7 +24141,7 @@ class Node extends EventTarget {
*/
@DomName('Node.appendChild')
@DocsEditable()
- Node append(Node node) native;
+ Node append(Node newChild) native;
@JSName('cloneNode')
/**
@@ -25452,17 +24193,17 @@ class Node extends EventTarget {
*/
@DomName('Node.insertBefore')
@DocsEditable()
- Node insertBefore(Node node, Node child) native;
+ Node insertBefore(Node newChild, Node refChild) native;
@JSName('removeChild')
@DomName('Node.removeChild')
@DocsEditable()
- Node _removeChild(Node child) native;
+ Node _removeChild(Node oldChild) native;
@JSName('replaceChild')
@DomName('Node.replaceChild')
@DocsEditable()
- Node _replaceChild(Node node, Node child) native;
+ Node _replaceChild(Node newChild, Node oldChild) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -25496,31 +24237,31 @@ class NodeFilter extends Interceptor {
@DomName('NodeFilter.SHOW_COMMENT')
@DocsEditable()
- static const int SHOW_COMMENT = 0x80;
+ static const int SHOW_COMMENT = 0x00000080;
@DomName('NodeFilter.SHOW_DOCUMENT')
@DocsEditable()
- static const int SHOW_DOCUMENT = 0x100;
+ static const int SHOW_DOCUMENT = 0x00000100;
@DomName('NodeFilter.SHOW_DOCUMENT_FRAGMENT')
@DocsEditable()
- static const int SHOW_DOCUMENT_FRAGMENT = 0x400;
+ static const int SHOW_DOCUMENT_FRAGMENT = 0x00000400;
@DomName('NodeFilter.SHOW_DOCUMENT_TYPE')
@DocsEditable()
- static const int SHOW_DOCUMENT_TYPE = 0x200;
+ static const int SHOW_DOCUMENT_TYPE = 0x00000200;
@DomName('NodeFilter.SHOW_ELEMENT')
@DocsEditable()
- static const int SHOW_ELEMENT = 0x1;
+ static const int SHOW_ELEMENT = 0x00000001;
@DomName('NodeFilter.SHOW_PROCESSING_INSTRUCTION')
@DocsEditable()
- static const int SHOW_PROCESSING_INSTRUCTION = 0x40;
+ static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040;
@DomName('NodeFilter.SHOW_TEXT')
@DocsEditable()
- static const int SHOW_TEXT = 0x4;
+ static const int SHOW_TEXT = 0x00000004;
}
// 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
@@ -25631,47 +24372,6 @@ class NodeList extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node
@DocsEditable()
Node _item(int index) 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('NonDocumentTypeChildNode')
-@Experimental() // untriaged
-@Native("NonDocumentTypeChildNode")
-class NonDocumentTypeChildNode extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory NonDocumentTypeChildNode._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('NonDocumentTypeChildNode.nextElementSibling')
- @DocsEditable()
- @Experimental() // untriaged
- final Element nextElementSibling;
-
- @DomName('NonDocumentTypeChildNode.previousElementSibling')
- @DocsEditable()
- @Experimental() // untriaged
- final Element previousElementSibling;
-}
-// 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('NonElementParentNode')
-@Experimental() // untriaged
-@Native("NonElementParentNode")
-class NonElementParentNode extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory NonElementParentNode._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('NonElementParentNode.getElementById')
- @DocsEditable()
- @Experimental() // untriaged
- Element getElementById(String elementId) 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
// BSD-style license that can be found in the LICENSE file.
@@ -25757,11 +24457,6 @@ class Notification extends EventTarget {
@Experimental() // untriaged
final String body;
- @DomName('Notification.data')
- @DocsEditable()
- @Experimental() // untriaged
- final Object data;
-
@DomName('Notification.dir')
@DocsEditable()
@Experimental() // nonstandard
@@ -25781,11 +24476,6 @@ class Notification extends EventTarget {
@DocsEditable()
final String permission;
- @DomName('Notification.silent')
- @DocsEditable()
- @Experimental() // untriaged
- final bool silent;
-
@DomName('Notification.tag')
@DocsEditable()
@Experimental() // nonstandard
@@ -25796,11 +24486,6 @@ class Notification extends EventTarget {
@Experimental() // untriaged
final String title;
- @DomName('Notification.vibrate')
- @DocsEditable()
- @Experimental() // untriaged
- final List<int> vibrate;
-
@DomName('Notification.close')
@DocsEditable()
void close() native;
@@ -25845,36 +24530,6 @@ class Notification 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('NotificationEvent')
-@Experimental() // untriaged
-@Native("NotificationEvent")
-class NotificationEvent extends ExtendableEvent {
- // To suppress missing implicit constructor warnings.
- factory NotificationEvent._() { throw new UnsupportedError("Not supported"); }
-
- @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);
- }
- static NotificationEvent _create_1(type, eventInitDict) => JS('NotificationEvent', 'new NotificationEvent(#,#)', type, eventInitDict);
- static NotificationEvent _create_2(type) => JS('NotificationEvent', 'new NotificationEvent(#)', type);
-
- @DomName('NotificationEvent.notification')
- @DocsEditable()
- @Experimental() // untriaged
- final Notification notification;
-}
-// 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.
@@ -25957,6 +24612,11 @@ class ObjectElement extends HtmlElement {
@DocsEditable()
String height;
+ @DomName('HTMLObjectElement.integrity')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String integrity;
+
@DomName('HTMLObjectElement.name')
@DocsEditable()
String name;
@@ -25997,11 +24657,6 @@ class ObjectElement extends HtmlElement {
@DocsEditable()
bool checkValidity() native;
- @DomName('HTMLObjectElement.reportValidity')
- @DocsEditable()
- @Experimental() // untriaged
- bool reportValidity() native;
-
@DomName('HTMLObjectElement.setCustomValidity')
@DocsEditable()
void setCustomValidity(String error) native;
@@ -26181,11 +24836,6 @@ class OutputElement extends HtmlElement {
@DocsEditable()
bool checkValidity() native;
- @DomName('HTMLOutputElement.reportValidity')
- @DocsEditable()
- @Experimental() // untriaged
- bool reportValidity() native;
-
@DomName('HTMLOutputElement.setCustomValidity')
@DocsEditable()
void setCustomValidity(String error) native;
@@ -26196,6 +24846,43 @@ class OutputElement extends HtmlElement {
@DocsEditable()
+@DomName('OverflowEvent')
+@Experimental() // nonstandard
+@Native("OverflowEvent")
+class OverflowEvent extends Event {
+ // To suppress missing implicit constructor warnings.
+ factory OverflowEvent._() { throw new UnsupportedError("Not supported"); }
+
+ @DomName('OverflowEvent.BOTH')
+ @DocsEditable()
+ static const int BOTH = 2;
+
+ @DomName('OverflowEvent.HORIZONTAL')
+ @DocsEditable()
+ static const int HORIZONTAL = 0;
+
+ @DomName('OverflowEvent.VERTICAL')
+ @DocsEditable()
+ static const int VERTICAL = 1;
+
+ @DomName('OverflowEvent.horizontalOverflow')
+ @DocsEditable()
+ final bool horizontalOverflow;
+
+ @DomName('OverflowEvent.orient')
+ @DocsEditable()
+ final int orient;
+
+ @DomName('OverflowEvent.verticalOverflow')
+ @DocsEditable()
+ final bool verticalOverflow;
+}
+// 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('PageTransitionEvent')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#pagetransitionevent
@Experimental()
@@ -26204,18 +24891,6 @@ class PageTransitionEvent extends Event {
// To suppress missing implicit constructor warnings.
factory PageTransitionEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('PageTransitionEvent.PageTransitionEvent')
- @DocsEditable()
- factory PageTransitionEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return PageTransitionEvent._create_1(type, eventInitDict_1);
- }
- return PageTransitionEvent._create_2(type);
- }
- static PageTransitionEvent _create_1(type, eventInitDict) => JS('PageTransitionEvent', 'new PageTransitionEvent(#,#)', type, eventInitDict);
- static PageTransitionEvent _create_2(type) => JS('PageTransitionEvent', 'new PageTransitionEvent(#)', type);
-
@DomName('PageTransitionEvent.persisted')
@DocsEditable()
final bool persisted;
@@ -26303,44 +24978,6 @@ abstract class ParentNode extends Interceptor {
@DocsEditable()
-@DomName('PasswordCredential')
-@Experimental() // untriaged
-@Native("PasswordCredential")
-class PasswordCredential extends Credential {
- // To suppress missing implicit constructor warnings.
- factory PasswordCredential._() { throw new UnsupportedError("Not supported"); }
-
- @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);
- }
- 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);
-
- @DomName('PasswordCredential.formData')
- @DocsEditable()
- @Experimental() // untriaged
- final FormData formData;
-
- @DomName('PasswordCredential.password')
- @DocsEditable()
- @Experimental() // untriaged
- final String password;
-}
-// 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('Path2D')
@Experimental() // untriaged
@Native("Path2D")
@@ -26463,11 +25100,6 @@ class Performance extends EventTarget {
@DocsEditable()
final PerformanceTiming timing;
- @DomName('Performance.clearFrameTimings')
- @DocsEditable()
- @Experimental() // untriaged
- void clearFrameTimings() native;
-
@DomName('Performance.clearMarks')
@DocsEditable()
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#extensions-performance-interface
@@ -26514,11 +25146,6 @@ class Performance extends EventTarget {
@DocsEditable()
double now() native;
- @DomName('Performance.setFrameTimingBufferSize')
- @DocsEditable()
- @Experimental() // untriaged
- void setFrameTimingBufferSize(int maxSize) native;
-
@JSName('webkitClearResourceTimings')
@DomName('Performance.webkitClearResourceTimings')
@DocsEditable()
@@ -26550,24 +25177,6 @@ class Performance extends EventTarget {
@DocsEditable()
-@DomName('PerformanceCompositeTiming')
-@Experimental() // untriaged
-@Native("PerformanceCompositeTiming")
-class PerformanceCompositeTiming extends PerformanceEntry {
- // To suppress missing implicit constructor warnings.
- factory PerformanceCompositeTiming._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('PerformanceCompositeTiming.sourceFrame')
- @DocsEditable()
- @Experimental() // untriaged
- final int sourceFrame;
-}
-// 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('PerformanceEntry')
// http://www.w3.org/TR/performance-timeline/#sec-PerformanceEntry-interface
@Experimental()
@@ -26663,24 +25272,6 @@ class PerformanceNavigation extends Interceptor {
@DocsEditable()
-@DomName('PerformanceRenderTiming')
-@Experimental() // untriaged
-@Native("PerformanceRenderTiming")
-class PerformanceRenderTiming extends PerformanceEntry {
- // To suppress missing implicit constructor warnings.
- factory PerformanceRenderTiming._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('PerformanceRenderTiming.sourceFrame')
- @DocsEditable()
- @Experimental() // untriaged
- final int sourceFrame;
-}
-// 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('PerformanceResourceTiming')
// http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourcetiming
@Experimental()
@@ -26739,11 +25330,6 @@ class PerformanceResourceTiming extends PerformanceEntry {
@DomName('PerformanceResourceTiming.secureConnectionStart')
@DocsEditable()
final double secureConnectionStart;
-
- @DomName('PerformanceResourceTiming.workerStart')
- @DocsEditable()
- @Experimental() // untriaged
- final double workerStart;
}
// 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
@@ -26848,175 +25434,6 @@ class PerformanceTiming extends Interceptor {
@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')
-@Experimental() // untriaged
-@Native("PeriodicSyncManager")
-class PeriodicSyncManager extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory PeriodicSyncManager._() { 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')
- @DocsEditable()
- @Experimental() // untriaged
- Future permissionState() native;
-
- @DomName('PeriodicSyncManager.register')
- @DocsEditable()
- @Experimental() // untriaged
- Future register([Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _register_1(options_1);
- }
- return _register_2();
- }
- @JSName('register')
- @DomName('PeriodicSyncManager.register')
- @DocsEditable()
- @Experimental() // untriaged
- Future _register_1(options) native;
- @JSName('register')
- @DomName('PeriodicSyncManager.register')
- @DocsEditable()
- @Experimental() // untriaged
- Future _register_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('PeriodicSyncRegistration')
-@Experimental() // untriaged
-@Native("PeriodicSyncRegistration")
-class PeriodicSyncRegistration extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory PeriodicSyncRegistration._() { 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')
- @DocsEditable()
- @Experimental() // untriaged
- final String powerState;
-
- @DomName('PeriodicSyncRegistration.tag')
- @DocsEditable()
- @Experimental() // untriaged
- final String tag;
-
- @DomName('PeriodicSyncRegistration.unregister')
- @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"); }
-
- @DomName('PermissionStatus.changeEvent')
- @DocsEditable()
- @Experimental() // untriaged
- static const EventStreamProvider<Event> changeEvent = const EventStreamProvider<Event>('change');
-
- @DomName('PermissionStatus.state')
- @DocsEditable()
- @Experimental() // untriaged
- final String state;
-
- @DomName('PermissionStatus.status')
- @DocsEditable()
- @Experimental() // untriaged
- final String status;
-
- @DomName('PermissionStatus.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('Permissions')
-@Experimental() // untriaged
-@Native("Permissions")
-class Permissions extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory Permissions._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('Permissions.query')
- @DocsEditable()
- @Experimental() // untriaged
- Future query(Object 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('HTMLPictureElement')
@Experimental() // untriaged
@Native("HTMLPictureElement")
@@ -27059,6 +25476,10 @@ class Plugin extends Interceptor {
@DocsEditable()
final String name;
+ @DomName('Plugin.__getter__')
+ @DocsEditable()
+ MimeType __getter__(String name) native;
+
@DomName('Plugin.item')
@DocsEditable()
MimeType item(int index) native;
@@ -27128,6 +25549,10 @@ class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin
Plugin elementAt(int index) => this[index];
// -- end List<Plugin> mixins.
+ @DomName('PluginArray.__getter__')
+ @DocsEditable()
+ Plugin __getter__(String name) native;
+
@DomName('PluginArray.item')
@DocsEditable()
Plugin item(int index) native;
@@ -27159,11 +25584,6 @@ class PluginPlaceholderElement extends DivElement {
*/
PluginPlaceholderElement.created() : super.created();
- @DomName('PluginPlaceholderElement.closeable')
- @DocsEditable()
- @Experimental() // untriaged
- bool closeable;
-
@DomName('PluginPlaceholderElement.message')
@DocsEditable()
@Experimental() // untriaged
@@ -27180,71 +25600,6 @@ class PluginPlaceholderElement extends DivElement {
@DocsEditable()
-@DomName('PointerEvent')
-@Experimental() // untriaged
-@Native("PointerEvent")
-class PointerEvent extends MouseEvent {
- // To suppress missing implicit constructor warnings.
- factory PointerEvent._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('PointerEvent.PointerEvent')
- @DocsEditable()
- factory PointerEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return PointerEvent._create_1(type, eventInitDict_1);
- }
- return PointerEvent._create_2(type);
- }
- static PointerEvent _create_1(type, eventInitDict) => JS('PointerEvent', 'new PointerEvent(#,#)', type, eventInitDict);
- static PointerEvent _create_2(type) => JS('PointerEvent', 'new PointerEvent(#)', type);
-
- @DomName('PointerEvent.height')
- @DocsEditable()
- @Experimental() // untriaged
- final double height;
-
- @DomName('PointerEvent.isPrimary')
- @DocsEditable()
- @Experimental() // untriaged
- final bool isPrimary;
-
- @DomName('PointerEvent.pointerId')
- @DocsEditable()
- @Experimental() // untriaged
- final int pointerId;
-
- @DomName('PointerEvent.pointerType')
- @DocsEditable()
- @Experimental() // untriaged
- final String pointerType;
-
- @DomName('PointerEvent.pressure')
- @DocsEditable()
- @Experimental() // untriaged
- final double pressure;
-
- @DomName('PointerEvent.tiltX')
- @DocsEditable()
- @Experimental() // untriaged
- final int tiltX;
-
- @DomName('PointerEvent.tiltY')
- @DocsEditable()
- @Experimental() // untriaged
- final int tiltY;
-
- @DomName('PointerEvent.width')
- @DocsEditable()
- @Experimental() // untriaged
- final double 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('PopStateEvent')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@@ -27255,18 +25610,6 @@ class PopStateEvent extends Event {
// To suppress missing implicit constructor warnings.
factory PopStateEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('PopStateEvent.PopStateEvent')
- @DocsEditable()
- factory PopStateEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return PopStateEvent._create_1(type, eventInitDict_1);
- }
- return PopStateEvent._create_2(type);
- }
- static PopStateEvent _create_1(type, eventInitDict) => JS('PopStateEvent', 'new PopStateEvent(#,#)', type, eventInitDict);
- static PopStateEvent _create_2(type) => JS('PopStateEvent', 'new PopStateEvent(#)', type);
-
@DomName('PopStateEvent.state')
@DocsEditable()
dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state);
@@ -27336,34 +25679,6 @@ typedef void _PositionErrorCallback(PositionError error);
@DocsEditable()
-@DomName('PositionSensorVRDevice')
-@Experimental() // untriaged
-@Native("PositionSensorVRDevice")
-class PositionSensorVRDevice extends VRDevice {
- // To suppress missing implicit constructor warnings.
- factory PositionSensorVRDevice._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('PositionSensorVRDevice.getImmediateState')
- @DocsEditable()
- @Experimental() // untriaged
- VRPositionState getImmediateState() native;
-
- @DomName('PositionSensorVRDevice.getState')
- @DocsEditable()
- @Experimental() // untriaged
- VRPositionState getState() native;
-
- @DomName('PositionSensorVRDevice.resetSensor')
- @DocsEditable()
- @Experimental() // untriaged
- void resetSensor() 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('HTMLPreElement')
@Native("HTMLPreElement")
class PreElement extends HtmlElement {
@@ -27392,102 +25707,6 @@ class PreElement extends HtmlElement {
class Presentation extends EventTarget {
// 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')
- @DocsEditable()
- @Experimental() // untriaged
- Future joinSession(String url, String presentationId) native;
-
- @DomName('Presentation.startSession')
- @DocsEditable()
- @Experimental() // untriaged
- Future startSession(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
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DocsEditable()
-@DomName('PresentationAvailability')
-@Experimental() // untriaged
-@Native("PresentationAvailability")
-class PresentationAvailability extends EventTarget {
- // To suppress missing implicit constructor warnings.
- factory PresentationAvailability._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('PresentationAvailability.changeEvent')
- @DocsEditable()
- @Experimental() // untriaged
- static const EventStreamProvider<Event> changeEvent = const EventStreamProvider<Event>('change');
-
- @DomName('PresentationAvailability.value')
- @DocsEditable()
- @Experimental() // untriaged
- final bool value;
-
- @DomName('PresentationAvailability.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('PresentationSession')
-@Experimental() // untriaged
-@Native("PresentationSession")
-class PresentationSession extends EventTarget {
- // To suppress missing implicit constructor warnings.
- factory PresentationSession._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('PresentationSession.messageEvent')
- @DocsEditable()
- @Experimental() // untriaged
- static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
-
- @DomName('PresentationSession.binaryType')
- @DocsEditable()
- @Experimental() // untriaged
- String binaryType;
-
- @DomName('PresentationSession.id')
- @DocsEditable()
- @Experimental() // untriaged
- final String id;
-
- @DomName('PresentationSession.state')
- @DocsEditable()
- @Experimental() // untriaged
- final String state;
-
- @DomName('PresentationSession.close')
- @DocsEditable()
- @Experimental() // untriaged
- void close() native;
-
- @DomName('PresentationSession.send')
- @DocsEditable()
- @Experimental() // untriaged
- void send(data_OR_message) native;
-
- @DomName('PresentationSession.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
@@ -27571,18 +25790,6 @@ class ProgressEvent extends Event {
// To suppress missing implicit constructor warnings.
factory ProgressEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('ProgressEvent.ProgressEvent')
- @DocsEditable()
- factory ProgressEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return ProgressEvent._create_1(type, eventInitDict_1);
- }
- return ProgressEvent._create_2(type);
- }
- static ProgressEvent _create_1(type, eventInitDict) => JS('ProgressEvent', 'new ProgressEvent(#,#)', type, eventInitDict);
- static ProgressEvent _create_2(type) => JS('ProgressEvent', 'new ProgressEvent(#)', type);
-
@DomName('ProgressEvent.lengthComputable')
@DocsEditable()
final bool lengthComputable;
@@ -27601,64 +25808,17 @@ class ProgressEvent extends Event {
@DocsEditable()
-@DomName('PromiseRejectionEvent')
-@Experimental() // untriaged
-@Native("PromiseRejectionEvent")
-class PromiseRejectionEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory PromiseRejectionEvent._() { throw new UnsupportedError("Not supported"); }
-
- @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);
- }
- 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()
- @Experimental() // untriaged
- final Future promise;
-
- @DomName('PromiseRejectionEvent.reason')
- @DocsEditable()
- @Experimental() // untriaged
- final Object 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('PushEvent')
@Experimental() // untriaged
@Native("PushEvent")
-class PushEvent extends ExtendableEvent {
+class PushEvent extends Event {
// To suppress missing implicit constructor warnings.
factory PushEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('PushEvent.PushEvent')
- @DocsEditable()
- factory PushEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return PushEvent._create_1(type, eventInitDict_1);
- }
- return PushEvent._create_2(type);
- }
- static PushEvent _create_1(type, eventInitDict) => JS('PushEvent', 'new PushEvent(#,#)', type, eventInitDict);
- static PushEvent _create_2(type) => JS('PushEvent', 'new PushEvent(#)', type);
-
@DomName('PushEvent.data')
@DocsEditable()
@Experimental() // untriaged
- final PushMessageData data;
+ final String 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
@@ -27673,92 +25833,10 @@ class PushManager extends Interceptor {
// To suppress missing implicit constructor warnings.
factory PushManager._() { throw new UnsupportedError("Not supported"); }
- @DomName('PushManager.getSubscription')
- @DocsEditable()
- @Experimental() // untriaged
- Future getSubscription() native;
-
- @DomName('PushManager.permissionState')
- @DocsEditable()
- @Experimental() // untriaged
- Future permissionState([Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _permissionState_1(options_1);
- }
- return _permissionState_2();
- }
- @JSName('permissionState')
- @DomName('PushManager.permissionState')
- @DocsEditable()
- @Experimental() // untriaged
- Future _permissionState_1(options) native;
- @JSName('permissionState')
- @DomName('PushManager.permissionState')
- @DocsEditable()
- @Experimental() // untriaged
- Future _permissionState_2() native;
-
- @DomName('PushManager.subscribe')
+ @DomName('PushManager.register')
@DocsEditable()
@Experimental() // untriaged
- Future subscribe([Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _subscribe_1(options_1);
- }
- return _subscribe_2();
- }
- @JSName('subscribe')
- @DomName('PushManager.subscribe')
- @DocsEditable()
- @Experimental() // untriaged
- Future _subscribe_1(options) native;
- @JSName('subscribe')
- @DomName('PushManager.subscribe')
- @DocsEditable()
- @Experimental() // untriaged
- Future _subscribe_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('PushMessageData')
-@Experimental() // untriaged
-@Native("PushMessageData")
-class PushMessageData extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory PushMessageData._() { 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
- ByteBuffer arrayBuffer() native;
-
- @DomName('PushMessageData.blob')
- @DocsEditable()
- @Experimental() // untriaged
- Blob blob() native;
-
- @DomName('PushMessageData.json')
- @DocsEditable()
- @Experimental() // untriaged
- Object json() native;
-
- @DomName('PushMessageData.text')
- @DocsEditable()
- @Experimental() // untriaged
- String text() native;
+ Future register(String senderId) 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
@@ -27766,22 +25844,22 @@ class PushMessageData extends Interceptor {
@DocsEditable()
-@DomName('PushSubscription')
+@DomName('PushRegistration')
@Experimental() // untriaged
-@Native("PushSubscription")
-class PushSubscription extends Interceptor {
+@Native("PushRegistration")
+class PushRegistration extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory PushSubscription._() { throw new UnsupportedError("Not supported"); }
+ factory PushRegistration._() { throw new UnsupportedError("Not supported"); }
- @DomName('PushSubscription.endpoint')
+ @DomName('PushRegistration.pushEndpoint')
@DocsEditable()
@Experimental() // untriaged
- final String endpoint;
+ final String pushEndpoint;
- @DomName('PushSubscription.unsubscribe')
+ @DomName('PushRegistration.pushRegistrationId')
@DocsEditable()
@Experimental() // untriaged
- Future unsubscribe() native;
+ final String pushRegistrationId;
}
// 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
@@ -27868,6 +25946,26 @@ class Range extends Interceptor {
@DocsEditable()
static const int END_TO_START = 3;
+ @DomName('Range.NODE_AFTER')
+ @DocsEditable()
+ @Experimental() // nonstandard
+ static const int NODE_AFTER = 1;
+
+ @DomName('Range.NODE_BEFORE')
+ @DocsEditable()
+ @Experimental() // nonstandard
+ static const int NODE_BEFORE = 0;
+
+ @DomName('Range.NODE_BEFORE_AND_AFTER')
+ @DocsEditable()
+ @Experimental() // nonstandard
+ static const int NODE_BEFORE_AND_AFTER = 2;
+
+ @DomName('Range.NODE_INSIDE')
+ @DocsEditable()
+ @Experimental() // nonstandard
+ static const int NODE_INSIDE = 3;
+
@DomName('Range.START_TO_END')
@DocsEditable()
static const int START_TO_END = 1;
@@ -27919,11 +26017,11 @@ class Range extends Interceptor {
@DomName('Range.comparePoint')
@DocsEditable()
- int comparePoint(Node node, int offset) native;
+ int comparePoint(Node refNode, int offset) native;
@DomName('Range.createContextualFragment')
@DocsEditable()
- DocumentFragment createContextualFragment(String fragment) native;
+ DocumentFragment createContextualFragment(String html) native;
@DomName('Range.deleteContents')
@DocsEditable()
@@ -27954,43 +26052,43 @@ class Range extends Interceptor {
@DomName('Range.insertNode')
@DocsEditable()
- void insertNode(Node node) native;
+ void insertNode(Node newNode) native;
@DomName('Range.isPointInRange')
@DocsEditable()
- bool isPointInRange(Node node, int offset) native;
+ bool isPointInRange(Node refNode, int offset) native;
@DomName('Range.selectNode')
@DocsEditable()
- void selectNode(Node node) native;
+ void selectNode(Node refNode) native;
@DomName('Range.selectNodeContents')
@DocsEditable()
- void selectNodeContents(Node node) native;
+ void selectNodeContents(Node refNode) native;
@DomName('Range.setEnd')
@DocsEditable()
- void setEnd(Node node, int offset) native;
+ void setEnd(Node refNode, int offset) native;
@DomName('Range.setEndAfter')
@DocsEditable()
- void setEndAfter(Node node) native;
+ void setEndAfter(Node refNode) native;
@DomName('Range.setEndBefore')
@DocsEditable()
- void setEndBefore(Node node) native;
+ void setEndBefore(Node refNode) native;
@DomName('Range.setStart')
@DocsEditable()
- void setStart(Node node, int offset) native;
+ void setStart(Node refNode, int offset) native;
@DomName('Range.setStartAfter')
@DocsEditable()
- void setStartAfter(Node node) native;
+ void setStartAfter(Node refNode) native;
@DomName('Range.setStartBefore')
@DocsEditable()
- void setStartBefore(Node node) native;
+ void setStartBefore(Node refNode) native;
@DomName('Range.surroundContents')
@DocsEditable()
@@ -28013,62 +26111,6 @@ class Range extends Interceptor {
@DocsEditable()
-@DomName('ReadableByteStream')
-@Experimental() // untriaged
-@Native("ReadableByteStream")
-class ReadableByteStream extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory ReadableByteStream._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('ReadableByteStream.cancel')
- @DocsEditable()
- @Experimental() // untriaged
- Future cancel([Object reason]) native;
-
- @DomName('ReadableByteStream.getReader')
- @DocsEditable()
- @Experimental() // untriaged
- ReadableByteStreamReader 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('ReadableByteStreamReader')
-@Experimental() // untriaged
-@Native("ReadableByteStreamReader")
-class ReadableByteStreamReader extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory ReadableByteStreamReader._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('ReadableByteStreamReader.closed')
- @DocsEditable()
- @Experimental() // untriaged
- final Future closed;
-
- @DomName('ReadableByteStreamReader.cancel')
- @DocsEditable()
- @Experimental() // untriaged
- Future cancel([Object reason]) native;
-
- @DomName('ReadableByteStreamReader.read')
- @DocsEditable()
- @Experimental() // untriaged
- Future read() native;
-
- @DomName('ReadableByteStreamReader.releaseLock')
- @DocsEditable()
- @Experimental() // untriaged
- void releaseLock() 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('ReadableStream')
@Experimental() // untriaged
@Native("ReadableStream")
@@ -28076,48 +26118,30 @@ class ReadableStream extends Interceptor {
// To suppress missing implicit constructor warnings.
factory ReadableStream._() { throw new UnsupportedError("Not supported"); }
- @DomName('ReadableStream.cancel')
+ @DomName('ReadableStream.closed')
@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
-@Native("ReadableStreamReader")
-class ReadableStreamReader extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory ReadableStreamReader._() { throw new UnsupportedError("Not supported"); }
+ final Future closed;
- @DomName('ReadableStreamReader.closed')
+ @DomName('ReadableStream.state')
@DocsEditable()
@Experimental() // untriaged
- final Future closed;
+ final String state;
- @DomName('ReadableStreamReader.cancel')
+ @DomName('ReadableStream.cancel')
@DocsEditable()
@Experimental() // untriaged
- Future cancel([Object reason]) native;
+ Future cancel(Object reason) native;
- @DomName('ReadableStreamReader.read')
+ @DomName('ReadableStream.read')
@DocsEditable()
@Experimental() // untriaged
- Future read() native;
+ Object read() native;
- @DomName('ReadableStreamReader.releaseLock')
+ @DomName('ReadableStream.wait')
@DocsEditable()
@Experimental() // untriaged
- void releaseLock() native;
+ Future wait() 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
@@ -28132,18 +26156,6 @@ class RelatedEvent extends Event {
// To suppress missing implicit constructor warnings.
factory RelatedEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('RelatedEvent.RelatedEvent')
- @DocsEditable()
- factory RelatedEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return RelatedEvent._create_1(type, eventInitDict_1);
- }
- return RelatedEvent._create_2(type);
- }
- static RelatedEvent _create_1(type, eventInitDict) => JS('RelatedEvent', 'new RelatedEvent(#,#)', type, eventInitDict);
- static RelatedEvent _create_2(type) => JS('RelatedEvent', 'new RelatedEvent(#)', type);
-
@DomName('RelatedEvent.relatedTarget')
@DocsEditable()
@Experimental() // untriaged
@@ -28420,14 +26432,6 @@ class RtcDtmfToneChangeEvent extends Event {
// To suppress missing implicit constructor warnings.
factory RtcDtmfToneChangeEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('RTCDTMFToneChangeEvent.RTCDTMFToneChangeEvent')
- @DocsEditable()
- factory RtcDtmfToneChangeEvent(String type, Map eventInitDict) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return RtcDtmfToneChangeEvent._create_1(type, eventInitDict_1);
- }
- static RtcDtmfToneChangeEvent _create_1(type, eventInitDict) => JS('RtcDtmfToneChangeEvent', 'new RTCDTMFToneChangeEvent(#,#)', type, eventInitDict);
-
@DomName('RTCDTMFToneChangeEvent.tone')
@DocsEditable()
final String tone;
@@ -28904,6 +26908,14 @@ class RtcStatsReport extends Interceptor {
@DocsEditable()
final String id;
+ @DomName('RTCStatsReport.local')
+ @DocsEditable()
+ final RtcStatsReport local;
+
+ @DomName('RTCStatsReport.remote')
+ @DocsEditable()
+ final RtcStatsReport remote;
+
@DomName('RTCStatsReport.timestamp')
@DocsEditable()
DateTime get timestamp => convertNativeToDart_DateTime(this._get_timestamp);
@@ -28939,6 +26951,10 @@ class RtcStatsResponse extends Interceptor {
// To suppress missing implicit constructor warnings.
factory RtcStatsResponse._() { throw new UnsupportedError("Not supported"); }
+ @DomName('RTCStatsResponse.__getter__')
+ @DocsEditable()
+ RtcStatsReport __getter__(String name) native;
+
@DomName('RTCStatsResponse.namedItem')
@DocsEditable()
RtcStatsReport namedItem(String name) native;
@@ -29117,113 +27133,6 @@ class ScriptElement extends HtmlElement {
@DocsEditable()
-@DomName('ScrollState')
-@Experimental() // untriaged
-@Native("ScrollState")
-class ScrollState extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory ScrollState._() { throw new UnsupportedError("Not supported"); }
-
- @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);
- }
- 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();
- }
- 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()');
-
- @DomName('ScrollState.deltaGranularity')
- @DocsEditable()
- @Experimental() // untriaged
- final double deltaGranularity;
-
- @DomName('ScrollState.deltaX')
- @DocsEditable()
- @Experimental() // untriaged
- final double deltaX;
-
- @DomName('ScrollState.deltaY')
- @DocsEditable()
- @Experimental() // untriaged
- final double deltaY;
-
- @DomName('ScrollState.fromUserInput')
- @DocsEditable()
- @Experimental() // untriaged
- final bool fromUserInput;
-
- @DomName('ScrollState.inInertialPhase')
- @DocsEditable()
- @Experimental() // untriaged
- final bool inInertialPhase;
-
- @DomName('ScrollState.isBeginning')
- @DocsEditable()
- @Experimental() // untriaged
- final bool isBeginning;
-
- @DomName('ScrollState.isEnding')
- @DocsEditable()
- @Experimental() // untriaged
- final bool isEnding;
-
- @DomName('ScrollState.shouldPropagate')
- @DocsEditable()
- @Experimental() // untriaged
- final bool shouldPropagate;
-
- @DomName('ScrollState.velocityX')
- @DocsEditable()
- @Experimental() // untriaged
- final double velocityX;
-
- @DomName('ScrollState.velocityY')
- @DocsEditable()
- @Experimental() // untriaged
- final double velocityY;
-
- @DomName('ScrollState.consumeDelta')
- @DocsEditable()
- @Experimental() // untriaged
- void consumeDelta(num x, num y) 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('SecurityPolicyViolationEvent')
// https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html#securitypolicyviolationevent-events
@Experimental()
@@ -29232,18 +27141,6 @@ class SecurityPolicyViolationEvent extends Event {
// To suppress missing implicit constructor warnings.
factory SecurityPolicyViolationEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('SecurityPolicyViolationEvent.SecurityPolicyViolationEvent')
- @DocsEditable()
- factory SecurityPolicyViolationEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return SecurityPolicyViolationEvent._create_1(type, eventInitDict_1);
- }
- return SecurityPolicyViolationEvent._create_2(type);
- }
- static SecurityPolicyViolationEvent _create_1(type, eventInitDict) => JS('SecurityPolicyViolationEvent', 'new SecurityPolicyViolationEvent(#,#)', type, eventInitDict);
- static SecurityPolicyViolationEvent _create_2(type) => JS('SecurityPolicyViolationEvent', 'new SecurityPolicyViolationEvent(#)', type);
-
@JSName('blockedURI')
@DomName('SecurityPolicyViolationEvent.blockedURI')
@DocsEditable()
@@ -29373,12 +27270,12 @@ class SelectElement extends HtmlElement {
@DomName('HTMLSelectElement.__setter__')
@DocsEditable()
- void __setter__(int index, OptionElement option) native;
+ void __setter__(int index, OptionElement value) native;
@DomName('HTMLSelectElement.add')
@DocsEditable()
@Experimental() // untriaged
- void add(Object element, Object before) native;
+ void add(HtmlElement element, int before) native;
@DomName('HTMLSelectElement.checkValidity')
@DocsEditable()
@@ -29390,12 +27287,7 @@ class SelectElement extends HtmlElement {
@DomName('HTMLSelectElement.namedItem')
@DocsEditable()
- OptionElement namedItem(String name) native;
-
- @DomName('HTMLSelectElement.reportValidity')
- @DocsEditable()
- @Experimental() // untriaged
- bool reportValidity() native;
+ Element namedItem(String name) native;
@DomName('HTMLSelectElement.setCustomValidity')
@DocsEditable()
@@ -29500,7 +27392,7 @@ class Selection extends Interceptor {
@DomName('Selection.containsNode')
@DocsEditable()
@Experimental() // non-standard
- bool containsNode(Node node, bool allowPartialContainment) native;
+ bool containsNode(Node node, bool allowPartial) native;
@DomName('Selection.deleteFromDocument')
@DocsEditable()
@@ -29548,35 +27440,19 @@ class Selection extends Interceptor {
@DocsEditable()
-@DomName('ServicePort')
+@DomName('ServiceWorkerClient')
@Experimental() // untriaged
-@Native("ServicePort")
-class ServicePort extends Interceptor {
+@Native("ServiceWorkerClient")
+class ServiceWorkerClient extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory ServicePort._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('ServicePort.data')
- @DocsEditable()
- @Experimental() // untriaged
- final Object data;
+ factory ServiceWorkerClient._() { throw new UnsupportedError("Not supported"); }
- @DomName('ServicePort.name')
+ @DomName('ServiceWorkerClient.id')
@DocsEditable()
@Experimental() // untriaged
- final String name;
-
- @JSName('targetURL')
- @DomName('ServicePort.targetURL')
- @DocsEditable()
- @Experimental() // untriaged
- final String targetUrl;
-
- @DomName('ServicePort.close')
- @DocsEditable()
- @Experimental() // untriaged
- void close() native;
+ final int id;
- @DomName('ServicePort.postMessage')
+ @DomName('ServiceWorkerClient.postMessage')
@DocsEditable()
@Experimental() // untriaged
void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) {
@@ -29590,12 +27466,12 @@ class ServicePort extends Interceptor {
return;
}
@JSName('postMessage')
- @DomName('ServicePort.postMessage')
+ @DomName('ServiceWorkerClient.postMessage')
@DocsEditable()
@Experimental() // untriaged
void _postMessage_1(message, List<MessagePort> transfer) native;
@JSName('postMessage')
- @DomName('ServicePort.postMessage')
+ @DomName('ServiceWorkerClient.postMessage')
@DocsEditable()
@Experimental() // untriaged
void _postMessage_2(message) native;
@@ -29606,118 +27482,33 @@ class ServicePort extends Interceptor {
@DocsEditable()
-@DomName('ServicePortCollection')
+@DomName('ServiceWorkerClients')
@Experimental() // untriaged
-@Native("ServicePortCollection")
-class ServicePortCollection extends EventTarget {
+@Native("ServiceWorkerClients")
+class ServiceWorkerClients extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory ServicePortCollection._() { throw new UnsupportedError("Not supported"); }
+ factory ServiceWorkerClients._() { throw new UnsupportedError("Not supported"); }
- @DomName('ServicePortCollection.messageEvent')
+ @DomName('ServiceWorkerClients.getAll')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
-
- @DomName('ServicePortCollection.connect')
- @DocsEditable()
- @Experimental() // untriaged
- Future connect(String url, [Map options]) {
+ Future getAll([Map options]) {
if (options != null) {
var options_1 = convertDartToNative_Dictionary(options);
- return _connect_1(url, options_1);
+ return _getAll_1(options_1);
}
- return _connect_2(url);
+ return _getAll_2();
}
- @JSName('connect')
- @DomName('ServicePortCollection.connect')
- @DocsEditable()
- @Experimental() // untriaged
- Future _connect_1(url, options) native;
- @JSName('connect')
- @DomName('ServicePortCollection.connect')
+ @JSName('getAll')
+ @DomName('ServiceWorkerClients.getAll')
@DocsEditable()
@Experimental() // untriaged
- Future _connect_2(url) native;
-
- @DomName('ServicePortCollection.match')
+ Future _getAll_1(options) native;
+ @JSName('getAll')
+ @DomName('ServiceWorkerClients.getAll')
@DocsEditable()
@Experimental() // untriaged
- Future match(Map options) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _match_1(options_1);
- }
- @JSName('match')
- @DomName('ServicePortCollection.match')
- @DocsEditable()
- @Experimental() // untriaged
- Future _match_1(options) native;
-
- @DomName('ServicePortCollection.matchAll')
- @DocsEditable()
- @Experimental() // untriaged
- Future matchAll([Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _matchAll_1(options_1);
- }
- return _matchAll_2();
- }
- @JSName('matchAll')
- @DomName('ServicePortCollection.matchAll')
- @DocsEditable()
- @Experimental() // untriaged
- Future _matchAll_1(options) native;
- @JSName('matchAll')
- @DomName('ServicePortCollection.matchAll')
- @DocsEditable()
- @Experimental() // untriaged
- Future _matchAll_2() native;
-
- @DomName('ServicePortCollection.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.
-
-
-@DocsEditable()
-@DomName('ServicePortConnectEvent')
-@Experimental() // untriaged
-@Native("ServicePortConnectEvent")
-class ServicePortConnectEvent extends ExtendableEvent {
- // To suppress missing implicit constructor warnings.
- factory ServicePortConnectEvent._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('ServicePortConnectEvent.ServicePortConnectEvent')
- @DocsEditable()
- factory ServicePortConnectEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return ServicePortConnectEvent._create_1(type, eventInitDict_1);
- }
- return ServicePortConnectEvent._create_2(type);
- }
- static ServicePortConnectEvent _create_1(type, eventInitDict) => JS('ServicePortConnectEvent', 'new ServicePortConnectEvent(#,#)', type, eventInitDict);
- static ServicePortConnectEvent _create_2(type) => JS('ServicePortConnectEvent', 'new ServicePortConnectEvent(#)', type);
-
- @DomName('ServicePortConnectEvent.origin')
- @DocsEditable()
- @Experimental() // untriaged
- final String origin;
-
- @JSName('targetURL')
- @DomName('ServicePortConnectEvent.targetURL')
- @DocsEditable()
- @Experimental() // untriaged
- final String targetUrl;
-
- @DomName('ServicePortConnectEvent.respondWith')
- @DocsEditable()
- @Experimental() // untriaged
- Future respondWith(Future response) native;
+ Future _getAll_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
@@ -29728,15 +27519,10 @@ class ServicePortConnectEvent extends ExtendableEvent {
@DomName('ServiceWorkerContainer')
@Experimental() // untriaged
@Native("ServiceWorkerContainer")
-class ServiceWorkerContainer extends EventTarget {
+class ServiceWorkerContainer extends Interceptor {
// To suppress missing implicit constructor warnings.
factory ServiceWorkerContainer._() { throw new UnsupportedError("Not supported"); }
- @DomName('ServiceWorkerContainer.messageEvent')
- @DocsEditable()
- @Experimental() // untriaged
- static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
-
@DomName('ServiceWorkerContainer.controller')
@DocsEditable()
@Experimental() // untriaged
@@ -29752,11 +27538,6 @@ class ServiceWorkerContainer extends EventTarget {
@Experimental() // untriaged
Future getRegistration([String documentURL]) native;
- @DomName('ServiceWorkerContainer.getRegistrations')
- @DocsEditable()
- @Experimental() // untriaged
- Future getRegistrations() native;
-
@DomName('ServiceWorkerContainer.register')
@DocsEditable()
@Experimental() // untriaged
@@ -29777,11 +27558,6 @@ class ServiceWorkerContainer extends EventTarget {
@DocsEditable()
@Experimental() // untriaged
Future _register_2(url) native;
-
- @DomName('ServiceWorkerContainer.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
@@ -29801,80 +27577,66 @@ class ServiceWorkerGlobalScope extends WorkerGlobalScope {
@Experimental() // untriaged
static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
- @DomName('ServiceWorkerGlobalScope.clients')
- @DocsEditable()
- @Experimental() // untriaged
- final Clients clients;
-
- @DomName('ServiceWorkerGlobalScope.ports')
+ @DomName('ServiceWorkerGlobalScope.caches')
@DocsEditable()
@Experimental() // untriaged
- final StashedPortCollection ports;
+ final CacheStorage caches;
- @DomName('ServiceWorkerGlobalScope.registration')
+ @DomName('ServiceWorkerGlobalScope.clients')
@DocsEditable()
@Experimental() // untriaged
- final ServiceWorkerRegistration registration;
+ final ServiceWorkerClients clients;
- @DomName('ServiceWorkerGlobalScope.skipWaiting')
+ @DomName('ServiceWorkerGlobalScope.scope')
@DocsEditable()
@Experimental() // untriaged
- Future skipWaiting() native;
+ final String scope;
- @DomName('ServiceWorkerGlobalScope.onmessage')
+ @DomName('ServiceWorkerGlobalScope.fetch')
@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.
-
-
-@DocsEditable()
-@DomName('ServiceWorkerMessageEvent')
-@Experimental() // untriaged
-@Native("ServiceWorkerMessageEvent")
-class ServiceWorkerMessageEvent extends Event {
- // To suppress missing implicit constructor warnings.
- factory ServiceWorkerMessageEvent._() { 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);
+ Future _fetch(request, [Map requestInitDict]) {
+ if ((request is String || request == null) && requestInitDict == null) {
+ return _fetch_1(request);
+ }
+ if (requestInitDict != null && (request is String || request == null)) {
+ var requestInitDict_1 = convertDartToNative_Dictionary(requestInitDict);
+ return _fetch_2(request, requestInitDict_1);
+ }
+ if ((request is _Request || request == null) && requestInitDict == null) {
+ return _fetch_3(request);
}
- return ServiceWorkerMessageEvent._create_2(type);
+ if (requestInitDict != null && (request is _Request || request == null)) {
+ var requestInitDict_1 = convertDartToNative_Dictionary(requestInitDict);
+ return _fetch_4(request, requestInitDict_1);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
}
- static ServiceWorkerMessageEvent _create_1(type, eventInitDict) => JS('ServiceWorkerMessageEvent', 'new ServiceWorkerMessageEvent(#,#)', type, eventInitDict);
- static ServiceWorkerMessageEvent _create_2(type) => JS('ServiceWorkerMessageEvent', 'new ServiceWorkerMessageEvent(#)', type);
-
- @DomName('ServiceWorkerMessageEvent.data')
+ @JSName('fetch')
+ @DomName('ServiceWorkerGlobalScope.fetch')
@DocsEditable()
@Experimental() // untriaged
- final Object data;
-
- @DomName('ServiceWorkerMessageEvent.lastEventId')
+ Future _fetch_1(String request) native;
+ @JSName('fetch')
+ @DomName('ServiceWorkerGlobalScope.fetch')
@DocsEditable()
@Experimental() // untriaged
- final String lastEventId;
-
- @DomName('ServiceWorkerMessageEvent.origin')
+ Future _fetch_2(String request, requestInitDict) native;
+ @JSName('fetch')
+ @DomName('ServiceWorkerGlobalScope.fetch')
@DocsEditable()
@Experimental() // untriaged
- final String origin;
-
- @DomName('ServiceWorkerMessageEvent.ports')
+ Future _fetch_3(_Request request) native;
+ @JSName('fetch')
+ @DomName('ServiceWorkerGlobalScope.fetch')
@DocsEditable()
@Experimental() // untriaged
- final List<MessagePort> ports;
+ Future _fetch_4(_Request request, requestInitDict) native;
- @DomName('ServiceWorkerMessageEvent.source')
+ @DomName('ServiceWorkerGlobalScope.onmessage')
@DocsEditable()
@Experimental() // untriaged
- final Object source;
+ 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
@@ -29894,92 +27656,25 @@ class ServiceWorkerRegistration extends EventTarget {
@Experimental() // untriaged
final _ServiceWorker active;
- @DomName('ServiceWorkerRegistration.geofencing')
- @DocsEditable()
- @Experimental() // untriaged
- final Geofencing geofencing;
-
@DomName('ServiceWorkerRegistration.installing')
@DocsEditable()
@Experimental() // untriaged
final _ServiceWorker installing;
- @DomName('ServiceWorkerRegistration.periodicSync')
- @DocsEditable()
- @Experimental() // untriaged
- final PeriodicSyncManager periodicSync;
-
- @DomName('ServiceWorkerRegistration.pushManager')
- @DocsEditable()
- @Experimental() // untriaged
- final PushManager pushManager;
-
@DomName('ServiceWorkerRegistration.scope')
@DocsEditable()
@Experimental() // untriaged
final String scope;
- @DomName('ServiceWorkerRegistration.sync')
- @DocsEditable()
- @Experimental() // untriaged
- final SyncManager sync;
-
@DomName('ServiceWorkerRegistration.waiting')
@DocsEditable()
@Experimental() // untriaged
final _ServiceWorker waiting;
- @DomName('ServiceWorkerRegistration.getNotifications')
- @DocsEditable()
- @Experimental() // untriaged
- Future getNotifications([Map filter]) {
- if (filter != null) {
- var filter_1 = convertDartToNative_Dictionary(filter);
- return _getNotifications_1(filter_1);
- }
- return _getNotifications_2();
- }
- @JSName('getNotifications')
- @DomName('ServiceWorkerRegistration.getNotifications')
- @DocsEditable()
- @Experimental() // untriaged
- Future _getNotifications_1(filter) native;
- @JSName('getNotifications')
- @DomName('ServiceWorkerRegistration.getNotifications')
- @DocsEditable()
- @Experimental() // untriaged
- Future _getNotifications_2() native;
-
- @DomName('ServiceWorkerRegistration.showNotification')
- @DocsEditable()
- @Experimental() // untriaged
- Future showNotification(String title, [Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _showNotification_1(title, options_1);
- }
- return _showNotification_2(title);
- }
- @JSName('showNotification')
- @DomName('ServiceWorkerRegistration.showNotification')
- @DocsEditable()
- @Experimental() // untriaged
- Future _showNotification_1(title, options) native;
- @JSName('showNotification')
- @DomName('ServiceWorkerRegistration.showNotification')
- @DocsEditable()
- @Experimental() // untriaged
- Future _showNotification_2(title) native;
-
@DomName('ServiceWorkerRegistration.unregister')
@DocsEditable()
@Experimental() // untriaged
Future unregister() native;
-
- @DomName('ServiceWorkerRegistration.update')
- @DocsEditable()
- @Experimental() // untriaged
- void 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
@@ -30036,11 +27731,6 @@ class ShadowRoot extends DocumentFragment {
@DocsEditable()
final Element activeElement;
- @DomName('ShadowRoot.delegatesFocus')
- @DocsEditable()
- @Experimental() // untriaged
- final bool delegatesFocus;
-
@DomName('ShadowRoot.host')
@DocsEditable()
@Experimental() // untriaged
@@ -30072,10 +27762,17 @@ class ShadowRoot extends DocumentFragment {
@DocsEditable()
Element elementFromPoint(int x, int y) native;
- @DomName('ShadowRoot.elementsFromPoint')
+ @DomName('ShadowRoot.getElementsByClassName')
@DocsEditable()
- @Experimental() // untriaged
- List<Element> elementsFromPoint(int x, int y) native;
+ @Creates('NodeList|HtmlCollection')
+ @Returns('NodeList|HtmlCollection')
+ List<Node> getElementsByClassName(String className) native;
+
+ @DomName('ShadowRoot.getElementsByTagName')
+ @DocsEditable()
+ @Creates('NodeList|HtmlCollection')
+ @Returns('NodeList|HtmlCollection')
+ List<Node> getElementsByTagName(String tagName) native;
@DomName('ShadowRoot.getSelection')
@DocsEditable()
@@ -30126,24 +27823,6 @@ Please remove them from your code.
@DocsEditable()
-@DomName('SharedArrayBuffer')
-@Experimental() // untriaged
-@Native("SharedArrayBuffer")
-class SharedArrayBuffer extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory SharedArrayBuffer._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('SharedArrayBuffer.byteLength')
- @DocsEditable()
- @Experimental() // untriaged
- final int byteLength;
-}
-// 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('SharedWorker')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shared-workers-and-the-sharedworker-interface
@Experimental()
@@ -30254,11 +27933,6 @@ class SourceBuffer extends EventTarget {
@DocsEditable()
num timestampOffset;
- @DomName('SourceBuffer.trackDefaults')
- @DocsEditable()
- @Experimental() // untriaged
- TrackDefaultList trackDefaults;
-
@DomName('SourceBuffer.updating')
@DocsEditable()
@Experimental() // untriaged
@@ -30377,6 +28051,11 @@ class SourceElement extends HtmlElement {
*/
SourceElement.created() : super.created();
+ @DomName('HTMLSourceElement.integrity')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String integrity;
+
@DomName('HTMLSourceElement.media')
@DocsEditable()
String media;
@@ -30691,11 +28370,6 @@ class SpeechRecognition extends EventTarget {
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.SpeechRecognition || window.webkitSpeechRecognition)');
- @DomName('SpeechRecognition.audioTrack')
- @DocsEditable()
- @Experimental() // untriaged
- MediaStreamTrack audioTrack;
-
@DomName('SpeechRecognition.continuous')
@DocsEditable()
bool continuous;
@@ -30716,12 +28390,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;
@@ -30832,18 +28500,6 @@ class SpeechRecognitionError extends Event {
// To suppress missing implicit constructor warnings.
factory SpeechRecognitionError._() { throw new UnsupportedError("Not supported"); }
- @DomName('SpeechRecognitionError.SpeechRecognitionError')
- @DocsEditable()
- factory SpeechRecognitionError(String type, [Map initDict]) {
- if (initDict != null) {
- var initDict_1 = convertDartToNative_Dictionary(initDict);
- return SpeechRecognitionError._create_1(type, initDict_1);
- }
- return SpeechRecognitionError._create_2(type);
- }
- static SpeechRecognitionError _create_1(type, initDict) => JS('SpeechRecognitionError', 'new SpeechRecognitionError(#,#)', type, initDict);
- static SpeechRecognitionError _create_2(type) => JS('SpeechRecognitionError', 'new SpeechRecognitionError(#)', type);
-
@DomName('SpeechRecognitionError.error')
@DocsEditable()
final String error;
@@ -30867,18 +28523,6 @@ class SpeechRecognitionEvent extends Event {
// To suppress missing implicit constructor warnings.
factory SpeechRecognitionEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('SpeechRecognitionEvent.SpeechRecognitionEvent')
- @DocsEditable()
- factory SpeechRecognitionEvent(String type, [Map initDict]) {
- if (initDict != null) {
- var initDict_1 = convertDartToNative_Dictionary(initDict);
- return SpeechRecognitionEvent._create_1(type, initDict_1);
- }
- return SpeechRecognitionEvent._create_2(type);
- }
- static SpeechRecognitionEvent _create_1(type, initDict) => JS('SpeechRecognitionEvent', 'new SpeechRecognitionEvent(#,#)', type, initDict);
- static SpeechRecognitionEvent _create_2(type) => JS('SpeechRecognitionEvent', 'new SpeechRecognitionEvent(#)', type);
-
@DomName('SpeechRecognitionEvent.emma')
@DocsEditable()
final Document emma;
@@ -30995,11 +28639,6 @@ class SpeechSynthesisEvent extends Event {
@DomName('SpeechSynthesisEvent.name')
@DocsEditable()
final String name;
-
- @DomName('SpeechSynthesisEvent.utterance')
- @DocsEditable()
- @Experimental() // untriaged
- final SpeechSynthesisUtterance utterance;
}
// 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
@@ -31196,52 +28835,6 @@ class SpeechSynthesisVoice extends Interceptor {
// 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.
@@ -31402,18 +28995,8 @@ class StorageEvent extends Event {
newValue, url, storageArea);
return e;
}
-
- @DomName('StorageEvent.StorageEvent')
- @DocsEditable()
- factory StorageEvent._(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return StorageEvent._create_1(type, eventInitDict_1);
- }
- return StorageEvent._create_2(type);
- }
- static StorageEvent _create_1(type, eventInitDict) => JS('StorageEvent', 'new StorageEvent(#,#)', type, eventInitDict);
- static StorageEvent _create_2(type) => JS('StorageEvent', 'new StorageEvent(#)', type);
+ // To suppress missing implicit constructor warnings.
+ factory StorageEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('StorageEvent.key')
@DocsEditable()
@@ -31633,104 +29216,6 @@ class StyleSheet extends Interceptor {
@DocsEditable()
-@DomName('SyncEvent')
-@Experimental() // untriaged
-@Native("SyncEvent")
-class SyncEvent extends ExtendableEvent {
- // To suppress missing implicit constructor warnings.
- factory SyncEvent._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('SyncEvent.SyncEvent')
- @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);
-
- @DomName('SyncEvent.registration')
- @DocsEditable()
- @Experimental() // untriaged
- final SyncRegistration 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('SyncManager')
-@Experimental() // untriaged
-@Native("SyncManager")
-class SyncManager extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory SyncManager._() { 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')
- @DocsEditable()
- @Experimental() // untriaged
- Future register([Map options]) {
- if (options != null) {
- var options_1 = convertDartToNative_Dictionary(options);
- return _register_1(options_1);
- }
- return _register_2();
- }
- @JSName('register')
- @DomName('SyncManager.register')
- @DocsEditable()
- @Experimental() // untriaged
- Future _register_1(options) native;
- @JSName('register')
- @DomName('SyncManager.register')
- @DocsEditable()
- @Experimental() // untriaged
- Future _register_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('SyncRegistration')
-@Experimental() // untriaged
-@Native("SyncRegistration")
-class SyncRegistration extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory SyncRegistration._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('SyncRegistration.tag')
- @DocsEditable()
- @Experimental() // untriaged
- final String tag;
-
- @DomName('SyncRegistration.unregister')
- @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('HTMLTableCaptionElement')
@Native("HTMLTableCaptionElement")
class TableCaptionElement extends HtmlElement {
@@ -32176,11 +29661,6 @@ class TextAreaElement extends HtmlElement {
*/
TextAreaElement.created() : super.created();
- @DomName('HTMLTextAreaElement.autocapitalize')
- @DocsEditable()
- @Experimental() // untriaged
- String autocapitalize;
-
@DomName('HTMLTextAreaElement.autofocus')
@DocsEditable()
bool autofocus;
@@ -32223,11 +29703,6 @@ class TextAreaElement extends HtmlElement {
@DocsEditable()
int maxLength;
- @DomName('HTMLTextAreaElement.minLength')
- @DocsEditable()
- @Experimental() // untriaged
- int minLength;
-
@DomName('HTMLTextAreaElement.name')
@DocsEditable()
String name;
@@ -32292,11 +29767,6 @@ class TextAreaElement extends HtmlElement {
@DocsEditable()
bool checkValidity() native;
- @DomName('HTMLTextAreaElement.reportValidity')
- @DocsEditable()
- @Experimental() // untriaged
- bool reportValidity() native;
-
@DomName('HTMLTextAreaElement.select')
@DocsEditable()
void select() native;
@@ -32770,6 +30240,69 @@ typedef void TimeoutHandler();
@DocsEditable()
+@DomName('Timing')
+@Experimental() // untriaged
+@Native("Timing")
+class Timing extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory Timing._() { throw new UnsupportedError("Not supported"); }
+
+ @DomName('Timing.delay')
+ @DocsEditable()
+ @Experimental() // untriaged
+ num delay;
+
+ @DomName('Timing.direction')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String direction;
+
+ @DomName('Timing.easing')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String easing;
+
+ @DomName('Timing.endDelay')
+ @DocsEditable()
+ @Experimental() // untriaged
+ num endDelay;
+
+ @DomName('Timing.fill')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String fill;
+
+ @DomName('Timing.iterationStart')
+ @DocsEditable()
+ @Experimental() // untriaged
+ num iterationStart;
+
+ @DomName('Timing.iterations')
+ @DocsEditable()
+ @Experimental() // untriaged
+ num iterations;
+
+ @DomName('Timing.playbackRate')
+ @DocsEditable()
+ @Experimental() // untriaged
+ num playbackRate;
+
+ @DomName('Timing.__getter__')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Object __getter__(String name) native;
+
+ @DomName('Timing.__setter__')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void __setter__(String name, num duration) 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('HTMLTitleElement')
@Native("HTMLTitleElement")
class TitleElement extends HtmlElement {
@@ -32841,11 +30374,6 @@ class Touch extends Interceptor {
@Experimental() // untriaged
final double _radiusY;
- @DomName('Touch.rotationAngle')
- @DocsEditable()
- @Experimental() // untriaged
- final double rotationAngle;
-
@JSName('screenX')
@DomName('Touch.screenX')
@DocsEditable()
@@ -32866,6 +30394,14 @@ class Touch extends Interceptor {
@Returns('Element|Document')
final dynamic _get_target;
+ @JSName('webkitRotationAngle')
+ @DomName('Touch.webkitRotationAngle')
+ @DocsEditable()
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental()
+ final double rotationAngle;
+
// As of Chrome 37, these all changed from long to double. This code
// preserves backwards compatability for the time being.
@@ -33057,91 +30593,6 @@ class TouchList extends Interceptor with ListMixin<Touch>, ImmutableListMixin<To
@DocsEditable()
-@DomName('TrackDefault')
-@Experimental() // untriaged
-@Native("TrackDefault")
-class TrackDefault extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory TrackDefault._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('TrackDefault.TrackDefault')
- @DocsEditable()
- factory TrackDefault(String type, String language, String label, List<String> kinds, [String byteStreamTrackID]) {
- if (byteStreamTrackID != null) {
- List kinds_1 = convertDartToNative_StringArray(kinds);
- return TrackDefault._create_1(type, language, label, kinds_1, byteStreamTrackID);
- }
- List kinds_1 = convertDartToNative_StringArray(kinds);
- return TrackDefault._create_2(type, language, label, kinds_1);
- }
- static TrackDefault _create_1(type, language, label, kinds, byteStreamTrackID) => JS('TrackDefault', 'new TrackDefault(#,#,#,#,#)', type, language, label, kinds, byteStreamTrackID);
- static TrackDefault _create_2(type, language, label, kinds) => JS('TrackDefault', 'new TrackDefault(#,#,#,#)', type, language, label, kinds);
-
- @DomName('TrackDefault.byteStreamTrackID')
- @DocsEditable()
- @Experimental() // untriaged
- final String byteStreamTrackID;
-
- @DomName('TrackDefault.kinds')
- @DocsEditable()
- @Experimental() // untriaged
- final List<String> kinds;
-
- @DomName('TrackDefault.label')
- @DocsEditable()
- @Experimental() // untriaged
- final String label;
-
- @DomName('TrackDefault.language')
- @DocsEditable()
- @Experimental() // untriaged
- final String language;
-
- @DomName('TrackDefault.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('TrackDefaultList')
-@Experimental() // untriaged
-@Native("TrackDefaultList")
-class TrackDefaultList extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory TrackDefaultList._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('TrackDefaultList.TrackDefaultList')
- @DocsEditable()
- factory TrackDefaultList([List<TrackDefault> trackDefaults]) {
- if (trackDefaults != null) {
- return TrackDefaultList._create_1(trackDefaults);
- }
- return TrackDefaultList._create_2();
- }
- static TrackDefaultList _create_1(trackDefaults) => JS('TrackDefaultList', 'new TrackDefaultList(#)', trackDefaults);
- static TrackDefaultList _create_2() => JS('TrackDefaultList', 'new TrackDefaultList()');
-
- @DomName('TrackDefaultList.length')
- @DocsEditable()
- @Experimental() // untriaged
- final int length;
-
- @DomName('TrackDefaultList.item')
- @DocsEditable()
- @Experimental() // untriaged
- TrackDefault item(int index) 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('HTMLTrackElement')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.IE, '10')
@@ -33187,6 +30638,11 @@ class TrackElement extends HtmlElement {
@DocsEditable()
bool defaultValue;
+ @DomName('HTMLTrackElement.integrity')
+ @DocsEditable()
+ @Experimental() // untriaged
+ String integrity;
+
@DomName('HTMLTrackElement.kind')
@DocsEditable()
String kind;
@@ -33224,18 +30680,6 @@ class TrackEvent extends Event {
// To suppress missing implicit constructor warnings.
factory TrackEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('TrackEvent.TrackEvent')
- @DocsEditable()
- factory TrackEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return TrackEvent._create_1(type, eventInitDict_1);
- }
- return TrackEvent._create_2(type);
- }
- static TrackEvent _create_1(type, eventInitDict) => JS('TrackEvent', 'new TrackEvent(#,#)', type, eventInitDict);
- static TrackEvent _create_2(type) => JS('TrackEvent', 'new TrackEvent(#)', type);
-
@DomName('TrackEvent.track')
@DocsEditable()
@Creates('Null')
@@ -33253,18 +30697,6 @@ class TransitionEvent extends Event {
// To suppress missing implicit constructor warnings.
factory TransitionEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('TransitionEvent.TransitionEvent')
- @DocsEditable()
- factory TransitionEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return TransitionEvent._create_1(type, eventInitDict_1);
- }
- return TransitionEvent._create_2(type);
- }
- static TransitionEvent _create_1(type, eventInitDict) => JS('TransitionEvent', 'new TransitionEvent(#,#)', type, eventInitDict);
- static TransitionEvent _create_2(type) => JS('TransitionEvent', 'new TransitionEvent(#)', type);
-
@DomName('TransitionEvent.elapsedTime')
@DocsEditable()
final double elapsedTime;
@@ -33363,18 +30795,8 @@ class UIEvent extends Event {
e._initUIEvent(type, canBubble, cancelable, view, detail);
return e;
}
-
- @DomName('UIEvent.UIEvent')
- @DocsEditable()
- factory UIEvent._(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return UIEvent._create_1(type, eventInitDict_1);
- }
- return UIEvent._create_2(type);
- }
- static UIEvent _create_1(type, eventInitDict) => JS('UIEvent', 'new UIEvent(#,#)', type, eventInitDict);
- static UIEvent _create_2(type) => JS('UIEvent', 'new UIEvent(#)', type);
+ // To suppress missing implicit constructor warnings.
+ factory UIEvent._() { throw new UnsupportedError("Not supported"); }
@JSName('charCode')
@DomName('UIEvent.charCode')
@@ -33392,10 +30814,33 @@ class UIEvent extends Event {
@Unstable()
final int _keyCode;
- @DomName('UIEvent.sourceDevice')
+ @JSName('layerX')
+ @DomName('UIEvent.layerX')
@DocsEditable()
- @Experimental() // untriaged
- final InputDevice sourceDevice;
+ // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-mouseevents
+ @Experimental() // nonstandard
+ final int _layerX;
+
+ @JSName('layerY')
+ @DomName('UIEvent.layerY')
+ @DocsEditable()
+ // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-mouseevents
+ @Experimental() // nonstandard
+ final int _layerY;
+
+ @JSName('pageX')
+ @DomName('UIEvent.pageX')
+ @DocsEditable()
+ // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-mouseevents
+ @Experimental() // nonstandard
+ final int _pageX;
+
+ @JSName('pageY')
+ @DomName('UIEvent.pageY')
+ @DocsEditable()
+ // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-mouseevents
+ @Experimental() // nonstandard
+ final int _pageY;
@DomName('UIEvent.view')
@DocsEditable()
@@ -33415,7 +30860,7 @@ class UIEvent extends Event {
@JSName('initUIEvent')
@DomName('UIEvent.initUIEvent')
@DocsEditable()
- void _initUIEvent(String type, bool bubbles, bool cancelable, Window view, int detail) native;
+ void _initUIEvent(String type, bool canBubble, bool cancelable, Window view, int detail) native;
@DomName('UIEvent.layerX')
@@ -33632,170 +31077,6 @@ abstract class UrlUtilsReadOnly extends Interceptor {
@DocsEditable()
-@DomName('VRDevice')
-@Experimental() // untriaged
-@Native("VRDevice")
-class VRDevice extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory VRDevice._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('VRDevice.deviceId')
- @DocsEditable()
- @Experimental() // untriaged
- final String deviceId;
-
- @DomName('VRDevice.deviceName')
- @DocsEditable()
- @Experimental() // untriaged
- final String deviceName;
-
- @DomName('VRDevice.hardwareUnitId')
- @DocsEditable()
- @Experimental() // untriaged
- final String hardwareUnitId;
-}
-// 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('VREyeParameters')
-@Experimental() // untriaged
-@Native("VREyeParameters")
-class VREyeParameters extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory VREyeParameters._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('VREyeParameters.currentFieldOfView')
- @DocsEditable()
- @Experimental() // untriaged
- final VRFieldOfView currentFieldOfView;
-
- @DomName('VREyeParameters.eyeTranslation')
- @DocsEditable()
- @Experimental() // untriaged
- final DomPoint eyeTranslation;
-
- @DomName('VREyeParameters.maximumFieldOfView')
- @DocsEditable()
- @Experimental() // untriaged
- final VRFieldOfView maximumFieldOfView;
-
- @DomName('VREyeParameters.minimumFieldOfView')
- @DocsEditable()
- @Experimental() // untriaged
- final VRFieldOfView minimumFieldOfView;
-
- @DomName('VREyeParameters.recommendedFieldOfView')
- @DocsEditable()
- @Experimental() // untriaged
- final VRFieldOfView recommendedFieldOfView;
-
- @DomName('VREyeParameters.renderRect')
- @DocsEditable()
- @Experimental() // untriaged
- final _DomRect renderRect;
-}
-// 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('VRFieldOfView')
-@Experimental() // untriaged
-@Native("VRFieldOfView")
-class VRFieldOfView extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory VRFieldOfView._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('VRFieldOfView.VRFieldOfView')
- @DocsEditable()
- factory VRFieldOfView([Map fov]) {
- if (fov != null) {
- var fov_1 = convertDartToNative_Dictionary(fov);
- return VRFieldOfView._create_1(fov_1);
- }
- return VRFieldOfView._create_2();
- }
- static VRFieldOfView _create_1(fov) => JS('VRFieldOfView', 'new VRFieldOfView(#)', fov);
- static VRFieldOfView _create_2() => JS('VRFieldOfView', 'new VRFieldOfView()');
-
- @DomName('VRFieldOfView.downDegrees')
- @DocsEditable()
- @Experimental() // untriaged
- num downDegrees;
-
- @DomName('VRFieldOfView.leftDegrees')
- @DocsEditable()
- @Experimental() // untriaged
- num leftDegrees;
-
- @DomName('VRFieldOfView.rightDegrees')
- @DocsEditable()
- @Experimental() // untriaged
- num rightDegrees;
-
- @DomName('VRFieldOfView.upDegrees')
- @DocsEditable()
- @Experimental() // untriaged
- num upDegrees;
-}
-// 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('VRPositionState')
-@Experimental() // untriaged
-@Native("VRPositionState")
-class VRPositionState extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory VRPositionState._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('VRPositionState.angularAcceleration')
- @DocsEditable()
- @Experimental() // untriaged
- final DomPoint angularAcceleration;
-
- @DomName('VRPositionState.angularVelocity')
- @DocsEditable()
- @Experimental() // untriaged
- final DomPoint angularVelocity;
-
- @DomName('VRPositionState.linearAcceleration')
- @DocsEditable()
- @Experimental() // untriaged
- final DomPoint linearAcceleration;
-
- @DomName('VRPositionState.linearVelocity')
- @DocsEditable()
- @Experimental() // untriaged
- final DomPoint linearVelocity;
-
- @DomName('VRPositionState.orientation')
- @DocsEditable()
- @Experimental() // untriaged
- final DomPoint orientation;
-
- @DomName('VRPositionState.position')
- @DocsEditable()
- @Experimental() // untriaged
- final DomPoint position;
-
- @DomName('VRPositionState.timeStamp')
- @DocsEditable()
- @Experimental() // untriaged
- final double timeStamp;
-}
-// 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('ValidityState')
@Native("ValidityState")
class ValidityState extends Interceptor {
@@ -33830,11 +31111,6 @@ class ValidityState extends Interceptor {
@DocsEditable()
final bool tooLong;
- @DomName('ValidityState.tooShort')
- @DocsEditable()
- @Experimental() // untriaged
- final bool tooShort;
-
@DomName('ValidityState.typeMismatch')
@DocsEditable()
final bool typeMismatch;
@@ -34081,12 +31357,12 @@ class VttCue extends TextTrackCue {
@DomName('VTTCue.line')
@DocsEditable()
@Experimental() // untriaged
- Object line;
+ int line;
@DomName('VTTCue.position')
@DocsEditable()
@Experimental() // untriaged
- Object position;
+ int position;
@DomName('VTTCue.regionId')
@DocsEditable()
@@ -34096,7 +31372,7 @@ class VttCue extends TextTrackCue {
@DomName('VTTCue.size')
@DocsEditable()
@Experimental() // untriaged
- num size;
+ int size;
@DomName('VTTCue.snapToLines')
@DocsEditable()
@@ -34305,14 +31581,22 @@ class WebSocket extends EventTarget {
@DomName('WebSocket.WebSocket')
@DocsEditable()
- factory WebSocket(String url, [Object protocols]) {
- if (protocols != null) {
- return WebSocket._create_1(url, protocols);
+ factory WebSocket(String url, [protocol_OR_protocols]) {
+ if ((url is String || url == null) && protocol_OR_protocols == null) {
+ return WebSocket._create_1(url);
}
- return WebSocket._create_2(url);
+ if ((protocol_OR_protocols is String || protocol_OR_protocols == null) && (url is String || url == null)) {
+ return WebSocket._create_2(url, protocol_OR_protocols);
+ }
+ if ((protocol_OR_protocols is List<String> || protocol_OR_protocols == null) && (url is String || url == null)) {
+ List protocols_1 = convertDartToNative_StringArray(protocol_OR_protocols);
+ return WebSocket._create_3(url, protocols_1);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
}
- static WebSocket _create_1(url, protocols) => JS('WebSocket', 'new WebSocket(#,#)', url, protocols);
- static WebSocket _create_2(url) => JS('WebSocket', 'new WebSocket(#)', url);
+ static WebSocket _create_1(url) => JS('WebSocket', 'new WebSocket(#)', url);
+ static WebSocket _create_2(url, protocol_OR_protocols) => JS('WebSocket', 'new WebSocket(#,#)', url, protocol_OR_protocols);
+ static WebSocket _create_3(url, protocol_OR_protocols) => JS('WebSocket', 'new WebSocket(#,#)', url, protocol_OR_protocols);
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', 'typeof window.WebSocket != "undefined"');
@@ -34487,18 +31771,8 @@ class WheelEvent extends MouseEvent {
}
-
- @DomName('WheelEvent.WheelEvent')
- @DocsEditable()
- factory WheelEvent._(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return WheelEvent._create_1(type, eventInitDict_1);
- }
- return WheelEvent._create_2(type);
- }
- static WheelEvent _create_1(type, eventInitDict) => JS('WheelEvent', 'new WheelEvent(#,#)', type, eventInitDict);
- static WheelEvent _create_2(type) => JS('WheelEvent', 'new WheelEvent(#)', type);
+ // To suppress missing implicit constructor warnings.
+ factory WheelEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('WheelEvent.DOM_DELTA_LINE')
@DocsEditable()
@@ -34763,7 +32037,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
* for the animation to continue.
*/
@DomName('Window.requestAnimationFrame')
- int requestAnimationFrame(FrameRequestCallback callback) {
+ int requestAnimationFrame(RequestAnimationFrameCallback callback) {
_ensureRequestAnimationFrame();
return _requestAnimationFrame(_wrapZone(callback));
}
@@ -34782,7 +32056,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
}
@JSName('requestAnimationFrame')
- int _requestAnimationFrame(FrameRequestCallback callback) native;
+ int _requestAnimationFrame(RequestAnimationFrameCallback callback) native;
@JSName('cancelAnimationFrame')
void _cancelAnimationFrame(int id) native;
@@ -35058,6 +32332,18 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
@Experimental()
static const int TEMPORARY = 0;
+ @JSName('CSS')
+ /**
+ * Entrypoint for CSS-related functions.
+ *
+ * ## Other resources
+ *
+ * * [The CSS interface](http://dev.w3.org/csswg/css-conditional/#the-css-interface) from W3C.
+ */
+ @DomName('Window.CSS')
+ @DocsEditable()
+ final Css css;
+
/**
* The application cache for this window.
*
@@ -35074,11 +32360,6 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
@DocsEditable()
final ApplicationCache applicationCache;
- @DomName('Window.caches')
- @DocsEditable()
- @Experimental() // untriaged
- final CacheStorage caches;
-
@DomName('Window.closed')
@DocsEditable()
final bool closed;
@@ -35615,27 +32896,6 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
@DocsEditable()
bool confirm([String message]) native;
- @DomName('Window.fetch')
- @DocsEditable()
- @Experimental() // untriaged
- Future fetch(/*RequestInfo*/ input, [Map init]) {
- if (init != null) {
- var init_1 = convertDartToNative_Dictionary(init);
- return _fetch_1(input, init_1);
- }
- return _fetch_2(input);
- }
- @JSName('fetch')
- @DomName('Window.fetch')
- @DocsEditable()
- @Experimental() // untriaged
- Future _fetch_1(input, init) native;
- @JSName('fetch')
- @DomName('Window.fetch')
- @DocsEditable()
- @Experimental() // untriaged
- Future _fetch_2(input) native;
-
/**
* Finds text in this window.
*
@@ -35652,7 +32912,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
@JSName('getComputedStyle')
@DomName('Window.getComputedStyle')
@DocsEditable()
- CssStyleDeclaration _getComputedStyle(Element elt, String pseudoElt) native;
+ CssStyleDeclaration _getComputedStyle(Element element, String pseudoElement) native;
@JSName('getMatchedCSSRules')
/**
@@ -35705,12 +32965,12 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.moveBy')
@DocsEditable()
- void moveBy(int x, int y) native;
+ void moveBy(num x, num y) native;
@JSName('moveTo')
@DomName('Window.moveTo')
@DocsEditable()
- void _moveTo(int x, int y) native;
+ void _moveTo(num x, num y) native;
/// *Deprecated.*
@DomName('Window.openDatabase')
@@ -35725,7 +32985,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
@DomName('Window.postMessage')
@DocsEditable()
- void postMessage(/*any*/ message, String targetOrigin, [List<MessagePort> transfer]) {
+ void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List<MessagePort> transfer]) {
if (transfer != null) {
var message_1 = convertDartToNative_SerializedScriptValue(message);
_postMessage_1(message_1, targetOrigin, transfer);
@@ -35766,7 +33026,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.resizeBy')
@DocsEditable()
- void resizeBy(int x, int y) native;
+ void resizeBy(num x, num y) native;
/**
* Resizes this window to a specific width and height.
@@ -35778,7 +33038,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.resizeTo')
@DocsEditable()
- void resizeTo(int x, int y) native;
+ void resizeTo(num width, num height) native;
/**
* Scrolls the page horizontally and vertically to a specific point.
@@ -35792,27 +33052,23 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scroll')
@DocsEditable()
- void scroll([options_OR_x, y, Map scrollOptions]) {
- if (options_OR_x == null && y == null && scrollOptions == null) {
- _scroll_1();
+ void scroll(x, y, [Map scrollOptions]) {
+ if ((y is num) && (x is num) && scrollOptions == null) {
+ _scroll_1(x, y);
return;
}
- if ((options_OR_x is Map) && y == null && scrollOptions == null) {
- var options_1 = convertDartToNative_Dictionary(options_OR_x);
- _scroll_2(options_1);
- return;
- }
- if ((y is num) && (options_OR_x is num) && scrollOptions == null) {
- _scroll_3(options_OR_x, y);
+ if (scrollOptions != null && (y is num) && (x is num)) {
+ var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions);
+ _scroll_2(x, y, scrollOptions_1);
return;
}
- if ((y is int) && (options_OR_x is int) && scrollOptions == null) {
- _scroll_4(options_OR_x, y);
+ if ((y is int) && (x is int) && scrollOptions == null) {
+ _scroll_3(x, y);
return;
}
- if (scrollOptions != null && (y is int) && (options_OR_x is int)) {
+ if (scrollOptions != null && (y is int) && (x is int)) {
var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions);
- _scroll_5(options_OR_x, y, scrollOptions_1);
+ _scroll_4(x, y, scrollOptions_1);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
@@ -35830,21 +33086,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scroll')
@DocsEditable()
- void _scroll_1() native;
- @JSName('scroll')
- /**
- * Scrolls the page horizontally and vertically to a specific point.
- *
- * This method is identical to [scrollTo].
- *
- * ## Other resources
- *
- * * [Window scroll](http://docs.webplatform.org/wiki/dom/methods/scroll)
- * from WebPlatform.org.
- */
- @DomName('Window.scroll')
- @DocsEditable()
- void _scroll_2(options) native;
+ void _scroll_1(num x, num y) native;
@JSName('scroll')
/**
* Scrolls the page horizontally and vertically to a specific point.
@@ -35858,7 +33100,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scroll')
@DocsEditable()
- void _scroll_3(num x, num y) native;
+ void _scroll_2(num x, num y, scrollOptions) native;
@JSName('scroll')
/**
* Scrolls the page horizontally and vertically to a specific point.
@@ -35872,7 +33114,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scroll')
@DocsEditable()
- void _scroll_4(int x, int y) native;
+ void _scroll_3(int x, int y) native;
@JSName('scroll')
/**
* Scrolls the page horizontally and vertically to a specific point.
@@ -35886,7 +33128,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scroll')
@DocsEditable()
- void _scroll_5(int x, int y, scrollOptions) native;
+ void _scroll_4(int x, int y, scrollOptions) native;
/**
* Scrolls the page horizontally and vertically by an offset.
@@ -35898,27 +33140,23 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scrollBy')
@DocsEditable()
- void scrollBy([options_OR_x, y, Map scrollOptions]) {
- if (options_OR_x == null && y == null && scrollOptions == null) {
- _scrollBy_1();
+ void scrollBy(x, y, [Map scrollOptions]) {
+ if ((y is num) && (x is num) && scrollOptions == null) {
+ _scrollBy_1(x, y);
return;
}
- if ((options_OR_x is Map) && y == null && scrollOptions == null) {
- var options_1 = convertDartToNative_Dictionary(options_OR_x);
- _scrollBy_2(options_1);
- return;
- }
- if ((y is num) && (options_OR_x is num) && scrollOptions == null) {
- _scrollBy_3(options_OR_x, y);
+ if (scrollOptions != null && (y is num) && (x is num)) {
+ var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions);
+ _scrollBy_2(x, y, scrollOptions_1);
return;
}
- if ((y is int) && (options_OR_x is int) && scrollOptions == null) {
- _scrollBy_4(options_OR_x, y);
+ if ((y is int) && (x is int) && scrollOptions == null) {
+ _scrollBy_3(x, y);
return;
}
- if (scrollOptions != null && (y is int) && (options_OR_x is int)) {
+ if (scrollOptions != null && (y is int) && (x is int)) {
var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions);
- _scrollBy_5(options_OR_x, y, scrollOptions_1);
+ _scrollBy_4(x, y, scrollOptions_1);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
@@ -35934,7 +33172,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scrollBy')
@DocsEditable()
- void _scrollBy_1() native;
+ void _scrollBy_1(num x, num y) native;
@JSName('scrollBy')
/**
* Scrolls the page horizontally and vertically by an offset.
@@ -35946,7 +33184,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scrollBy')
@DocsEditable()
- void _scrollBy_2(options) native;
+ void _scrollBy_2(num x, num y, scrollOptions) native;
@JSName('scrollBy')
/**
* Scrolls the page horizontally and vertically by an offset.
@@ -35958,7 +33196,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scrollBy')
@DocsEditable()
- void _scrollBy_3(num x, num y) native;
+ void _scrollBy_3(int x, int y) native;
@JSName('scrollBy')
/**
* Scrolls the page horizontally and vertically by an offset.
@@ -35970,19 +33208,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scrollBy')
@DocsEditable()
- void _scrollBy_4(int x, int y) native;
- @JSName('scrollBy')
- /**
- * Scrolls the page horizontally and vertically by an offset.
- *
- * ## Other resources
- *
- * * [Window scrollBy](http://docs.webplatform.org/wiki/dom/methods/scrollBy)
- * from WebPlatform.org.
- */
- @DomName('Window.scrollBy')
- @DocsEditable()
- void _scrollBy_5(int x, int y, scrollOptions) native;
+ void _scrollBy_4(int x, int y, scrollOptions) native;
/**
* Scrolls the page horizontally and vertically to a specific point.
@@ -35996,27 +33222,23 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scrollTo')
@DocsEditable()
- void scrollTo([options_OR_x, y, Map scrollOptions]) {
- if (options_OR_x == null && y == null && scrollOptions == null) {
- _scrollTo_1();
- return;
- }
- if ((options_OR_x is Map) && y == null && scrollOptions == null) {
- var options_1 = convertDartToNative_Dictionary(options_OR_x);
- _scrollTo_2(options_1);
+ void scrollTo(x, y, [Map scrollOptions]) {
+ if ((y is num) && (x is num) && scrollOptions == null) {
+ _scrollTo_1(x, y);
return;
}
- if ((y is num) && (options_OR_x is num) && scrollOptions == null) {
- _scrollTo_3(options_OR_x, y);
+ if (scrollOptions != null && (y is num) && (x is num)) {
+ var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions);
+ _scrollTo_2(x, y, scrollOptions_1);
return;
}
- if ((y is int) && (options_OR_x is int) && scrollOptions == null) {
- _scrollTo_4(options_OR_x, y);
+ if ((y is int) && (x is int) && scrollOptions == null) {
+ _scrollTo_3(x, y);
return;
}
- if (scrollOptions != null && (y is int) && (options_OR_x is int)) {
+ if (scrollOptions != null && (y is int) && (x is int)) {
var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions);
- _scrollTo_5(options_OR_x, y, scrollOptions_1);
+ _scrollTo_4(x, y, scrollOptions_1);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
@@ -36034,7 +33256,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scrollTo')
@DocsEditable()
- void _scrollTo_1() native;
+ void _scrollTo_1(num x, num y) native;
@JSName('scrollTo')
/**
* Scrolls the page horizontally and vertically to a specific point.
@@ -36048,7 +33270,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scrollTo')
@DocsEditable()
- void _scrollTo_2(options) native;
+ void _scrollTo_2(num x, num y, scrollOptions) native;
@JSName('scrollTo')
/**
* Scrolls the page horizontally and vertically to a specific point.
@@ -36062,7 +33284,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scrollTo')
@DocsEditable()
- void _scrollTo_3(num x, num y) native;
+ void _scrollTo_3(int x, int y) native;
@JSName('scrollTo')
/**
* Scrolls the page horizontally and vertically to a specific point.
@@ -36076,21 +33298,21 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
*/
@DomName('Window.scrollTo')
@DocsEditable()
- void _scrollTo_4(int x, int y) native;
- @JSName('scrollTo')
+ void _scrollTo_4(int x, int y, scrollOptions) native;
+
/**
- * Scrolls the page horizontally and vertically to a specific point.
- *
- * This method is identical to [scroll].
+ * Opens a new page as a modal dialog.
*
* ## Other resources
*
- * * [Window scrollTo](http://docs.webplatform.org/wiki/dom/methods/scrollTo)
- * from WebPlatform.org.
+ * * [Dialogs implemented using separate
+ * documents](http://www.w3.org/html/wg/drafts/html/master/webappapis.html#dialogs-implemented-using-separate-documents)
+ * from W3C.
*/
- @DomName('Window.scrollTo')
+ @DomName('Window.showModalDialog')
@DocsEditable()
- void _scrollTo_5(int x, int y, scrollOptions) native;
+ @Creates('Null')
+ Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) native;
/**
* Stops the window from loading.
@@ -36171,43 +33393,33 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo
@DomName('Window.atob')
@DocsEditable()
- String atob(String atob) native;
+ String atob(String string) native;
@DomName('Window.btoa')
@DocsEditable()
- String btoa(String btoa) native;
+ String btoa(String string) native;
// From WindowTimers
- @JSName('setInterval')
- @DomName('Window.setInterval')
- @DocsEditable()
- int _setInterval_String(String handler, [int timeout, Object arguments]) native;
-
- @JSName('setTimeout')
- @DomName('Window.setTimeout')
- @DocsEditable()
- int _setTimeout_String(String handler, [int timeout, Object arguments]) native;
-
@JSName('clearInterval')
@DomName('Window.clearInterval')
@DocsEditable()
- void _clearInterval([int handle]) native;
+ void _clearInterval(int handle) native;
@JSName('clearTimeout')
@DomName('Window.clearTimeout')
@DocsEditable()
- void _clearTimeout([int handle]) native;
+ void _clearTimeout(int handle) native;
@JSName('setInterval')
@DomName('Window.setInterval')
@DocsEditable()
- int _setInterval(Object handler, [int timeout]) native;
+ int _setInterval(Object handler, int timeout) native;
@JSName('setTimeout')
@DomName('Window.setTimeout')
@DocsEditable()
- int _setTimeout(Object handler, [int timeout]) native;
+ int _setTimeout(Object handler, int timeout) native;
/// Stream of `contentloaded` events handled by this [Window].
@DomName('Window.onDOMContentLoaded')
@@ -36716,37 +33928,9 @@ abstract class WindowBase64 extends Interceptor {
// To suppress missing implicit constructor warnings.
factory WindowBase64._() { throw new UnsupportedError("Not supported"); }
- String atob(String atob);
-
- String btoa(String btoa);
-}
-// 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('WindowClient')
-@Experimental() // untriaged
-@Native("WindowClient")
-class WindowClient extends Client {
- // To suppress missing implicit constructor warnings.
- factory WindowClient._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('WindowClient.focused')
- @DocsEditable()
- @Experimental() // untriaged
- final bool focused;
-
- @DomName('WindowClient.visibilityState')
- @DocsEditable()
- @Experimental() // untriaged
- final String visibilityState;
+ String atob(String string);
- @DomName('WindowClient.focus')
- @DocsEditable()
- @Experimental() // untriaged
- Future focus() native;
+ String btoa(String string);
}
// 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
@@ -36962,11 +34146,6 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase
@Experimental() // untriaged
static const int TEMPORARY = 0;
- @DomName('WorkerGlobalScope.caches')
- @DocsEditable()
- @Experimental() // untriaged
- final CacheStorage caches;
-
@DomName('WorkerGlobalScope.console')
@DocsEditable()
@Experimental() // untriaged
@@ -37007,27 +34186,6 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase
@Experimental() // untriaged
void close() native;
- @DomName('WorkerGlobalScope.fetch')
- @DocsEditable()
- @Experimental() // untriaged
- Future fetch(/*RequestInfo*/ input, [Map init]) {
- if (init != null) {
- var init_1 = convertDartToNative_Dictionary(init);
- return _fetch_1(input, init_1);
- }
- return _fetch_2(input);
- }
- @JSName('fetch')
- @DomName('WorkerGlobalScope.fetch')
- @DocsEditable()
- @Experimental() // untriaged
- Future _fetch_1(input, init) native;
- @JSName('fetch')
- @DomName('WorkerGlobalScope.fetch')
- @DocsEditable()
- @Experimental() // untriaged
- Future _fetch_2(input) native;
-
@DomName('WorkerGlobalScope.importScripts')
@DocsEditable()
@Experimental() // untriaged
@@ -37092,50 +34250,38 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase
@DomName('WorkerGlobalScope.atob')
@DocsEditable()
@Experimental() // untriaged
- String atob(String atob) native;
+ String atob(String string) native;
@DomName('WorkerGlobalScope.btoa')
@DocsEditable()
@Experimental() // untriaged
- String btoa(String btoa) native;
+ String btoa(String string) native;
// From WindowTimers
- @JSName('setInterval')
- @DomName('WorkerGlobalScope.setInterval')
- @DocsEditable()
- @Experimental() // untriaged
- int _setInterval_String(String handler, [int timeout, Object arguments]) native;
-
- @JSName('setTimeout')
- @DomName('WorkerGlobalScope.setTimeout')
- @DocsEditable()
- @Experimental() // untriaged
- int _setTimeout_String(String handler, [int timeout, Object arguments]) native;
-
@JSName('clearInterval')
@DomName('WorkerGlobalScope.clearInterval')
@DocsEditable()
@Experimental() // untriaged
- void _clearInterval([int handle]) native;
+ void _clearInterval(int handle) native;
@JSName('clearTimeout')
@DomName('WorkerGlobalScope.clearTimeout')
@DocsEditable()
@Experimental() // untriaged
- void _clearTimeout([int handle]) native;
+ void _clearTimeout(int handle) native;
@JSName('setInterval')
@DomName('WorkerGlobalScope.setInterval')
@DocsEditable()
@Experimental() // untriaged
- int _setInterval(Object handler, [int timeout]) native;
+ int _setInterval(Object handler, int timeout) native;
@JSName('setTimeout')
@DomName('WorkerGlobalScope.setTimeout')
@DocsEditable()
@Experimental() // untriaged
- int _setTimeout(Object handler, [int timeout]) native;
+ int _setTimeout(Object handler, int timeout) native;
/// Stream of `error` events handled by this [WorkerGlobalScope].
@DomName('WorkerGlobalScope.onerror')
@@ -37152,7 +34298,7 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase
@DomName('WorkerPerformance')
@Experimental() // untriaged
@Native("WorkerPerformance")
-class WorkerPerformance extends EventTarget {
+class WorkerPerformance extends Interceptor {
// To suppress missing implicit constructor warnings.
factory WorkerPerformance._() { throw new UnsupportedError("Not supported"); }
@@ -37161,63 +34307,10 @@ class WorkerPerformance extends EventTarget {
@Experimental() // untriaged
final MemoryInfo memory;
- @DomName('WorkerPerformance.clearMarks')
- @DocsEditable()
- @Experimental() // untriaged
- void clearMarks(String markName) native;
-
- @DomName('WorkerPerformance.clearMeasures')
- @DocsEditable()
- @Experimental() // untriaged
- void clearMeasures(String measureName) native;
-
- @DomName('WorkerPerformance.getEntries')
- @DocsEditable()
- @Experimental() // untriaged
- List<PerformanceEntry> getEntries() native;
-
- @DomName('WorkerPerformance.getEntriesByName')
- @DocsEditable()
- @Experimental() // untriaged
- List<PerformanceEntry> getEntriesByName(String name, String entryType) native;
-
- @DomName('WorkerPerformance.getEntriesByType')
- @DocsEditable()
- @Experimental() // untriaged
- List<PerformanceEntry> getEntriesByType(String entryType) native;
-
- @DomName('WorkerPerformance.mark')
- @DocsEditable()
- @Experimental() // untriaged
- void mark(String markName) native;
-
- @DomName('WorkerPerformance.measure')
- @DocsEditable()
- @Experimental() // untriaged
- void measure(String measureName, String startMark, String endMark) native;
-
@DomName('WorkerPerformance.now')
@DocsEditable()
@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')
- @DocsEditable()
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental()
- @Experimental() // untriaged
- void setResourceTimingBufferSize(int maxSize) 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
@@ -37250,7 +34343,7 @@ class XPathEvaluator extends Interceptor {
@DomName('XPathEvaluator.evaluate')
@DocsEditable()
- XPathResult evaluate(String expression, Node contextNode, XPathNSResolver resolver, [int type, Object inResult]) native;
+ XPathResult evaluate(String expression, Node contextNode, XPathNSResolver resolver, int type, XPathResult inResult) 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
@@ -37268,7 +34361,7 @@ class XPathExpression extends Interceptor {
@DomName('XPathExpression.evaluate')
@DocsEditable()
- XPathResult evaluate(Node contextNode, [int type, Object inResult]) native;
+ XPathResult evaluate(Node contextNode, int type, XPathResult inResult) 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
@@ -37415,7 +34508,7 @@ class XmlSerializer extends Interceptor {
@DomName('XMLSerializer.serializeToString')
@DocsEditable()
- String serializeToString(Node root) native;
+ String serializeToString(Node node) 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
@@ -37453,7 +34546,7 @@ class XsltProcessor extends Interceptor {
@DomName('XSLTProcessor.importStylesheet')
@DocsEditable()
- void importStylesheet(Node style) native;
+ void importStylesheet(Node stylesheet) native;
@DomName('XSLTProcessor.removeParameter')
@DocsEditable()
@@ -37473,7 +34566,7 @@ class XsltProcessor extends Interceptor {
@DomName('XSLTProcessor.transformToFragment')
@DocsEditable()
- DocumentFragment transformToFragment(Node source, Document output) native;
+ DocumentFragment transformToFragment(Node source, Document docVal) 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
@@ -37517,6 +34610,48 @@ class _Attr extends Node {
@DocsEditable()
+@DomName('CSSPrimitiveValue')
+// http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface
+@deprecated // deprecated
+@Native("CSSPrimitiveValue")
+abstract class _CSSPrimitiveValue extends _CSSValue {
+ // To suppress missing implicit constructor warnings.
+ factory _CSSPrimitiveValue._() { 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('CSSUnknownRule')
+// http://dev.w3.org/csswg/cssom/#the-cssstylesheet-interface
+@deprecated // deprecated
+@Native("CSSUnknownRule")
+abstract class _CSSUnknownRule extends CssRule {
+ // To suppress missing implicit constructor warnings.
+ factory _CSSUnknownRule._() { 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('CSSValue')
+// http://dev.w3.org/csswg/cssom/
+@deprecated // deprecated
+@Native("CSSValue")
+abstract class _CSSValue extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory _CSSValue._() { 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('Cache')
@Experimental() // untriaged
@Native("Cache")
@@ -37707,7 +34842,7 @@ class _JenkinsSmiHash {
@DocsEditable()
@DomName('ClientRectList')
@Native("ClientRectList,DOMRectList")
-class _ClientRectList extends Interceptor with ListMixin<Rectangle>, ImmutableListMixin<Rectangle> implements List<Rectangle> {
+class _ClientRectList extends Interceptor with ListMixin<Rectangle>, ImmutableListMixin<Rectangle> implements List<Rectangle>, JavaScriptIndexingBehavior {
// To suppress missing implicit constructor warnings.
factory _ClientRectList._() { throw new UnsupportedError("Not supported"); }
@@ -37719,7 +34854,7 @@ class _ClientRectList extends Interceptor with ListMixin<Rectangle>, ImmutableLi
if (JS("bool", "# >>> 0 !== # || # >= #", index,
index, index, length))
throw new RangeError.index(index, this);
- return this.item(index);
+ return JS("Rectangle", "#[#]", this, index);
}
void operator[]=(int index, Rectangle value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
@@ -37759,11 +34894,6 @@ class _ClientRectList extends Interceptor with ListMixin<Rectangle>, ImmutableLi
Rectangle elementAt(int index) => this[index];
// -- end List<Rectangle> mixins.
- @DomName('ClientRectList.__getter__')
- @DocsEditable()
- @Experimental() // untriaged
- Rectangle __getter__(int index) native;
-
@DomName('ClientRectList.item')
@DocsEditable()
Rectangle item(int index) native;
@@ -37774,6 +34904,20 @@ class _ClientRectList extends Interceptor with ListMixin<Rectangle>, ImmutableLi
@DocsEditable()
+@DomName('Counter')
+// http://dev.w3.org/csswg/cssom/
+@deprecated // deprecated
+@Native("Counter")
+abstract class _Counter extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory _Counter._() { 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('CSSRuleList')
@Native("CSSRuleList")
class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMixin<CssRule> implements JavaScriptIndexingBehavior, List<CssRule> {
@@ -37838,6 +34982,72 @@ class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix
@DocsEditable()
+@DomName('CSSValueList')
+// http://dev.w3.org/csswg/cssom/
+@deprecated // deprecated
+@Native("CSSValueList")
+class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMixin<_CSSValue> implements JavaScriptIndexingBehavior, List<_CSSValue> {
+ // To suppress missing implicit constructor warnings.
+ factory _CssValueList._() { throw new UnsupportedError("Not supported"); }
+
+ @DomName('CSSValueList.length')
+ @DocsEditable()
+ int get length => JS("int", "#.length", this);
+
+ _CSSValue operator[](int index) {
+ if (JS("bool", "# >>> 0 !== # || # >= #", index,
+ index, index, length))
+ throw new RangeError.index(index, this);
+ return JS("_CSSValue", "#[#]", this, index);
+ }
+ void operator[]=(int index, _CSSValue value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
+ }
+ // -- start List<_CSSValue> mixins.
+ // _CSSValue is the element type.
+
+
+ set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
+ }
+
+ _CSSValue get first {
+ if (this.length > 0) {
+ return JS('_CSSValue', '#[0]', this);
+ }
+ throw new StateError("No elements");
+ }
+
+ _CSSValue get last {
+ int len = this.length;
+ if (len > 0) {
+ return JS('_CSSValue', '#[#]', this, len - 1);
+ }
+ throw new StateError("No elements");
+ }
+
+ _CSSValue get single {
+ int len = this.length;
+ if (len == 1) {
+ return JS('_CSSValue', '#[0]', this);
+ }
+ if (len == 0) throw new StateError("No elements");
+ throw new StateError("More than one element");
+ }
+
+ _CSSValue elementAt(int index) => this[index];
+ // -- end List<_CSSValue> mixins.
+
+ @DomName('CSSValueList.item')
+ @DocsEditable()
+ _CSSValue item(int index) 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('DOMFileSystemSync')
@SupportedBrowser(SupportedBrowser.CHROME)
@Experimental()
@@ -38312,33 +35522,37 @@ class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin
Node elementAt(int index) => this[index];
// -- end List<Node> mixins.
+ @DomName('NamedNodeMap.__getter__')
+ @DocsEditable()
+ Node __getter__(String name) native;
+
@DomName('NamedNodeMap.getNamedItem')
@DocsEditable()
- _Attr getNamedItem(String name) native;
+ Node getNamedItem(String name) native;
@DomName('NamedNodeMap.getNamedItemNS')
@DocsEditable()
- _Attr getNamedItemNS(String namespaceURI, String localName) native;
+ Node getNamedItemNS(String namespaceURI, String localName) native;
@DomName('NamedNodeMap.item')
@DocsEditable()
- _Attr item(int index) native;
+ Node item(int index) native;
@DomName('NamedNodeMap.removeNamedItem')
@DocsEditable()
- _Attr removeNamedItem(String name) native;
+ Node removeNamedItem(String name) native;
@DomName('NamedNodeMap.removeNamedItemNS')
@DocsEditable()
- _Attr removeNamedItemNS(String namespaceURI, String localName) native;
+ Node removeNamedItemNS(String namespaceURI, String localName) native;
@DomName('NamedNodeMap.setNamedItem')
@DocsEditable()
- _Attr setNamedItem(_Attr attr) native;
+ Node setNamedItem(Node node) native;
@DomName('NamedNodeMap.setNamedItemNS')
@DocsEditable()
- _Attr setNamedItemNS(_Attr attr) native;
+ Node setNamedItemNS(Node node) 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
@@ -38353,6 +35567,20 @@ abstract class _PagePopupController extends Interceptor {
// To suppress missing implicit constructor warnings.
factory _PagePopupController._() { 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('RGBColor')
+// http://dev.w3.org/csswg/cssom/
+@deprecated // deprecated
+@Native("RGBColor")
+abstract class _RGBColor extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory _RGBColor._() { throw new UnsupportedError("Not supported"); }
+}
// 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.
@@ -38368,6 +35596,20 @@ abstract class _PagePopupController extends Interceptor {
@DocsEditable()
+@DomName('Rect')
+// http://dev.w3.org/csswg/cssom/
+@deprecated // deprecated
+@Native("Rect")
+abstract class _Rect extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory _Rect._() { 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('Request')
@Experimental() // untriaged
@Native("Request")
@@ -38377,20 +35619,27 @@ class _Request extends Body {
@DomName('Request.Request')
@DocsEditable()
- factory _Request(Object input, [Map requestInitDict]) {
- if (requestInitDict != null) {
+ factory _Request(input, [Map requestInitDict]) {
+ if ((input is String || input == null) && requestInitDict == null) {
+ return _Request._create_1(input);
+ }
+ if ((requestInitDict is Map || requestInitDict == null) && (input is String || input == null)) {
+ var requestInitDict_1 = convertDartToNative_Dictionary(requestInitDict);
+ return _Request._create_2(input, requestInitDict_1);
+ }
+ if ((input is _Request || input == null) && requestInitDict == null) {
+ return _Request._create_3(input);
+ }
+ if ((requestInitDict is Map || requestInitDict == null) && (input is _Request || input == null)) {
var requestInitDict_1 = convertDartToNative_Dictionary(requestInitDict);
- return _Request._create_1(input, requestInitDict_1);
+ return _Request._create_4(input, requestInitDict_1);
}
- return _Request._create_2(input);
+ throw new ArgumentError("Incorrect number or type of arguments");
}
- static _Request _create_1(input, requestInitDict) => 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;
+ static _Request _create_1(input) => JS('_Request', 'new Request(#)', input);
+ static _Request _create_2(input, requestInitDict) => JS('_Request', 'new Request(#,#)', input, requestInitDict);
+ static _Request _create_3(input) => JS('_Request', 'new Request(#)', input);
+ static _Request _create_4(input, requestInitDict) => JS('_Request', 'new Request(#,#)', input, requestInitDict);
@DomName('Request.credentials')
@DocsEditable()
@@ -38437,19 +35686,45 @@ abstract class _Response extends Body {
@DomName('Response.Response')
@DocsEditable()
- factory _Response([Object body, Map responseInitDict]) {
- if (responseInitDict != null) {
- var responseInitDict_1 = convertDartToNative_Dictionary(responseInitDict);
- return _Response._create_1(body, responseInitDict_1);
+ factory _Response(body_OR_input, [Map requestInitDict_OR_responseInitDict]) {
+ if ((body_OR_input is String || body_OR_input == null) && requestInitDict_OR_responseInitDict == null) {
+ return _Response._create_1(body_OR_input);
+ }
+ if ((requestInitDict_OR_responseInitDict is Map || requestInitDict_OR_responseInitDict == null) && (body_OR_input is String || body_OR_input == null)) {
+ var responseInitDict_1 = convertDartToNative_Dictionary(requestInitDict_OR_responseInitDict);
+ return _Response._create_2(body_OR_input, responseInitDict_1);
+ }
+ if ((body_OR_input is Blob || body_OR_input == null) && requestInitDict_OR_responseInitDict == null) {
+ return _Response._create_3(body_OR_input);
+ }
+ if ((requestInitDict_OR_responseInitDict is Map || requestInitDict_OR_responseInitDict == null) && (body_OR_input is Blob || body_OR_input == null)) {
+ var responseInitDict_1 = convertDartToNative_Dictionary(requestInitDict_OR_responseInitDict);
+ return _Response._create_4(body_OR_input, responseInitDict_1);
+ }
+ if ((body_OR_input is TypedData || body_OR_input == null) && requestInitDict_OR_responseInitDict == null) {
+ return _Response._create_5(body_OR_input);
+ }
+ if ((requestInitDict_OR_responseInitDict is Map || requestInitDict_OR_responseInitDict == null) && (body_OR_input is TypedData || body_OR_input == null)) {
+ var requestInitDict_1 = convertDartToNative_Dictionary(requestInitDict_OR_responseInitDict);
+ return _Response._create_6(body_OR_input, requestInitDict_1);
}
- if (body != null) {
- return _Response._create_2(body);
+ if ((body_OR_input is ByteBuffer || body_OR_input == null) && requestInitDict_OR_responseInitDict == null) {
+ return _Response._create_7(body_OR_input);
}
- return _Response._create_3();
+ if ((requestInitDict_OR_responseInitDict is Map || requestInitDict_OR_responseInitDict == null) && (body_OR_input is ByteBuffer || body_OR_input == null)) {
+ var requestInitDict_1 = convertDartToNative_Dictionary(requestInitDict_OR_responseInitDict);
+ return _Response._create_8(body_OR_input, requestInitDict_1);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
}
- static _Response _create_1(body, responseInitDict) => JS('_Response', 'new Response(#,#)', body, responseInitDict);
- static _Response _create_2(body) => JS('_Response', 'new Response(#)', body);
- static _Response _create_3() => JS('_Response', 'new Response()');
+ static _Response _create_1(body_OR_input) => JS('_Response', 'new Response(#)', body_OR_input);
+ static _Response _create_2(body_OR_input, requestInitDict_OR_responseInitDict) => JS('_Response', 'new Response(#,#)', body_OR_input, requestInitDict_OR_responseInitDict);
+ static _Response _create_3(body_OR_input) => JS('_Response', 'new Response(#)', body_OR_input);
+ static _Response _create_4(body_OR_input, requestInitDict_OR_responseInitDict) => JS('_Response', 'new Response(#,#)', body_OR_input, requestInitDict_OR_responseInitDict);
+ static _Response _create_5(body_OR_input) => JS('_Response', 'new Response(#)', body_OR_input);
+ static _Response _create_6(body_OR_input, requestInitDict_OR_responseInitDict) => JS('_Response', 'new Response(#,#)', body_OR_input, requestInitDict_OR_responseInitDict);
+ static _Response _create_7(body_OR_input) => JS('_Response', 'new Response(#)', body_OR_input);
+ static _Response _create_8(body_OR_input, requestInitDict_OR_responseInitDict) => JS('_Response', 'new Response(#,#)', body_OR_input, requestInitDict_OR_responseInitDict);
}
// 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
@@ -38619,6 +35894,20 @@ abstract class _SubtleCrypto extends Interceptor {
@DocsEditable()
+@DomName('WebKitCSSFilterValue')
+// http://dev.w3.org/csswg/cssom/
+@deprecated // deprecated
+@Native("WebKitCSSFilterValue")
+abstract class _WebKitCSSFilterValue extends _CssValueList {
+ // To suppress missing implicit constructor warnings.
+ factory _WebKitCSSFilterValue._() { 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('WebKitCSSMatrix')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@@ -38647,23 +35936,33 @@ abstract class _WebKitCSSMatrix extends Interceptor {
@DocsEditable()
+@DomName('WebKitCSSTransformValue')
+// http://dev.w3.org/csswg/cssom/
+@deprecated // deprecated
+@Native("WebKitCSSTransformValue")
+abstract class _WebKitCSSTransformValue extends _CssValueList {
+ // To suppress missing implicit constructor warnings.
+ factory _WebKitCSSTransformValue._() { 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('WindowTimers')
@Experimental() // untriaged
abstract class _WindowTimers extends Interceptor {
// To suppress missing implicit constructor warnings.
factory _WindowTimers._() { throw new UnsupportedError("Not supported"); }
- int _setInterval_String(String handler, [int timeout, Object arguments]);
-
- int _setTimeout_String(String handler, [int timeout, Object arguments]);
-
- void _clearInterval([int handle]);
+ void _clearInterval(int handle);
- void _clearTimeout([int handle]);
+ void _clearTimeout(int handle);
- int _setInterval(Object handler, [int timeout]);
+ int _setInterval(Object handler, int timeout);
- int _setTimeout(Object handler, [int timeout]);
+ int _setTimeout(Object handler, int timeout);
}
// 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
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698