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 25dce9d907caed58d2853ac2eb9d8007692b7d2f..744e7338c7d9e744274db8c5f0ba38ed74b11c9e 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -187,11 +187,6 @@ class AnchorElement extends HtmlElement implements UrlUtils { |
@DocsEditable() |
String hreflang; |
- @DomName('HTMLAnchorElement.integrity') |
- @DocsEditable() |
- @Experimental() // untriaged |
- String integrity; |
- |
@DomName('HTMLAnchorElement.rel') |
@DocsEditable() |
String rel; |
@@ -268,117 +263,110 @@ class AnchorElement extends HtmlElement implements UrlUtils { |
@DomName('Animation') |
@Experimental() // untriaged |
@Native("Animation") |
-class Animation extends AnimationNode { |
+class Animation extends EventTarget { |
// To suppress missing implicit constructor warnings. |
factory Animation._() { throw new UnsupportedError("Not supported"); } |
- @DomName('Animation.Animation') |
- @DocsEditable() |
- 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. |
+ /// Checks if this type is supported on the current platform. |
+ static bool get supported => JS('bool', '!!(document.body.animate)'); |
+ @DomName('Animation.currentTime') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ num currentTime; |
-@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.effect') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ AnimationEffectReadOnly effect; |
+ @DomName('Animation.endClip') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ num endClip; |
-@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.finished') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final Future finished; |
- @DomName('WebKitAnimationEvent.animationName') |
+ @DomName('Animation.playState') |
@DocsEditable() |
- final String animationName; |
+ @Experimental() // untriaged |
+ final String playState; |
- @DomName('WebKitAnimationEvent.elapsedTime') |
+ @DomName('Animation.playbackRate') |
@DocsEditable() |
- 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. |
+ @Experimental() // untriaged |
+ num playbackRate; |
+ @DomName('Animation.ready') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final Future ready; |
-@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.startClip') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ num startClip; |
- @DomName('AnimationNode.activeDuration') |
+ @DomName('Animation.startTime') |
@DocsEditable() |
@Experimental() // untriaged |
- final double activeDuration; |
+ num startTime; |
- @DomName('AnimationNode.currentIteration') |
+ @DomName('Animation.cancel') |
@DocsEditable() |
@Experimental() // untriaged |
- final int currentIteration; |
+ void cancel() native; |
- @DomName('AnimationNode.duration') |
+ @DomName('Animation.finish') |
@DocsEditable() |
@Experimental() // untriaged |
- final double duration; |
+ void finish() native; |
- @DomName('AnimationNode.endTime') |
+ @DomName('Animation.pause') |
@DocsEditable() |
@Experimental() // untriaged |
- final double endTime; |
+ void pause() native; |
- @DomName('AnimationNode.localTime') |
+ @DomName('Animation.play') |
@DocsEditable() |
@Experimental() // untriaged |
- final double localTime; |
+ void play() native; |
- @DomName('AnimationNode.player') |
+ @DomName('Animation.reverse') |
@DocsEditable() |
@Experimental() // untriaged |
- final AnimationPlayer player; |
+ 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. |
+ |
+ |
+@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('AnimationNode.startTime') |
+ @DomName('AnimationEffectReadOnly.computedTiming') |
@DocsEditable() |
@Experimental() // untriaged |
- final double startTime; |
+ Map get computedTiming => convertNativeToDart_Dictionary(this._get_computedTiming); |
+ @JSName('computedTiming') |
+ @DomName('AnimationEffectReadOnly.computedTiming') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final dynamic _get_computedTiming; |
- @DomName('AnimationNode.timing') |
+ @DomName('AnimationEffectReadOnly.timing') |
@DocsEditable() |
@Experimental() // untriaged |
- final Timing timing; |
+ final AnimationEffectTiming 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 |
@@ -386,65 +374,92 @@ class AnimationNode extends Interceptor { |
@DocsEditable() |
-@DomName('AnimationPlayer') |
+@DomName('AnimationEffectTiming') |
@Experimental() // untriaged |
-@Native("AnimationPlayer") |
-class AnimationPlayer extends EventTarget { |
+@Native("AnimationEffectTiming") |
+class AnimationEffectTiming extends Interceptor { |
// To suppress missing implicit constructor warnings. |
- factory AnimationPlayer._() { throw new UnsupportedError("Not supported"); } |
+ factory AnimationEffectTiming._() { 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('AnimationEffectTiming.delay') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ num delay; |
- @DomName('AnimationPlayer.currentTime') |
+ @DomName('AnimationEffectTiming.direction') |
@DocsEditable() |
@Experimental() // untriaged |
- num currentTime; |
+ String direction; |
- @DomName('AnimationPlayer.playState') |
+ @DomName('AnimationEffectTiming.duration') |
@DocsEditable() |
@Experimental() // untriaged |
- final String playState; |
+ Object duration; |
- @DomName('AnimationPlayer.playbackRate') |
+ @DomName('AnimationEffectTiming.easing') |
@DocsEditable() |
@Experimental() // untriaged |
- num playbackRate; |
+ String easing; |
- @DomName('AnimationPlayer.source') |
+ @DomName('AnimationEffectTiming.endDelay') |
@DocsEditable() |
@Experimental() // untriaged |
- AnimationNode source; |
+ num endDelay; |
- @DomName('AnimationPlayer.startTime') |
+ @DomName('AnimationEffectTiming.fill') |
@DocsEditable() |
@Experimental() // untriaged |
- num startTime; |
+ String fill; |
- @DomName('AnimationPlayer.cancel') |
+ @DomName('AnimationEffectTiming.iterationStart') |
@DocsEditable() |
@Experimental() // untriaged |
- void cancel() native; |
+ num iterationStart; |
- @DomName('AnimationPlayer.finish') |
+ @DomName('AnimationEffectTiming.iterations') |
@DocsEditable() |
@Experimental() // untriaged |
- void finish() native; |
+ num iterations; |
- @DomName('AnimationPlayer.pause') |
+ @DomName('AnimationEffectTiming.playbackRate') |
@DocsEditable() |
@Experimental() // untriaged |
- void pause() native; |
+ 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); |
- @DomName('AnimationPlayer.play') |
+ @DomName('AnimationEvent.animationName') |
@DocsEditable() |
@Experimental() // untriaged |
- void play() native; |
+ final String animationName; |
- @DomName('AnimationPlayer.reverse') |
+ @DomName('AnimationEvent.elapsedTime') |
@DocsEditable() |
@Experimental() // untriaged |
- void reverse() native; |
+ 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 |
@@ -459,6 +474,18 @@ 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 |
@@ -485,17 +512,45 @@ class AnimationTimeline extends Interceptor { |
@DomName('AnimationTimeline.currentTime') |
@DocsEditable() |
@Experimental() // untriaged |
- final double currentTime; |
+ num currentTime; |
- @DomName('AnimationTimeline.getAnimationPlayers') |
+ @DomName('AnimationTimeline.playbackRate') |
@DocsEditable() |
@Experimental() // untriaged |
- List<AnimationPlayer> getAnimationPlayers() native; |
+ num playbackRate; |
+ |
+ @DomName('AnimationTimeline.getAnimations') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ List<Animation> getAnimations() native; |
@DomName('AnimationTimeline.play') |
@DocsEditable() |
@Experimental() // untriaged |
- AnimationPlayer play(AnimationNode source) native; |
+ 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; |
} |
// 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 |
@@ -694,6 +749,18 @@ 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 |
@@ -935,6 +1002,18 @@ 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; |
@@ -1045,6 +1124,43 @@ 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 { |
@@ -1111,6 +1227,178 @@ 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") |
@@ -1444,6 +1732,11 @@ 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; |
@@ -1475,21 +1768,11 @@ 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 |
@@ -1499,29 +1782,32 @@ 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. |
- |
- |
-@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') |
+ @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() |
- bool alpha; |
+ @Experimental() // untriaged |
+ Future _match_2(request) native; |
- @DomName('Canvas2DContextAttributes.storage') |
+ @DomName('CacheStorage.open') |
@DocsEditable() |
@Experimental() // untriaged |
- String storage; |
+ Future open(String cacheName) 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 |
@@ -1583,10 +1869,10 @@ class CanvasElement extends HtmlElement implements CanvasImageSource { |
@DocsEditable() |
@Creates('CanvasRenderingContext2D|RenderingContext') |
@Returns('CanvasRenderingContext2D|RenderingContext|Null') |
- Object getContext(String contextId, [Map attrs]) { |
- if (attrs != null) { |
- var attrs_1 = convertDartToNative_Dictionary(attrs); |
- return _getContext_1(contextId, attrs_1); |
+ Object getContext(String contextId, [Map attributes]) { |
+ if (attributes != null) { |
+ var attributes_1 = convertDartToNative_Dictionary(attributes); |
+ return _getContext_1(contextId, attributes_1); |
} |
return _getContext_2(contextId); |
} |
@@ -1595,7 +1881,7 @@ class CanvasElement extends HtmlElement implements CanvasImageSource { |
@DocsEditable() |
@Creates('CanvasRenderingContext2D|RenderingContext') |
@Returns('CanvasRenderingContext2D|RenderingContext|Null') |
- Object _getContext_1(contextId, attrs) native; |
+ Object _getContext_1(contextId, attributes) native; |
@JSName('getContext') |
@DomName('HTMLCanvasElement.getContext') |
@DocsEditable() |
@@ -1606,7 +1892,7 @@ class CanvasElement extends HtmlElement implements CanvasImageSource { |
@JSName('toDataURL') |
@DomName('HTMLCanvasElement.toDataURL') |
@DocsEditable() |
- String _toDataUrl(String type, [num quality]) native; |
+ String _toDataUrl(String type, [arguments_OR_quality]) native; |
/// Stream of `webglcontextlost` events handled by this [CanvasElement]. |
@DomName('HTMLCanvasElement.onwebglcontextlost') |
@@ -1832,6 +2118,11 @@ 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; |
@@ -1948,27 +2239,26 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon |
@DomName('CanvasRenderingContext2D.createImageData') |
@DocsEditable() |
@Creates('ImageData|=Object') |
- ImageData createImageData(num sw, num sh) { |
- return convertNativeToDart_ImageData(_createImageData_1(sw, sh)); |
+ 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"); |
} |
@JSName('createImageData') |
@DomName('CanvasRenderingContext2D.createImageData') |
@DocsEditable() |
@Creates('ImageData|=Object') |
- _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)); |
- } |
+ _createImageData_1(imagedata) native; |
@JSName('createImageData') |
@DomName('CanvasRenderingContext2D.createImageData') |
@DocsEditable() |
@Creates('ImageData|=Object') |
- _createImageDataFromImageData_1(imagedata) native; |
+ _createImageData_2(num sw, sh) native; |
@DomName('CanvasRenderingContext2D.createLinearGradient') |
@DocsEditable() |
@@ -1976,12 +2266,7 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon |
@DomName('CanvasRenderingContext2D.createPattern') |
@DocsEditable() |
- CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; |
- |
- @JSName('createPattern') |
- @DomName('CanvasRenderingContext2D.createPattern') |
- @DocsEditable() |
- CanvasPattern createPatternFromImage(ImageElement image, String repetitionType) native; |
+ CanvasPattern createPattern(Object image, String repetitionType) native; |
@DomName('CanvasRenderingContext2D.createRadialGradient') |
@DocsEditable() |
@@ -2000,7 +2285,15 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon |
@DocsEditable() |
// http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL |
@Experimental() |
- Canvas2DContextAttributes getContextAttributes() native; |
+ 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; |
@DomName('CanvasRenderingContext2D.getImageData') |
@DocsEditable() |
@@ -2156,6 +2449,11 @@ 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(#, #)', this, imagedata); |
+ |
/** |
* Sets the color used inside shapes. |
* [r], [g], [b] are 0-255, [a] is 0-1. |
@@ -2200,6 +2498,10 @@ 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. |
* |
@@ -2457,7 +2759,7 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon |
@DocsEditable() |
@DomName('CharacterData') |
@Native("CharacterData") |
-class CharacterData extends Node implements ChildNode { |
+class CharacterData extends Node implements NonDocumentTypeChildNode, ChildNode { |
// To suppress missing implicit constructor warnings. |
factory CharacterData._() { throw new UnsupportedError("Not supported"); } |
@@ -2475,7 +2777,7 @@ class CharacterData extends Node implements ChildNode { |
@DomName('CharacterData.deleteData') |
@DocsEditable() |
- void deleteData(int offset, int length) native; |
+ void deleteData(int offset, int count) native; |
@DomName('CharacterData.insertData') |
@DocsEditable() |
@@ -2483,14 +2785,26 @@ class CharacterData extends Node implements ChildNode { |
@DomName('CharacterData.replaceData') |
@DocsEditable() |
- void replaceData(int offset, int length, String data) native; |
+ void replaceData(int offset, int count, String data) native; |
@DomName('CharacterData.substringData') |
@DocsEditable() |
- String substringData(int offset, int length) native; |
+ String substringData(int offset, int count) 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; |
@@ -2511,9 +2825,9 @@ abstract class ChildNode extends Interceptor { |
// To suppress missing implicit constructor warnings. |
factory ChildNode._() { throw new UnsupportedError("Not supported"); } |
- final Element nextElementSibling; |
+ void after(Object nodes); |
- final Element previousElementSibling; |
+ void before(Object nodes); |
void remove(); |
} |
@@ -2523,6 +2837,84 @@ abstract class ChildNode extends Interceptor { |
@DocsEditable() |
+@DomName('CHROMIUMSubscribeUniform') |
+@Experimental() // untriaged |
+@Native("CHROMIUMSubscribeUniform") |
+class ChromiumSubscribeUniform extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory ChromiumSubscribeUniform._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('CHROMIUMSubscribeUniform.MOUSE_POSITION_CHROMIUM') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ static const int MOUSE_POSITION_CHROMIUM = 0x924C; |
+ |
+ @DomName('CHROMIUMSubscribeUniform.SUBSCRIBED_VALUES_BUFFER_CHROMIUM') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ static const int SUBSCRIBED_VALUES_BUFFER_CHROMIUM = 0x924B; |
+ |
+ @JSName('bindValuebufferCHROMIUM') |
+ @DomName('CHROMIUMSubscribeUniform.bindValuebufferCHROMIUM') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void bindValuebufferChromium(int target, ChromiumValuebuffer buffer) native; |
+ |
+ @JSName('createValuebufferCHROMIUM') |
+ @DomName('CHROMIUMSubscribeUniform.createValuebufferCHROMIUM') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ ChromiumValuebuffer createValuebufferChromium() native; |
+ |
+ @JSName('deleteValuebufferCHROMIUM') |
+ @DomName('CHROMIUMSubscribeUniform.deleteValuebufferCHROMIUM') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void deleteValuebufferChromium(ChromiumValuebuffer buffer) native; |
+ |
+ @JSName('isValuebufferCHROMIUM') |
+ @DomName('CHROMIUMSubscribeUniform.isValuebufferCHROMIUM') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ bool isValuebufferChromium(ChromiumValuebuffer buffer) native; |
+ |
+ @JSName('populateSubscribedValuesCHROMIUM') |
+ @DomName('CHROMIUMSubscribeUniform.populateSubscribedValuesCHROMIUM') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void populateSubscribedValuesChromium(int target) native; |
+ |
+ @JSName('subscribeValueCHROMIUM') |
+ @DomName('CHROMIUMSubscribeUniform.subscribeValueCHROMIUM') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void subscribeValueChromium(int target, int subscriptions) native; |
+ |
+ @JSName('uniformValuebufferCHROMIUM') |
+ @DomName('CHROMIUMSubscribeUniform.uniformValuebufferCHROMIUM') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void uniformValuebufferChromium(UniformLocation location, int target, int subscription) 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('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") |
@@ -2569,12 +2961,138 @@ 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; |
@@ -2634,33 +3152,204 @@ 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 CompositionEvent._() { throw new UnsupportedError("Not supported"); } |
+ factory CompositorProxy._() { throw new UnsupportedError("Not supported"); } |
- @DomName('CompositionEvent.activeSegmentEnd') |
+ @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') |
@DocsEditable() |
@Experimental() // untriaged |
- final int activeSegmentEnd; |
+ num opacity; |
- @DomName('CompositionEvent.activeSegmentStart') |
+ @DomName('CompositorProxy.scrollLeft') |
@DocsEditable() |
@Experimental() // untriaged |
- final int activeSegmentStart; |
+ num scrollLeft; |
- @DomName('CompositionEvent.data') |
+ @DomName('CompositorProxy.scrollTop') |
@DocsEditable() |
- final String data; |
+ @Experimental() // untriaged |
+ num scrollTop; |
- @DomName('CompositionEvent.getSegments') |
+ @DomName('CompositorProxy.transform') |
@DocsEditable() |
@Experimental() // untriaged |
- List<int> getSegments() native; |
+ DomMatrix transform; |
- @JSName('initCompositionEvent') |
- @DomName('CompositionEvent.initCompositionEvent') |
+ @DomName('CompositorProxy.disconnect') |
@DocsEditable() |
- void _initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) native; |
+ @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') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message'); |
+ |
+ @DomName('CompositorWorkerGlobalScope.cancelAnimationFrame') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void cancelAnimationFrame(int handle) 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') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ int requestAnimationFrame(FrameRequestCallback callback) 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 |
@@ -2780,6 +3469,12 @@ 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 |
@@ -2881,11 +3576,11 @@ class Credential extends Interceptor { |
// To suppress missing implicit constructor warnings. |
factory Credential._() { throw new UnsupportedError("Not supported"); } |
- @JSName('avatarURL') |
- @DomName('Credential.avatarURL') |
+ @JSName('iconURL') |
+ @DomName('Credential.iconURL') |
@DocsEditable() |
@Experimental() // untriaged |
- final String avatarUrl; |
+ final String iconUrl; |
@DomName('Credential.id') |
@DocsEditable() |
@@ -2896,6 +3591,11 @@ 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 |
@@ -2910,21 +3610,11 @@ 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 |
@@ -2945,6 +3635,81 @@ 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 |
@@ -3031,12 +3796,12 @@ class Css extends Interceptor { |
@DomName('CSS.supports') |
@DocsEditable() |
- bool supports(String property, String value) native; |
+ static bool supports(String property, String value) native; |
@JSName('supports') |
@DomName('CSS.supports') |
@DocsEditable() |
- bool supportsCondition(String conditionText) native; |
+ static 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 |
@@ -3044,17 +3809,15 @@ class Css extends Interceptor { |
@DocsEditable() |
-@DomName('CSSCharsetRule') |
-// http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface |
-@Experimental() |
-@Native("CSSCharsetRule") |
-class CssCharsetRule extends CssRule { |
+@DomName('CSSFontFaceRule') |
+@Native("CSSFontFaceRule") |
+class CssFontFaceRule extends CssRule { |
// To suppress missing implicit constructor warnings. |
- factory CssCharsetRule._() { throw new UnsupportedError("Not supported"); } |
+ factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); } |
- @DomName('CSSCharsetRule.encoding') |
+ @DomName('CSSFontFaceRule.style') |
@DocsEditable() |
- String encoding; |
+ 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 |
@@ -3062,35 +3825,29 @@ class CssCharsetRule extends CssRule { |
@DocsEditable() |
-@DomName('WebKitCSSFilterRule') |
-@SupportedBrowser(SupportedBrowser.CHROME) |
-@SupportedBrowser(SupportedBrowser.SAFARI) |
-@Experimental() |
-// http://www.w3.org/TR/filter-effects/ |
-@Native("WebKitCSSFilterRule") |
-class CssFilterRule extends CssRule { |
+@DomName('CSSGroupingRule') |
+@Experimental() // untriaged |
+@Native("CSSGroupingRule") |
+class CssGroupingRule extends CssRule { |
// To suppress missing implicit constructor warnings. |
- factory CssFilterRule._() { throw new UnsupportedError("Not supported"); } |
+ factory CssGroupingRule._() { throw new UnsupportedError("Not supported"); } |
- @DomName('WebKitCSSFilterRule.style') |
+ @DomName('CSSGroupingRule.cssRules') |
@DocsEditable() |
- 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. |
- |
+ @Experimental() // untriaged |
+ @Returns('_CssRuleList') |
+ @Creates('_CssRuleList') |
+ final List<CssRule> cssRules; |
-@DocsEditable() |
-@DomName('CSSFontFaceRule') |
-@Native("CSSFontFaceRule") |
-class CssFontFaceRule extends CssRule { |
- // To suppress missing implicit constructor warnings. |
- factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); } |
+ @DomName('CSSGroupingRule.deleteRule') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void deleteRule(int index) native; |
- @DomName('CSSFontFaceRule.style') |
+ @DomName('CSSGroupingRule.insertRule') |
@DocsEditable() |
- final CssStyleDeclaration style; |
+ @Experimental() // untriaged |
+ 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 |
@@ -3169,21 +3926,20 @@ class CssKeyframesRule extends CssRule { |
@Experimental() // untriaged |
CssKeyframeRule __getter__(int index) native; |
- @DomName('CSSKeyframesRule.deleteRule') |
+ @DomName('CSSKeyframesRule.appendRule') |
@DocsEditable() |
@Experimental() // untriaged |
- void deleteRule(String key) native; |
+ void appendRule(String rule) native; |
- @DomName('CSSKeyframesRule.findRule') |
+ @DomName('CSSKeyframesRule.deleteRule') |
@DocsEditable() |
@Experimental() // untriaged |
- CssKeyframeRule findRule(String key) native; |
+ void deleteRule(String select) native; |
- @JSName('insertRule') |
- @DomName('CSSKeyframesRule.insertRule') |
+ @DomName('CSSKeyframesRule.findRule') |
@DocsEditable() |
@Experimental() // untriaged |
- void appendRule(String rule) native; |
+ CssKeyframeRule findRule(String select) 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 |
@@ -3193,27 +3949,13 @@ class CssKeyframesRule extends CssRule { |
@DocsEditable() |
@DomName('CSSMediaRule') |
@Native("CSSMediaRule") |
-class CssMediaRule extends CssRule { |
+class CssMediaRule extends CssGroupingRule { |
// 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 |
@@ -3290,12 +4032,6 @@ 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 |
@@ -3446,16 +4182,16 @@ class CssStyleDeclaration extends Interceptor with |
@DomName('CSSStyleDeclaration.__setter__') |
@DocsEditable() |
- void __setter__(String propertyName, String propertyValue) native; |
+ void __setter__(String property, String propertyValue) native; |
@DomName('CSSStyleDeclaration.getPropertyPriority') |
@DocsEditable() |
- String getPropertyPriority(String propertyName) native; |
+ String getPropertyPriority(String property) native; |
@JSName('getPropertyValue') |
@DomName('CSSStyleDeclaration.getPropertyValue') |
@DocsEditable() |
- String _getPropertyValue(String propertyName) native; |
+ String _getPropertyValue(String property) native; |
@DomName('CSSStyleDeclaration.item') |
@DocsEditable() |
@@ -3463,7 +4199,7 @@ class CssStyleDeclaration extends Interceptor with |
@DomName('CSSStyleDeclaration.removeProperty') |
@DocsEditable() |
- String removeProperty(String propertyName) native; |
+ String removeProperty(String property) native; |
/** Gets the value of "background" */ |
@@ -8188,8 +8924,18 @@ class CustomEvent extends Event { |
} |
return _detail; |
} |
- // To suppress missing implicit constructor warnings. |
- factory CustomEvent._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('CustomEvent.CustomEvent') |
+ @DocsEditable() |
+ factory CustomEvent._(String type, [Map eventInitDict]) { |
+ if (eventInitDict != null) { |
+ var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict); |
+ return CustomEvent._create_1(type, eventInitDict_1); |
+ } |
+ return CustomEvent._create_2(type); |
+ } |
+ static CustomEvent _create_1(type, eventInitDict) => JS('CustomEvent', 'new CustomEvent(#,#)', type, eventInitDict); |
+ static CustomEvent _create_2(type) => JS('CustomEvent', 'new CustomEvent(#)', type); |
@DomName('CustomEvent._detail') |
@DocsEditable() |
@@ -8205,7 +8951,7 @@ class CustomEvent extends Event { |
@JSName('initCustomEvent') |
@DomName('CustomEvent.initCustomEvent') |
@DocsEditable() |
- void _initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg) native; |
+ void _initCustomEvent(String type, bool bubbles, bool cancelable, Object detail) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -8308,17 +9054,17 @@ class DataTransfer extends Interceptor { |
@DomName('DataTransfer.clearData') |
@DocsEditable() |
@Experimental() // untriaged |
- void clearData([String type]) native; |
+ void clearData([String format]) native; |
@DomName('DataTransfer.getData') |
@DocsEditable() |
@Experimental() // untriaged |
- String getData(String type) native; |
+ String getData(String format) native; |
@DomName('DataTransfer.setData') |
@DocsEditable() |
@Experimental() // untriaged |
- void setData(String type, String data) native; |
+ void setData(String format, String data) native; |
@DomName('DataTransfer.setDragImage') |
@DocsEditable() |
@@ -8392,11 +9138,6 @@ 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; |
@@ -8415,6 +9156,10 @@ class DataTransferItemList extends Interceptor { |
@DocsEditable() |
void clear() native; |
+ @DomName('DataTransferItemList.item') |
+ @DocsEditable() |
+ DataTransferItem item(int index) native; |
+ |
@DomName('DataTransferItemList.remove') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -8497,6 +9242,36 @@ 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") |
@@ -8618,6 +9393,18 @@ 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 |
@@ -9156,6 +9943,11 @@ class Document extends Node |
@DocsEditable() |
final String _lastModified; |
+ @DomName('Document.origin') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String origin; |
+ |
@DomName('Document.pointerLockElement') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -9180,6 +9972,11 @@ class Document extends Node |
@Experimental() // untriaged |
final SvgSvgElement rootElement; |
+ @DomName('Document.scrollingElement') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final Element scrollingElement; |
+ |
@JSName('selectedStylesheetSet') |
@DomName('Document.selectedStylesheetSet') |
@DocsEditable() |
@@ -9286,16 +10083,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 webkitRadiusX, num webkitRadiusY, num webkitRotationAngle, num webkitForce) { |
+ Touch _createTouch(Window window, EventTarget target, int identifier, num pageX, num pageY, num screenX, num screenY, num radiusX, num radiusY, num rotationAngle, num force) { |
var target_1 = _convertDartToNative_EventTarget(target); |
- return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); |
+ return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, screenY, radiusX, radiusY, rotationAngle, force); |
} |
@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, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) native; |
+ Touch _createTouch_1(Window window, target, identifier, pageX, pageY, screenX, screenY, radiusX, radiusY, rotationAngle, force) native; |
@JSName('createTouchList') |
@DomName('Document.createTouchList') |
@@ -9309,9 +10106,14 @@ 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 command, bool userInterface, String value) native; |
+ bool execCommand(String commandId, [bool showUI, String value]) native; |
@DomName('Document.exitFullscreen') |
@DocsEditable() |
@@ -9330,10 +10132,6 @@ 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') |
@@ -9358,23 +10156,23 @@ class Document extends Node |
@DomName('Document.queryCommandEnabled') |
@DocsEditable() |
- bool queryCommandEnabled(String command) native; |
+ bool queryCommandEnabled(String commandId) native; |
@DomName('Document.queryCommandIndeterm') |
@DocsEditable() |
- bool queryCommandIndeterm(String command) native; |
+ bool queryCommandIndeterm(String commandId) native; |
@DomName('Document.queryCommandState') |
@DocsEditable() |
- bool queryCommandState(String command) native; |
+ bool queryCommandState(String commandId) native; |
@DomName('Document.queryCommandSupported') |
@DocsEditable() |
- bool queryCommandSupported(String command) native; |
+ bool queryCommandSupported(String commandId) native; |
@DomName('Document.queryCommandValue') |
@DocsEditable() |
- String queryCommandValue(String command) native; |
+ String queryCommandValue(String commandId) native; |
@DomName('Document.transformDocumentToTreeView') |
@DocsEditable() |
@@ -9390,6 +10188,12 @@ 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') |
@@ -9909,7 +10713,7 @@ class Document extends Node |
@DomName('DocumentFragment') |
@Native("DocumentFragment") |
-class DocumentFragment extends Node implements ParentNode { |
+class DocumentFragment extends Node implements NonElementParentNode, ParentNode { |
factory DocumentFragment() => document.createDocumentFragment(); |
factory DocumentFragment.html(String html, |
@@ -10024,6 +10828,8 @@ class DocumentFragment extends Node implements ParentNode { |
// To suppress missing implicit constructor warnings. |
factory DocumentFragment._() { throw new UnsupportedError("Not supported"); } |
+ // From NonElementParentNode |
+ |
@DomName('DocumentFragment.getElementById') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -10182,7 +10988,7 @@ class DomImplementation extends Interceptor { |
@DomName('DOMImplementation.hasFeature') |
@DocsEditable() |
- bool hasFeature(String feature, String version) native; |
+ bool hasFeature() 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 |
@@ -10396,17 +11202,17 @@ class DomMatrix extends DomMatrixReadOnly { |
@DomName('DOMMatrix.scale3dSelf') |
@DocsEditable() |
@Experimental() // untriaged |
- DomMatrix scale3dSelf(num scale, [num ox, num oy, num oz]) native; |
+ DomMatrix scale3dSelf(num scale, [num originX, num originY, num originZ]) native; |
@DomName('DOMMatrix.scaleNonUniformSelf') |
@DocsEditable() |
@Experimental() // untriaged |
- DomMatrix scaleNonUniformSelf(num sx, [num sy, num sz, num ox, num oy, num oz]) native; |
+ DomMatrix scaleNonUniformSelf(num scaleX, [num scaleY, num scaleZ, num originX, num originY, num originZ]) native; |
@DomName('DOMMatrix.scaleSelf') |
@DocsEditable() |
@Experimental() // untriaged |
- DomMatrix scaleSelf(num scale, [num ox, num oy]) native; |
+ DomMatrix scaleSelf(num scale, [num originX, num originY]) native; |
@DomName('DOMMatrix.translateSelf') |
@DocsEditable() |
@@ -10554,17 +11360,17 @@ class DomMatrixReadOnly extends Interceptor { |
@DomName('DOMMatrixReadOnly.scale') |
@DocsEditable() |
@Experimental() // untriaged |
- DomMatrix scale(num scale, [num ox, num oy]) native; |
+ DomMatrix scale(num scale, [num originX, num originY]) native; |
@DomName('DOMMatrixReadOnly.scale3d') |
@DocsEditable() |
@Experimental() // untriaged |
- DomMatrix scale3d(num scale, [num ox, num oy, num oz]) native; |
+ DomMatrix scale3d(num scale, [num originX, num originY, num originZ]) native; |
@DomName('DOMMatrixReadOnly.scaleNonUniform') |
@DocsEditable() |
@Experimental() // untriaged |
- DomMatrix scaleNonUniform(num sx, [num sy, num sz, num ox, num oy, num oz]) native; |
+ DomMatrix scaleNonUniform(num scaleX, [num scaleY, num scaleZn, num originX, num originY, num originZ]) native; |
@DomName('DOMMatrixReadOnly.toFloat32Array') |
@DocsEditable() |
@@ -10602,7 +11408,7 @@ class DomParser extends Interceptor { |
@DomName('DOMParser.parseFromString') |
@DocsEditable() |
- Document parseFromString(String str, String contentType) native; |
+ Document parseFromString(String str, String type) 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 |
@@ -10620,29 +11426,33 @@ class DomPoint extends DomPointReadOnly { |
@DomName('DOMPoint.DOMPoint') |
@DocsEditable() |
factory DomPoint([point_OR_x, num y, num z, num w]) { |
- if (point_OR_x == null && y == null && z == null && w == null) { |
- return DomPoint._create_1(); |
- } |
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); |
+ return DomPoint._create_1(point_1); |
+ } |
+ if (point_OR_x == null && y == null && z == null && w == null) { |
+ return DomPoint._create_2(); |
+ } |
+ if ((point_OR_x is num || point_OR_x == null) && y == null && z == null && w == null) { |
+ return DomPoint._create_3(point_OR_x); |
} |
if ((y is num || y == null) && (point_OR_x is num || point_OR_x == null) && z == null && w == null) { |
- return DomPoint._create_3(point_OR_x, y); |
+ return DomPoint._create_4(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_4(point_OR_x, y, z); |
+ return DomPoint._create_5(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_5(point_OR_x, y, z, w); |
+ return DomPoint._create_6(point_OR_x, y, z, w); |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- 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); |
+ 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); |
/// Checks if this type is supported on the current platform. |
static bool get supported => JS('bool', '!!(window.DOMPoint) || !!(window.WebKitPoint)'); |
@@ -10881,10 +11691,6 @@ 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 |
@@ -10894,7 +11700,7 @@ class DomSettableTokenList extends DomTokenList { |
@DocsEditable() |
@DomName('DOMStringList') |
@Native("DOMStringList") |
-class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMixin<String> implements JavaScriptIndexingBehavior, List<String> { |
+class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMixin<String> implements List<String> { |
// To suppress missing implicit constructor warnings. |
factory DomStringList._() { throw new UnsupportedError("Not supported"); } |
@@ -10906,7 +11712,7 @@ class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix |
if (JS("bool", "# >>> 0 !== # || # >= #", index, |
index, index, length)) |
throw new RangeError.index(index, this); |
- return JS("String", "#[#]", this, index); |
+ return this.item(index); |
} |
void operator[]=(int index, String value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
@@ -10946,6 +11752,11 @@ 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; |
@@ -10965,11 +11776,13 @@ abstract class DomStringMap extends Interceptor { |
// To suppress missing implicit constructor warnings. |
factory DomStringMap._() { throw new UnsupportedError("Not supported"); } |
- bool __delete__(index_OR_name); |
+ void __delete__(index_OR_name); |
- String __getter__(index_OR_name); |
+ String __getter__(int index); |
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 |
@@ -11014,6 +11827,19 @@ 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. |
@@ -12267,7 +13093,7 @@ class _FrozenElementList extends ListBase |
*/ |
@DomName('Element') |
@Native("Element") |
-class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode { |
+class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandlers, ParentNode, ChildNode { |
/** |
* Creates an HTML element from a valid fragment of HTML. |
@@ -12730,7 +13556,7 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
* 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 AnimationPlayer for the effect. |
+ * to the method. Returns an Animation for the effect. |
* |
* Examples |
* |
@@ -12749,7 +13575,7 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
**/ |
@Experimental() |
@SupportedBrowser(SupportedBrowser.CHROME, '36') |
- AnimationPlayer animate(Iterable<Map<String, dynamic>> frames, [timing]) { |
+ Animation 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"); |
@@ -12770,7 +13596,7 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
@DomName('Element.animate') |
@JSName('animate') |
@Experimental() // untriaged |
- AnimationPlayer _animate(Object effect, [timing]) native; |
+ Animation _animate(Object effect, [timing]) native; |
/** |
* Called by the DOM whenever an attribute on this has been changed. |
*/ |
@@ -13391,6 +14217,10 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
return result; |
} |
+ @DomName('Element.offsetParent') |
+ @DocsEditable() |
+ final Element offsetParent; |
+ |
@DomName('Element.offsetHeight') |
@DocsEditable() |
int get offsetHeight => JS('num', '#.offsetHeight', this).round(); |
@@ -13407,22 +14237,6 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
@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(); |
@@ -14170,6 +14984,10 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
@Experimental() // nonstandard |
bool spellcheck; |
+ @DomName('Element.style') |
+ @DocsEditable() |
+ final CssStyleDeclaration style; |
+ |
@DomName('Element.tabIndex') |
@DocsEditable() |
int tabIndex; |
@@ -14217,10 +15035,18 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
// 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() |
@@ -14230,25 +15056,31 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
@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; |
+ final int clientWidth; |
+ |
+ @DomName('Element.computedName') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String computedName; |
+ |
+ @DomName('Element.computedRole') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String computedRole; |
@DomName('Element.id') |
@DocsEditable() |
@@ -14265,30 +15097,6 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
// 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() |
@@ -14314,26 +15122,19 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
@DocsEditable() |
final int _scrollWidth; |
- @DomName('Element.style') |
- @DocsEditable() |
- final CssStyleDeclaration style; |
- |
@DomName('Element.tagName') |
@DocsEditable() |
final String tagName; |
- @DomName('Element.blur') |
+ @DomName('Element.closest') |
@DocsEditable() |
- void blur() native; |
- |
- @DomName('Element.focus') |
- @DocsEditable() |
- void focus() native; |
+ @Experimental() // untriaged |
+ Element closest(String selectors) native; |
- @DomName('Element.getAnimationPlayers') |
+ @DomName('Element.getAnimations') |
@DocsEditable() |
@Experimental() // untriaged |
- List<AnimationPlayer> getAnimationPlayers() native; |
+ List<Animation> getAnimations() native; |
@DomName('Element.getAttribute') |
@DocsEditable() |
@@ -14416,7 +15217,7 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
@DocsEditable() |
@Creates('NodeList|HtmlCollection') |
@Returns('NodeList|HtmlCollection') |
- List<Node> _getElementsByTagName(String name) native; |
+ List<Node> _getElementsByTagName(String localName) native; |
@JSName('hasAttribute') |
@DomName('Element.hasAttribute') |
@@ -14448,6 +15249,76 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
@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() |
@@ -14460,16 +15331,63 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode |
@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 qualifiedName, String value) native; |
+ void setAttributeNS(String namespaceURI, String name, 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; |
@@ -15067,11 +15985,6 @@ class EmbedElement extends HtmlElement { |
@DocsEditable() |
String height; |
- @DomName('HTMLEmbedElement.integrity') |
- @DocsEditable() |
- @Experimental() // untriaged |
- String integrity; |
- |
@DomName('HTMLEmbedElement.name') |
@DocsEditable() |
String name; |
@@ -15261,6 +16174,18 @@ 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 |
@@ -15292,7 +16217,7 @@ class ErrorEvent extends Event { |
@DomName('Event') |
-@Native("Event,InputEvent,ClipboardEvent") |
+@Native("Event,InputEvent") |
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 |
@@ -15343,8 +16268,18 @@ class Event extends Interceptor { |
} while (target != null && target != currentTarget.parent); |
throw new StateError('No selector matched for populating matchedTarget.'); |
} |
- // To suppress missing implicit constructor warnings. |
- factory Event._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @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); |
/** |
* This event is being handled by the event target. |
@@ -15391,24 +16326,6 @@ 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); |
@@ -15416,7 +16333,7 @@ class Event extends Interceptor { |
@DomName('Event.currentTarget') |
@DocsEditable() |
@Creates('Null') |
- @Returns('EventTarget|=Object|Null') |
+ @Returns('EventTarget|=Object') |
final dynamic _get_currentTarget; |
@DomName('Event.defaultPrevented') |
@@ -15440,9 +16357,7 @@ class Event extends Interceptor { |
@DocsEditable() |
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#extensions-to-event |
@Experimental() |
- @Returns('NodeList') |
- @Creates('NodeList') |
- final List<Node> path; |
+ final List<EventTarget> path; |
@DomName('Event.target') |
@DocsEditable() |
@@ -15451,7 +16366,7 @@ class Event extends Interceptor { |
@DomName('Event.target') |
@DocsEditable() |
@Creates('Node') |
- @Returns('EventTarget|=Object|Null') |
+ @Returns('EventTarget|=Object') |
final dynamic _get_target; |
@DomName('Event.timeStamp') |
@@ -15465,7 +16380,7 @@ class Event extends Interceptor { |
@JSName('initEvent') |
@DomName('Event.initEvent') |
@DocsEditable() |
- void _initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) native; |
+ void _initEvent(String type, bool bubbles, bool cancelable) native; |
@DomName('Event.preventDefault') |
@DocsEditable() |
@@ -15531,14 +16446,14 @@ class EventSource extends EventTarget { |
@DomName('EventSource.EventSource') |
@DocsEditable() |
- static EventSource _factoryEventSource(String url, [Map eventSourceInit]) { |
- if (eventSourceInit != null) { |
- var eventSourceInit_1 = convertDartToNative_Dictionary(eventSourceInit); |
- return EventSource._create_1(url, eventSourceInit_1); |
+ static EventSource _factoryEventSource(String url, [Map eventSourceInitDict]) { |
+ if (eventSourceInitDict != null) { |
+ var eventSourceInitDict_1 = convertDartToNative_Dictionary(eventSourceInitDict); |
+ return EventSource._create_1(url, eventSourceInitDict_1); |
} |
return EventSource._create_2(url); |
} |
- static EventSource _create_1(url, eventSourceInit) => JS('EventSource', 'new EventSource(#,#)', url, eventSourceInit); |
+ static EventSource _create_1(url, eventSourceInitDict) => JS('EventSource', 'new EventSource(#,#)', url, eventSourceInitDict); |
static EventSource _create_2(url) => JS('EventSource', 'new EventSource(#)', url); |
@DomName('EventSource.CLOSED') |
@@ -15713,7 +16628,7 @@ class EventTarget extends Interceptor { |
@JSName('addEventListener') |
@DomName('EventTarget.addEventListener') |
@DocsEditable() |
- void _addEventListener([String type, EventListener listener, bool useCapture]) native; |
+ void _addEventListener(String type, EventListener listener, [bool capture]) native; |
@DomName('EventTarget.dispatchEvent') |
@DocsEditable() |
@@ -15722,7 +16637,7 @@ class EventTarget extends Interceptor { |
@JSName('removeEventListener') |
@DomName('EventTarget.removeEventListener') |
@DocsEditable() |
- void _removeEventListener([String type, EventListener listener, bool useCapture]) native; |
+ void _removeEventListener(String type, EventListener listener, [bool capture]) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -15738,6 +16653,18 @@ 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 |
@@ -15758,15 +16685,21 @@ class FederatedCredential extends Credential { |
@DomName('FederatedCredential.FederatedCredential') |
@DocsEditable() |
- factory FederatedCredential(String id, String name, String avatarURL, String federation) { |
- return FederatedCredential._create_1(id, name, avatarURL, federation); |
+ factory FederatedCredential(Map data) { |
+ var data_1 = convertDartToNative_Dictionary(data); |
+ return FederatedCredential._create_1(data_1); |
} |
- static FederatedCredential _create_1(id, name, avatarURL, federation) => JS('FederatedCredential', 'new FederatedCredential(#,#,#,#)', id, name, avatarURL, federation); |
+ static FederatedCredential _create_1(data) => JS('FederatedCredential', 'new FederatedCredential(#)', data); |
+ |
+ @DomName('FederatedCredential.protocol') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String protocol; |
- @DomName('FederatedCredential.federation') |
+ @DomName('FederatedCredential.provider') |
@DocsEditable() |
@Experimental() // untriaged |
- final String federation; |
+ final String provider; |
} |
// 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 |
@@ -15777,10 +16710,22 @@ class FederatedCredential extends Credential { |
@DomName('FetchEvent') |
@Experimental() // untriaged |
@Native("FetchEvent") |
-class FetchEvent extends Event { |
+class FetchEvent extends ExtendableEvent { |
// 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 |
@@ -15825,9 +16770,7 @@ class FieldSetElement extends HtmlElement { |
@DomName('HTMLFieldSetElement.elements') |
@DocsEditable() |
- @Returns('HtmlCollection') |
- @Creates('HtmlCollection') |
- final List<Node> elements; |
+ final HtmlFormControlsCollection elements; |
@DomName('HTMLFieldSetElement.form') |
@DocsEditable() |
@@ -15857,6 +16800,11 @@ 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; |
@@ -15873,6 +16821,18 @@ 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 |
@@ -16212,7 +17172,7 @@ class FileReader extends EventTarget { |
@DomName('FileReader.readAsText') |
@DocsEditable() |
- void readAsText(Blob blob, [String encoding]) native; |
+ void readAsText(Blob blob, [String label]) native; |
/// Stream of `abort` events handled by this [FileReader]. |
@DomName('FileReader.onabort') |
@@ -16471,6 +17431,18 @@ 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); |
@@ -16495,36 +17467,15 @@ class FontFace extends Interceptor { |
@DomName('FontFace.FontFace') |
@DocsEditable() |
- 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_2(family, source, descriptors_1); |
- } |
- if ((source is TypedData || source == null) && (family is String || family == null) && descriptors == null) { |
- return FontFace._create_3(family, source); |
- } |
- if ((descriptors is Map || descriptors == null) && (source is TypedData || source == null) && (family is String || family == null)) { |
+ factory FontFace(String family, Object source, [Map descriptors]) { |
+ if (descriptors != null) { |
var descriptors_1 = convertDartToNative_Dictionary(descriptors); |
- return FontFace._create_4(family, source, descriptors_1); |
+ return FontFace._create_1(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"); |
+ return FontFace._create_2(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); |
+ 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); |
@DomName('FontFace.family') |
@DocsEditable() |
@@ -16695,6 +17646,31 @@ 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 |
@@ -16762,12 +17738,22 @@ class FormElement extends HtmlElement { |
@DomName('HTMLFormElement.__getter__') |
@DocsEditable() |
- Element __getter__(index_OR_name) native; |
+ Object __getter__(String 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 |
@@ -16796,6 +17782,16 @@ 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') |
@@ -16810,6 +17806,10 @@ class Gamepad extends Interceptor { |
@DocsEditable() |
final List<num> axes; |
+ @DomName('Gamepad.buttons') |
+ @DocsEditable() |
+ final List<GamepadButton> buttons; |
+ |
@DomName('Gamepad.connected') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -16868,6 +17868,18 @@ 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 |
@@ -16907,6 +17919,29 @@ 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") |
@@ -17699,8 +18734,18 @@ class HashChangeEvent extends Event { |
type, convertDartToNative_Dictionary(options)); |
} |
- // To suppress missing implicit constructor warnings. |
- factory HashChangeEvent._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @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); |
/// Checks if this type is supported on the current platform. |
static bool get supported => Device.isEventTypeSupported('HashChangeEvent'); |
@@ -17762,43 +18807,27 @@ class Headers extends Interceptor { |
if (input == null) { |
return Headers._create_1(); |
} |
- if ((input is Headers || input == null)) { |
+ if ((input is Headers)) { |
return Headers._create_2(input); |
} |
- if ((input is Map || input == null)) { |
+ if ((input is Map)) { |
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); |
- |
- @DomName('Headers.size') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final int size; |
- |
- @DomName('Headers.forEach') |
- @DocsEditable() |
- @Experimental() // untriaged |
- void forEach(HeadersForEachCallback callback, [Object thisArg]) native; |
+ static Headers _create_4(input) => JS('Headers', 'new Headers(#)', input); |
} |
// 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') |
@@ -17863,6 +18892,16 @@ 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); |
@@ -17883,7 +18922,7 @@ class History extends Interceptor implements HistoryBase { |
@DomName('History.go') |
@DocsEditable() |
- void go(int distance) native; |
+ void go([int delta]) native; |
@DomName('History.pushState') |
@DocsEditable() |
@@ -17891,14 +18930,15 @@ class History extends Interceptor implements HistoryBase { |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
- void pushState(/*any*/ data, String title, [String url]) { |
- if (url != null) { |
+ void pushState(/*SerializedScriptValue*/ data, String title, String url, [Map options]) { |
+ if (options != null) { |
var data_1 = convertDartToNative_SerializedScriptValue(data); |
- _pushState_1(data_1, title, url); |
+ var options_2 = convertDartToNative_Dictionary(options); |
+ _pushState_1(data_1, title, url, options_2); |
return; |
} |
var data_1 = convertDartToNative_SerializedScriptValue(data); |
- _pushState_2(data_1, title); |
+ _pushState_2(data_1, title, url); |
return; |
} |
@JSName('pushState') |
@@ -17908,7 +18948,7 @@ class History extends Interceptor implements HistoryBase { |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
- void _pushState_1(data, title, url) native; |
+ void _pushState_1(data, title, url, options) native; |
@JSName('pushState') |
@DomName('History.pushState') |
@DocsEditable() |
@@ -17916,7 +18956,7 @@ class History extends Interceptor implements HistoryBase { |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
- void _pushState_2(data, title) native; |
+ void _pushState_2(data, title, url) native; |
@DomName('History.replaceState') |
@DocsEditable() |
@@ -17924,14 +18964,15 @@ class History extends Interceptor implements HistoryBase { |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
- void replaceState(/*any*/ data, String title, [String url]) { |
- if (url != null) { |
+ void replaceState(/*SerializedScriptValue*/ data, String title, String url, [Map options]) { |
+ if (options != null) { |
var data_1 = convertDartToNative_SerializedScriptValue(data); |
- _replaceState_1(data_1, title, url); |
+ var options_2 = convertDartToNative_Dictionary(options); |
+ _replaceState_1(data_1, title, url, options_2); |
return; |
} |
var data_1 = convertDartToNative_SerializedScriptValue(data); |
- _replaceState_2(data_1, title); |
+ _replaceState_2(data_1, title, url); |
return; |
} |
@JSName('replaceState') |
@@ -17941,7 +18982,7 @@ class History extends Interceptor implements HistoryBase { |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
- void _replaceState_1(data, title, url) native; |
+ void _replaceState_1(data, title, url, options) native; |
@JSName('replaceState') |
@DomName('History.replaceState') |
@DocsEditable() |
@@ -17949,7 +18990,30 @@ class History extends Interceptor implements HistoryBase { |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@SupportedBrowser(SupportedBrowser.IE, '10') |
@SupportedBrowser(SupportedBrowser.SAFARI) |
- void _replaceState_2(data, title) native; |
+ 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; |
} |
// 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 |
@@ -18309,6 +19373,11 @@ 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; |
@@ -18346,6 +19415,12 @@ 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 |
@@ -18989,7 +20064,7 @@ class HttpRequest extends HttpRequestEventTarget { |
@DomName('XMLHttpRequest.getResponseHeader') |
@DocsEditable() |
@Unstable() |
- String getResponseHeader(String header) native; |
+ String getResponseHeader(String name) native; |
/** |
* Specify a particular MIME type (such as `text/xml`) desired for the |
@@ -19003,7 +20078,7 @@ class HttpRequest extends HttpRequestEventTarget { |
@SupportedBrowser(SupportedBrowser.CHROME) |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@SupportedBrowser(SupportedBrowser.SAFARI) |
- void overrideMimeType(String override) native; |
+ void overrideMimeType(String mime) native; |
/** |
* Send the request with any given `data`. |
@@ -19020,7 +20095,7 @@ class HttpRequest extends HttpRequestEventTarget { |
*/ |
@DomName('XMLHttpRequest.send') |
@DocsEditable() |
- void send([data]) native; |
+ void send([body_OR_data]) native; |
/** |
* Sets the value of an HTTP requst header. |
@@ -19041,7 +20116,7 @@ class HttpRequest extends HttpRequestEventTarget { |
*/ |
@DomName('XMLHttpRequest.setRequestHeader') |
@DocsEditable() |
- void setRequestHeader(String header, String value) native; |
+ void setRequestHeader(String name, String value) native; |
/// Stream of `readystatechange` events handled by this [HttpRequest]. |
/** |
@@ -19248,18 +20323,13 @@ 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() |
- String sandbox; |
+ final DomSettableTokenList sandbox; |
@DomName('HTMLIFrameElement.src') |
@DocsEditable() |
@@ -19309,21 +20379,21 @@ class ImageData extends Interceptor { |
@DomName('ImageData.ImageData') |
@DocsEditable() |
- 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); |
+ 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); |
} |
- 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_OR_sw is int) && (data_OR_sw is Uint8ClampedList) && sh == null) { |
+ return ImageData._create_2(data_OR_sw, sh_OR_sw); |
} |
- 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); |
+ 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); |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- 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); |
+ 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); |
@DomName('ImageData.data') |
@DocsEditable() |
@@ -19388,11 +20458,6 @@ class ImageElement extends HtmlElement implements CanvasImageSource { |
@DocsEditable() |
int height; |
- @DomName('HTMLImageElement.integrity') |
- @DocsEditable() |
- @Experimental() // untriaged |
- String integrity; |
- |
@DomName('HTMLImageElement.isMap') |
@DocsEditable() |
bool isMap; |
@@ -19451,6 +20516,36 @@ 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 |
@@ -19504,6 +20599,11 @@ class InputElement extends HtmlElement implements |
@DocsEditable() |
String alt; |
+ @DomName('HTMLInputElement.autocapitalize') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ String autocapitalize; |
+ |
@DomName('HTMLInputElement.autocomplete') |
@DocsEditable() |
String autocomplete; |
@@ -19608,6 +20708,11 @@ class InputElement extends HtmlElement implements |
@DocsEditable() |
String min; |
+ @DomName('HTMLInputElement.minLength') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ int minLength; |
+ |
@DomName('HTMLInputElement.multiple') |
@DocsEditable() |
bool multiple; |
@@ -19722,6 +20827,11 @@ 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; |
@@ -20309,66 +21419,6 @@ 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. |
* |
@@ -20430,8 +21480,18 @@ class KeyboardEvent extends UIEvent { |
@DomName('KeyboardEvent.charCode') |
int get charCode => _charCode; |
- // To suppress missing implicit constructor warnings. |
- factory KeyboardEvent._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @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); |
@DomName('KeyboardEvent.DOM_KEY_LOCATION_LEFT') |
@DocsEditable() |
@@ -20457,10 +21517,26 @@ 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() |
@@ -20490,10 +21566,13 @@ class KeyboardEvent extends UIEvent { |
@DocsEditable() |
final bool shiftKey; |
+ // Use implementation from UIEvent. |
+ // final int which; |
+ |
@DomName('KeyboardEvent.getModifierState') |
@DocsEditable() |
@Experimental() // untriaged |
- bool getModifierState(String keyArgument) native; |
+ bool getModifierState(String keyArg) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -20502,6 +21581,38 @@ 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) |
@@ -20576,6 +21687,11 @@ 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; |
@@ -20742,31 +21858,6 @@ 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. |
@@ -20847,27 +21938,6 @@ 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') |
@@ -21010,12 +22080,33 @@ 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. |
- |
-@DomName('MediaDeviceInfoCallback') |
+@DocsEditable() |
+@DomName('MediaDevices') |
@Experimental() // untriaged |
-typedef void MediaDeviceInfoCallback(List<MediaDeviceInfo> devices); |
+@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; |
+} |
// 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. |
@@ -21181,11 +22272,6 @@ class MediaElement extends HtmlElement { |
@DocsEditable() |
final MediaError error; |
- @DomName('HTMLMediaElement.integrity') |
- @DocsEditable() |
- @Experimental() // untriaged |
- String integrity; |
- |
@DomName('HTMLMediaElement.loop') |
@DocsEditable() |
bool loop; |
@@ -21236,6 +22322,16 @@ 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; |
@@ -21301,6 +22397,11 @@ 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() |
@@ -21362,6 +22463,41 @@ 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") |
@@ -21377,12 +22513,6 @@ 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; |
@@ -21456,6 +22586,18 @@ 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() |
@@ -21499,37 +22641,26 @@ class MediaKeyMessageEvent extends Event { |
// To suppress missing implicit constructor warnings. |
factory MediaKeyMessageEvent._() { throw new UnsupportedError("Not supported"); } |
- @JSName('destinationURL') |
- @DomName('MediaKeyMessageEvent.destinationURL') |
+ @DomName('MediaKeyMessageEvent.MediaKeyMessageEvent') |
@DocsEditable() |
- final String destinationUrl; |
+ 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); |
@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. |
- |
-@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') |
+ @DomName('MediaKeyMessageEvent.messageType') |
@DocsEditable() |
@Experimental() // untriaged |
- final String contentType; |
- |
- @DomName('MediaKeyNeededEvent.initData') |
- @DocsEditable() |
- final Uint8List initData; |
+ final String messageType; |
} |
// 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 |
@@ -21550,32 +22681,43 @@ class MediaKeySession extends EventTarget { |
@Experimental() // untriaged |
final Future closed; |
- @DomName('MediaKeySession.error') |
+ @DomName('MediaKeySession.expiration') |
@DocsEditable() |
- final MediaKeyError error; |
+ @Experimental() // untriaged |
+ final double expiration; |
- @DomName('MediaKeySession.keySystem') |
+ @DomName('MediaKeySession.keyStatuses') |
@DocsEditable() |
- final String keySystem; |
+ @Experimental() // untriaged |
+ final MediaKeyStatusMap keyStatuses; |
@DomName('MediaKeySession.sessionId') |
@DocsEditable() |
final String sessionId; |
+ @DomName('MediaKeySession.close') |
+ @DocsEditable() |
+ Future close() native; |
+ |
@DomName('MediaKeySession.generateRequest') |
@DocsEditable() |
@Experimental() // untriaged |
- Future generateRequest(String initDataType, initData) native; |
+ Future generateRequest(String initDataType, /*BufferSource*/ initData) native; |
- @DomName('MediaKeySession.release') |
+ @DomName('MediaKeySession.load') |
@DocsEditable() |
@Experimental() // untriaged |
- Future release() native; |
+ Future load(String sessionId) native; |
+ |
+ @DomName('MediaKeySession.remove') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ Future remove() native; |
@JSName('update') |
@DomName('MediaKeySession.update') |
@DocsEditable() |
- Future _update(response) native; |
+ 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 |
@@ -21583,32 +22725,76 @@ class MediaKeySession extends EventTarget { |
@DocsEditable() |
-@DomName('MediaKeys') |
-// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html |
-@Experimental() |
-@Native("MediaKeys") |
-class MediaKeys extends Interceptor { |
+@DomName('MediaKeyStatusMap') |
+@Experimental() // untriaged |
+@Native("MediaKeyStatusMap") |
+class MediaKeyStatusMap extends Interceptor { |
// To suppress missing implicit constructor warnings. |
- factory MediaKeys._() { throw new UnsupportedError("Not supported"); } |
+ factory MediaKeyStatusMap._() { throw new UnsupportedError("Not supported"); } |
- @DomName('MediaKeys.keySystem') |
+ @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('MediaKeys.create') |
+ @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 |
- static Future create(String keySystem) native; |
+ _getConfiguration_1() 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('MediaKeys') |
+// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html |
+@Experimental() |
+@Native("MediaKeys") |
+class MediaKeys extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory MediaKeys._() { throw new UnsupportedError("Not supported"); } |
@JSName('createSession') |
@DomName('MediaKeys.createSession') |
@DocsEditable() |
MediaKeySession _createSession([String sessionType]) native; |
- @DomName('MediaKeys.isTypeSupported') |
+ @DomName('MediaKeys.setServerCertificate') |
@DocsEditable() |
@Experimental() // untriaged |
- static bool isTypeSupported(String keySystem, String contentType) native; |
+ Future setServerCertificate(/*BufferSource*/ serverCertificate) 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 |
@@ -21633,11 +22819,11 @@ class MediaList extends Interceptor { |
@DomName('MediaList.appendMedium') |
@DocsEditable() |
- void appendMedium(String newMedium) native; |
+ void appendMedium(String medium) native; |
@DomName('MediaList.deleteMedium') |
@DocsEditable() |
- void deleteMedium(String oldMedium) native; |
+ void deleteMedium(String medium) native; |
@DomName('MediaList.item') |
@DocsEditable() |
@@ -21695,6 +22881,18 @@ 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 |
@@ -21711,6 +22909,36 @@ 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') |
@@ -21825,6 +23053,11 @@ 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; |
@@ -21922,6 +23155,18 @@ 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'); |
@@ -22175,11 +23420,21 @@ 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 |
@@ -22234,12 +23489,14 @@ 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() |
@@ -22247,6 +23504,20 @@ class MessageEvent extends Event { |
@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() |
@@ -22269,7 +23540,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> messagePorts) native; |
+ void _initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, List<MessagePort> portsArg) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -22475,26 +23746,6 @@ 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; |
@@ -22507,16 +23758,6 @@ 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 |
@@ -22532,6 +23773,18 @@ 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; |
@@ -22582,31 +23835,6 @@ 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 |
@@ -22622,6 +23850,18 @@ 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; |
@@ -22665,31 +23905,6 @@ 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 |
@@ -22705,15 +23920,10 @@ class MidiPort extends EventTarget { |
// To suppress missing implicit constructor warnings. |
factory MidiPort._() { throw new UnsupportedError("Not supported"); } |
- /** |
- * 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') |
+ @DomName('MIDIPort.connection') |
@DocsEditable() |
- static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const EventStreamProvider<MidiConnectionEvent>('disconnect'); |
+ @Experimental() // untriaged |
+ final String connection; |
@DomName('MIDIPort.id') |
@DocsEditable() |
@@ -22727,6 +23937,11 @@ class MidiPort extends EventTarget { |
@DocsEditable() |
final String name; |
+ @DomName('MIDIPort.state') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String state; |
+ |
@DomName('MIDIPort.type') |
@DocsEditable() |
final String type; |
@@ -22735,10 +23950,15 @@ class MidiPort extends EventTarget { |
@DocsEditable() |
final String version; |
- /// Stream of `disconnect` events handled by this [MidiPort]. |
- @DomName('MIDIPort.ondisconnect') |
+ @DomName('MIDIPort.close') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ Future close() native; |
+ |
+ @DomName('MIDIPort.open') |
@DocsEditable() |
- Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.forTarget(this); |
+ @Experimental() // untriaged |
+ Future open() 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 |
@@ -22830,10 +24050,6 @@ 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; |
@@ -22875,7 +24091,7 @@ class ModElement extends HtmlElement { |
@DomName('MouseEvent') |
-@Native("MouseEvent,DragEvent,PointerEvent,MSPointerEvent") |
+@Native("MouseEvent,DragEvent") |
class MouseEvent extends UIEvent { |
factory MouseEvent(String type, |
{Window view, int detail: 0, int screenX: 0, int screenY: 0, |
@@ -22892,8 +24108,18 @@ class MouseEvent extends UIEvent { |
button, relatedTarget); |
return event; |
} |
- // To suppress missing implicit constructor warnings. |
- factory MouseEvent._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @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); |
@DomName('MouseEvent.altKey') |
@DocsEditable() |
@@ -22903,6 +24129,11 @@ class MouseEvent extends UIEvent { |
@DocsEditable() |
final int button; |
+ @DomName('MouseEvent.buttons') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final int buttons; |
+ |
@JSName('clientX') |
@DomName('MouseEvent.clientX') |
@DocsEditable() |
@@ -22934,6 +24165,18 @@ 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; |
@@ -22950,6 +24193,18 @@ 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 |
@@ -22962,7 +24217,7 @@ class MouseEvent extends UIEvent { |
@DomName('MouseEvent.relatedTarget') |
@DocsEditable() |
@Creates('Node') |
- @Returns('EventTarget|=Object|Null') |
+ @Returns('EventTarget|=Object') |
final dynamic _get_relatedTarget; |
@JSName('screenX') |
@@ -23007,17 +24262,20 @@ class MouseEvent extends UIEvent { |
@Experimental() |
final int _webkitMovementY; |
+ // Use implementation from UIEvent. |
+ // final int which; |
+ |
@DomName('MouseEvent.initMouseEvent') |
@DocsEditable() |
- 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) { |
+ 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) { |
var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget); |
- _initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget_1); |
+ _initMouseEvent_1(type, bubbles, 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, canBubble, cancelable, Window view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) native; |
+ void _initMouseEvent_1(type, bubbles, cancelable, Window view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) native; |
@DomName('MouseEvent.clientX') |
@@ -23237,7 +24495,7 @@ class MutationRecord extends Interceptor { |
@DomName('Navigator') |
@Native("Navigator") |
-class Navigator extends Interceptor implements NavigatorCpu, NavigatorLanguage, NavigatorOnLine, NavigatorID { |
+class Navigator extends Interceptor implements NavigatorStorageUtils, NavigatorCpu, NavigatorLanguage, NavigatorOnLine, NavigatorID { |
@DomName('Navigator.language') |
String get language => JS('String', '#.language || #.userLanguage', this, |
@@ -23313,15 +24571,15 @@ class Navigator extends Interceptor implements NavigatorCpu, NavigatorLanguage, |
// To suppress missing implicit constructor warnings. |
factory Navigator._() { throw new UnsupportedError("Not supported"); } |
- @DomName('Navigator.connection') |
+ @DomName('Navigator.bluetooth') |
@DocsEditable() |
@Experimental() // untriaged |
- final NetworkInformation connection; |
+ final Bluetooth bluetooth; |
- @DomName('Navigator.cookieEnabled') |
+ @DomName('Navigator.connection') |
@DocsEditable() |
- @Unstable() |
- final bool cookieEnabled; |
+ @Experimental() // untriaged |
+ final NetworkInformation connection; |
@DomName('Navigator.credentials') |
@DocsEditable() |
@@ -23334,11 +24592,6 @@ class Navigator extends Interceptor implements NavigatorCpu, NavigatorLanguage, |
@Experimental() // experimental |
final String doNotTrack; |
- @DomName('Navigator.geofencing') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final Geofencing geofencing; |
- |
@DomName('Navigator.geolocation') |
@DocsEditable() |
@Unstable() |
@@ -23349,11 +24602,21 @@ class Navigator extends Interceptor implements NavigatorCpu, NavigatorLanguage, |
@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 |
@@ -23364,15 +24627,15 @@ class Navigator extends Interceptor implements NavigatorCpu, NavigatorLanguage, |
@Unstable() |
final String productSub; |
- @DomName('Navigator.push') |
+ @DomName('Navigator.serviceWorker') |
@DocsEditable() |
@Experimental() // untriaged |
- final PushManager push; |
+ final ServiceWorkerContainer serviceWorker; |
- @DomName('Navigator.serviceWorker') |
+ @DomName('Navigator.services') |
@DocsEditable() |
@Experimental() // untriaged |
- final ServiceWorkerContainer serviceWorker; |
+ final ServicePortCollection services; |
@DomName('Navigator.storageQuota') |
@DocsEditable() |
@@ -23419,21 +24682,46 @@ class Navigator extends Interceptor implements NavigatorCpu, NavigatorLanguage, |
@Creates('_GamepadList') |
List<Gamepad> getGamepads() native; |
- @DomName('Navigator.getStorageUpdates') |
+ @DomName('Navigator.getVRDevices') |
@DocsEditable() |
- // http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#navigatorstorageutils |
- @Experimental() |
- void getStorageUpdates() native; |
+ @Experimental() // untriaged |
+ Future getVRDevices() 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, data) native; |
+ bool sendBeacon(String url, Object data) native; |
// From NavigatorCPU |
@@ -23489,6 +24777,19 @@ class Navigator extends Interceptor implements NavigatorCpu, NavigatorLanguage, |
@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 |
@@ -23566,6 +24867,29 @@ 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() |
@@ -24141,7 +25465,7 @@ class Node extends EventTarget { |
*/ |
@DomName('Node.appendChild') |
@DocsEditable() |
- Node append(Node newChild) native; |
+ Node append(Node node) native; |
@JSName('cloneNode') |
/** |
@@ -24193,17 +25517,17 @@ class Node extends EventTarget { |
*/ |
@DomName('Node.insertBefore') |
@DocsEditable() |
- Node insertBefore(Node newChild, Node refChild) native; |
+ Node insertBefore(Node node, Node child) native; |
@JSName('removeChild') |
@DomName('Node.removeChild') |
@DocsEditable() |
- Node _removeChild(Node oldChild) native; |
+ Node _removeChild(Node child) native; |
@JSName('replaceChild') |
@DomName('Node.replaceChild') |
@DocsEditable() |
- Node _replaceChild(Node newChild, Node oldChild) native; |
+ Node _replaceChild(Node node, Node child) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -24237,31 +25561,31 @@ class NodeFilter extends Interceptor { |
@DomName('NodeFilter.SHOW_COMMENT') |
@DocsEditable() |
- static const int SHOW_COMMENT = 0x00000080; |
+ static const int SHOW_COMMENT = 0x80; |
@DomName('NodeFilter.SHOW_DOCUMENT') |
@DocsEditable() |
- static const int SHOW_DOCUMENT = 0x00000100; |
+ static const int SHOW_DOCUMENT = 0x100; |
@DomName('NodeFilter.SHOW_DOCUMENT_FRAGMENT') |
@DocsEditable() |
- static const int SHOW_DOCUMENT_FRAGMENT = 0x00000400; |
+ static const int SHOW_DOCUMENT_FRAGMENT = 0x400; |
@DomName('NodeFilter.SHOW_DOCUMENT_TYPE') |
@DocsEditable() |
- static const int SHOW_DOCUMENT_TYPE = 0x00000200; |
+ static const int SHOW_DOCUMENT_TYPE = 0x200; |
@DomName('NodeFilter.SHOW_ELEMENT') |
@DocsEditable() |
- static const int SHOW_ELEMENT = 0x00000001; |
+ static const int SHOW_ELEMENT = 0x1; |
@DomName('NodeFilter.SHOW_PROCESSING_INSTRUCTION') |
@DocsEditable() |
- static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; |
+ static const int SHOW_PROCESSING_INSTRUCTION = 0x40; |
@DomName('NodeFilter.SHOW_TEXT') |
@DocsEditable() |
- static const int SHOW_TEXT = 0x00000004; |
+ static const int SHOW_TEXT = 0x4; |
} |
// 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 |
@@ -24372,6 +25696,47 @@ 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. |
@@ -24457,6 +25822,13 @@ class Notification extends EventTarget { |
@Experimental() // untriaged |
final String body; |
+ @DomName('Notification.data') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ @annotation_Creates_SerializedScriptValue |
+ @annotation_Returns_SerializedScriptValue |
+ final Object data; |
+ |
@DomName('Notification.dir') |
@DocsEditable() |
@Experimental() // nonstandard |
@@ -24476,6 +25848,11 @@ class Notification extends EventTarget { |
@DocsEditable() |
final String permission; |
+ @DomName('Notification.silent') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final bool silent; |
+ |
@DomName('Notification.tag') |
@DocsEditable() |
@Experimental() // nonstandard |
@@ -24486,6 +25863,11 @@ 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; |
@@ -24530,6 +25912,36 @@ 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. |
@@ -24612,11 +26024,6 @@ class ObjectElement extends HtmlElement { |
@DocsEditable() |
String height; |
- @DomName('HTMLObjectElement.integrity') |
- @DocsEditable() |
- @Experimental() // untriaged |
- String integrity; |
- |
@DomName('HTMLObjectElement.name') |
@DocsEditable() |
String name; |
@@ -24657,6 +26064,11 @@ 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; |
@@ -24836,46 +26248,14 @@ class OutputElement extends HtmlElement { |
@DocsEditable() |
bool checkValidity() native; |
- @DomName('HTMLOutputElement.setCustomValidity') |
- @DocsEditable() |
- void setCustomValidity(String error) 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('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') |
+ @DomName('HTMLOutputElement.reportValidity') |
@DocsEditable() |
- static const int VERTICAL = 1; |
- |
- @DomName('OverflowEvent.horizontalOverflow') |
- @DocsEditable() |
- final bool horizontalOverflow; |
- |
- @DomName('OverflowEvent.orient') |
- @DocsEditable() |
- final int orient; |
+ @Experimental() // untriaged |
+ bool reportValidity() native; |
- @DomName('OverflowEvent.verticalOverflow') |
+ @DomName('HTMLOutputElement.setCustomValidity') |
@DocsEditable() |
- final bool verticalOverflow; |
+ void setCustomValidity(String error) 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 |
@@ -24891,6 +26271,18 @@ 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; |
@@ -24978,6 +26370,44 @@ 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") |
@@ -25100,6 +26530,11 @@ 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 |
@@ -25146,6 +26581,11 @@ 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() |
@@ -25177,6 +26617,24 @@ 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() |
@@ -25272,6 +26730,24 @@ 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() |
@@ -25330,6 +26806,11 @@ 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 |
@@ -25434,6 +26915,175 @@ 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") |
@@ -25476,10 +27126,6 @@ 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; |
@@ -25549,10 +27195,6 @@ 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; |
@@ -25584,6 +27226,11 @@ class PluginPlaceholderElement extends DivElement { |
*/ |
PluginPlaceholderElement.created() : super.created(); |
+ @DomName('PluginPlaceholderElement.closeable') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ bool closeable; |
+ |
@DomName('PluginPlaceholderElement.message') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -25600,6 +27247,71 @@ 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) |
@@ -25610,6 +27322,18 @@ 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); |
@@ -25679,6 +27403,34 @@ 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 { |
@@ -25707,6 +27459,102 @@ 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 |
@@ -25790,6 +27638,18 @@ 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; |
@@ -25808,17 +27668,64 @@ 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 Event { |
+class PushEvent extends ExtendableEvent { |
// 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 String data; |
+ final PushMessageData 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 |
@@ -25833,10 +27740,52 @@ class PushManager extends Interceptor { |
// To suppress missing implicit constructor warnings. |
factory PushManager._() { throw new UnsupportedError("Not supported"); } |
- @DomName('PushManager.register') |
+ @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 register(String senderId) native; |
+ Future _permissionState_1(options) native; |
+ @JSName('permissionState') |
+ @DomName('PushManager.permissionState') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ Future _permissionState_2() native; |
+ |
+ @DomName('PushManager.subscribe') |
+ @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 |
@@ -25844,22 +27793,62 @@ class PushManager extends Interceptor { |
@DocsEditable() |
-@DomName('PushRegistration') |
+@DomName('PushMessageData') |
@Experimental() // untriaged |
-@Native("PushRegistration") |
-class PushRegistration extends Interceptor { |
+@Native("PushMessageData") |
+class PushMessageData extends Interceptor { |
// To suppress missing implicit constructor warnings. |
- factory PushRegistration._() { throw new UnsupportedError("Not supported"); } |
+ 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('PushRegistration.pushEndpoint') |
+ @DomName('PushMessageData.blob') |
@DocsEditable() |
@Experimental() // untriaged |
- final String pushEndpoint; |
+ Blob blob() native; |
- @DomName('PushRegistration.pushRegistrationId') |
+ @DomName('PushMessageData.json') |
@DocsEditable() |
@Experimental() // untriaged |
- final String pushRegistrationId; |
+ Object json() native; |
+ |
+ @DomName('PushMessageData.text') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ String text() 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('PushSubscription') |
+@Experimental() // untriaged |
+@Native("PushSubscription") |
+class PushSubscription extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory PushSubscription._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('PushSubscription.endpoint') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final String endpoint; |
+ |
+ @DomName('PushSubscription.unsubscribe') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ Future unsubscribe() 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 |
@@ -25946,26 +27935,6 @@ 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; |
@@ -26017,11 +27986,11 @@ class Range extends Interceptor { |
@DomName('Range.comparePoint') |
@DocsEditable() |
- int comparePoint(Node refNode, int offset) native; |
+ int comparePoint(Node node, int offset) native; |
@DomName('Range.createContextualFragment') |
@DocsEditable() |
- DocumentFragment createContextualFragment(String html) native; |
+ DocumentFragment createContextualFragment(String fragment) native; |
@DomName('Range.deleteContents') |
@DocsEditable() |
@@ -26052,43 +28021,43 @@ class Range extends Interceptor { |
@DomName('Range.insertNode') |
@DocsEditable() |
- void insertNode(Node newNode) native; |
+ void insertNode(Node node) native; |
@DomName('Range.isPointInRange') |
@DocsEditable() |
- bool isPointInRange(Node refNode, int offset) native; |
+ bool isPointInRange(Node node, int offset) native; |
@DomName('Range.selectNode') |
@DocsEditable() |
- void selectNode(Node refNode) native; |
+ void selectNode(Node node) native; |
@DomName('Range.selectNodeContents') |
@DocsEditable() |
- void selectNodeContents(Node refNode) native; |
+ void selectNodeContents(Node node) native; |
@DomName('Range.setEnd') |
@DocsEditable() |
- void setEnd(Node refNode, int offset) native; |
+ void setEnd(Node node, int offset) native; |
@DomName('Range.setEndAfter') |
@DocsEditable() |
- void setEndAfter(Node refNode) native; |
+ void setEndAfter(Node node) native; |
@DomName('Range.setEndBefore') |
@DocsEditable() |
- void setEndBefore(Node refNode) native; |
+ void setEndBefore(Node node) native; |
@DomName('Range.setStart') |
@DocsEditable() |
- void setStart(Node refNode, int offset) native; |
+ void setStart(Node node, int offset) native; |
@DomName('Range.setStartAfter') |
@DocsEditable() |
- void setStartAfter(Node refNode) native; |
+ void setStartAfter(Node node) native; |
@DomName('Range.setStartBefore') |
@DocsEditable() |
- void setStartBefore(Node refNode) native; |
+ void setStartBefore(Node node) native; |
@DomName('Range.surroundContents') |
@DocsEditable() |
@@ -26111,6 +28080,62 @@ 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") |
@@ -26118,30 +28143,48 @@ class ReadableStream extends Interceptor { |
// To suppress missing implicit constructor warnings. |
factory ReadableStream._() { throw new UnsupportedError("Not supported"); } |
- @DomName('ReadableStream.closed') |
+ @DomName('ReadableStream.cancel') |
@DocsEditable() |
@Experimental() // untriaged |
- final Future closed; |
+ Future cancel([Object reason]) native; |
- @DomName('ReadableStream.state') |
+ @DomName('ReadableStream.getReader') |
@DocsEditable() |
@Experimental() // untriaged |
- final String state; |
+ 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. |
- @DomName('ReadableStream.cancel') |
+ |
+@DocsEditable() |
+@DomName('ReadableStreamReader') |
+@Experimental() // untriaged |
+@Native("ReadableStreamReader") |
+class ReadableStreamReader extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory ReadableStreamReader._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @DomName('ReadableStreamReader.closed') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final Future closed; |
+ |
+ @DomName('ReadableStreamReader.cancel') |
@DocsEditable() |
@Experimental() // untriaged |
- Future cancel(Object reason) native; |
+ Future cancel([Object reason]) native; |
- @DomName('ReadableStream.read') |
+ @DomName('ReadableStreamReader.read') |
@DocsEditable() |
@Experimental() // untriaged |
- Object read() native; |
+ Future read() native; |
- @DomName('ReadableStream.wait') |
+ @DomName('ReadableStreamReader.releaseLock') |
@DocsEditable() |
@Experimental() // untriaged |
- Future wait() native; |
+ 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 |
@@ -26156,6 +28199,18 @@ 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 |
@@ -26170,15 +28225,6 @@ class RelatedEvent extends Event { |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-// WARNING: Do not edit - generated code. |
- |
- |
-@DomName('RequestAnimationFrameCallback') |
-typedef void RequestAnimationFrameCallback(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('ResourceProgressEvent') |
@@ -26432,6 +28478,14 @@ 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; |
@@ -26908,14 +28962,6 @@ 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); |
@@ -26951,10 +28997,6 @@ 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; |
@@ -27133,6 +29175,113 @@ 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() |
@@ -27141,6 +29290,18 @@ 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() |
@@ -27270,12 +29431,12 @@ class SelectElement extends HtmlElement { |
@DomName('HTMLSelectElement.__setter__') |
@DocsEditable() |
- void __setter__(int index, OptionElement value) native; |
+ void __setter__(int index, OptionElement option) native; |
@DomName('HTMLSelectElement.add') |
@DocsEditable() |
@Experimental() // untriaged |
- void add(HtmlElement element, int before) native; |
+ void add(Object element, Object before) native; |
@DomName('HTMLSelectElement.checkValidity') |
@DocsEditable() |
@@ -27287,7 +29448,12 @@ class SelectElement extends HtmlElement { |
@DomName('HTMLSelectElement.namedItem') |
@DocsEditable() |
- Element namedItem(String name) native; |
+ OptionElement namedItem(String name) native; |
+ |
+ @DomName('HTMLSelectElement.reportValidity') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ bool reportValidity() native; |
@DomName('HTMLSelectElement.setCustomValidity') |
@DocsEditable() |
@@ -27392,7 +29558,7 @@ class Selection extends Interceptor { |
@DomName('Selection.containsNode') |
@DocsEditable() |
@Experimental() // non-standard |
- bool containsNode(Node node, bool allowPartial) native; |
+ bool containsNode(Node node, bool allowPartialContainment) native; |
@DomName('Selection.deleteFromDocument') |
@DocsEditable() |
@@ -27440,19 +29606,35 @@ class Selection extends Interceptor { |
@DocsEditable() |
-@DomName('ServiceWorkerClient') |
+@DomName('ServicePort') |
@Experimental() // untriaged |
-@Native("ServiceWorkerClient") |
-class ServiceWorkerClient extends Interceptor { |
+@Native("ServicePort") |
+class ServicePort extends Interceptor { |
// To suppress missing implicit constructor warnings. |
- factory ServiceWorkerClient._() { throw new UnsupportedError("Not supported"); } |
+ factory ServicePort._() { throw new UnsupportedError("Not supported"); } |
- @DomName('ServiceWorkerClient.id') |
+ @DomName('ServicePort.data') |
@DocsEditable() |
@Experimental() // untriaged |
- final int id; |
+ final Object data; |
+ |
+ @DomName('ServicePort.name') |
+ @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; |
- @DomName('ServiceWorkerClient.postMessage') |
+ @DomName('ServicePort.postMessage') |
@DocsEditable() |
@Experimental() // untriaged |
void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) { |
@@ -27466,12 +29648,12 @@ class ServiceWorkerClient extends Interceptor { |
return; |
} |
@JSName('postMessage') |
- @DomName('ServiceWorkerClient.postMessage') |
+ @DomName('ServicePort.postMessage') |
@DocsEditable() |
@Experimental() // untriaged |
void _postMessage_1(message, List<MessagePort> transfer) native; |
@JSName('postMessage') |
- @DomName('ServiceWorkerClient.postMessage') |
+ @DomName('ServicePort.postMessage') |
@DocsEditable() |
@Experimental() // untriaged |
void _postMessage_2(message) native; |
@@ -27482,33 +29664,118 @@ class ServiceWorkerClient extends Interceptor { |
@DocsEditable() |
-@DomName('ServiceWorkerClients') |
+@DomName('ServicePortCollection') |
@Experimental() // untriaged |
-@Native("ServiceWorkerClients") |
-class ServiceWorkerClients extends Interceptor { |
+@Native("ServicePortCollection") |
+class ServicePortCollection extends EventTarget { |
// To suppress missing implicit constructor warnings. |
- factory ServiceWorkerClients._() { throw new UnsupportedError("Not supported"); } |
+ factory ServicePortCollection._() { throw new UnsupportedError("Not supported"); } |
- @DomName('ServiceWorkerClients.getAll') |
+ @DomName('ServicePortCollection.messageEvent') |
@DocsEditable() |
@Experimental() // untriaged |
- Future getAll([Map options]) { |
+ static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message'); |
+ |
+ @DomName('ServicePortCollection.connect') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ Future connect(String url, [Map options]) { |
if (options != null) { |
var options_1 = convertDartToNative_Dictionary(options); |
- return _getAll_1(options_1); |
+ return _connect_1(url, options_1); |
} |
- return _getAll_2(); |
+ return _connect_2(url); |
} |
- @JSName('getAll') |
- @DomName('ServiceWorkerClients.getAll') |
+ @JSName('connect') |
+ @DomName('ServicePortCollection.connect') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ Future _connect_1(url, options) native; |
+ @JSName('connect') |
+ @DomName('ServicePortCollection.connect') |
@DocsEditable() |
@Experimental() // untriaged |
- Future _getAll_1(options) native; |
- @JSName('getAll') |
- @DomName('ServiceWorkerClients.getAll') |
+ Future _connect_2(url) native; |
+ |
+ @DomName('ServicePortCollection.match') |
@DocsEditable() |
@Experimental() // untriaged |
- Future _getAll_2() native; |
+ 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; |
} |
// 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 |
@@ -27519,10 +29786,15 @@ class ServiceWorkerClients extends Interceptor { |
@DomName('ServiceWorkerContainer') |
@Experimental() // untriaged |
@Native("ServiceWorkerContainer") |
-class ServiceWorkerContainer extends Interceptor { |
+class ServiceWorkerContainer extends EventTarget { |
// 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 |
@@ -27538,6 +29810,11 @@ class ServiceWorkerContainer extends Interceptor { |
@Experimental() // untriaged |
Future getRegistration([String documentURL]) native; |
+ @DomName('ServiceWorkerContainer.getRegistrations') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ Future getRegistrations() native; |
+ |
@DomName('ServiceWorkerContainer.register') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -27558,6 +29835,11 @@ class ServiceWorkerContainer extends Interceptor { |
@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 |
@@ -27577,66 +29859,80 @@ class ServiceWorkerGlobalScope extends WorkerGlobalScope { |
@Experimental() // untriaged |
static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message'); |
- @DomName('ServiceWorkerGlobalScope.caches') |
+ @DomName('ServiceWorkerGlobalScope.clients') |
@DocsEditable() |
@Experimental() // untriaged |
- final CacheStorage caches; |
+ final Clients clients; |
- @DomName('ServiceWorkerGlobalScope.clients') |
+ @DomName('ServiceWorkerGlobalScope.ports') |
@DocsEditable() |
@Experimental() // untriaged |
- final ServiceWorkerClients clients; |
+ final StashedPortCollection ports; |
- @DomName('ServiceWorkerGlobalScope.scope') |
+ @DomName('ServiceWorkerGlobalScope.registration') |
@DocsEditable() |
@Experimental() // untriaged |
- final String scope; |
+ final ServiceWorkerRegistration registration; |
- @DomName('ServiceWorkerGlobalScope.fetch') |
+ @DomName('ServiceWorkerGlobalScope.skipWaiting') |
@DocsEditable() |
@Experimental() // untriaged |
- 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); |
- } |
- if (requestInitDict != null && (request is _Request || request == null)) { |
- var requestInitDict_1 = convertDartToNative_Dictionary(requestInitDict); |
- return _fetch_4(request, requestInitDict_1); |
+ Future skipWaiting() native; |
+ |
+ @DomName('ServiceWorkerGlobalScope.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('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); |
} |
- throw new ArgumentError("Incorrect number or type of arguments"); |
+ return ServiceWorkerMessageEvent._create_2(type); |
} |
- @JSName('fetch') |
- @DomName('ServiceWorkerGlobalScope.fetch') |
+ 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') |
@DocsEditable() |
@Experimental() // untriaged |
- Future _fetch_1(String request) native; |
- @JSName('fetch') |
- @DomName('ServiceWorkerGlobalScope.fetch') |
+ final Object data; |
+ |
+ @DomName('ServiceWorkerMessageEvent.lastEventId') |
@DocsEditable() |
@Experimental() // untriaged |
- Future _fetch_2(String request, requestInitDict) native; |
- @JSName('fetch') |
- @DomName('ServiceWorkerGlobalScope.fetch') |
+ final String lastEventId; |
+ |
+ @DomName('ServiceWorkerMessageEvent.origin') |
@DocsEditable() |
@Experimental() // untriaged |
- Future _fetch_3(_Request request) native; |
- @JSName('fetch') |
- @DomName('ServiceWorkerGlobalScope.fetch') |
+ final String origin; |
+ |
+ @DomName('ServiceWorkerMessageEvent.ports') |
@DocsEditable() |
@Experimental() // untriaged |
- Future _fetch_4(_Request request, requestInitDict) native; |
+ final List<MessagePort> ports; |
- @DomName('ServiceWorkerGlobalScope.onmessage') |
+ @DomName('ServiceWorkerMessageEvent.source') |
@DocsEditable() |
@Experimental() // untriaged |
- Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); |
+ final Object source; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -27656,25 +29952,92 @@ 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 |
@@ -27731,6 +30094,11 @@ class ShadowRoot extends DocumentFragment { |
@DocsEditable() |
final Element activeElement; |
+ @DomName('ShadowRoot.delegatesFocus') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final bool delegatesFocus; |
+ |
@DomName('ShadowRoot.host') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -27762,17 +30130,10 @@ class ShadowRoot extends DocumentFragment { |
@DocsEditable() |
Element elementFromPoint(int x, int y) native; |
- @DomName('ShadowRoot.getElementsByClassName') |
- @DocsEditable() |
- @Creates('NodeList|HtmlCollection') |
- @Returns('NodeList|HtmlCollection') |
- List<Node> getElementsByClassName(String className) native; |
- |
- @DomName('ShadowRoot.getElementsByTagName') |
+ @DomName('ShadowRoot.elementsFromPoint') |
@DocsEditable() |
- @Creates('NodeList|HtmlCollection') |
- @Returns('NodeList|HtmlCollection') |
- List<Node> getElementsByTagName(String tagName) native; |
+ @Experimental() // untriaged |
+ List<Element> elementsFromPoint(int x, int y) native; |
@DomName('ShadowRoot.getSelection') |
@DocsEditable() |
@@ -27823,6 +30184,24 @@ 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() |
@@ -27933,6 +30312,11 @@ class SourceBuffer extends EventTarget { |
@DocsEditable() |
num timestampOffset; |
+ @DomName('SourceBuffer.trackDefaults') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ TrackDefaultList trackDefaults; |
+ |
@DomName('SourceBuffer.updating') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -28051,11 +30435,6 @@ class SourceElement extends HtmlElement { |
*/ |
SourceElement.created() : super.created(); |
- @DomName('HTMLSourceElement.integrity') |
- @DocsEditable() |
- @Experimental() // untriaged |
- String integrity; |
- |
@DomName('HTMLSourceElement.media') |
@DocsEditable() |
String media; |
@@ -28370,6 +30749,11 @@ 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; |
@@ -28390,6 +30774,12 @@ class SpeechRecognition extends EventTarget { |
@DocsEditable() |
int maxAlternatives; |
+ @JSName('serviceURI') |
+ @DomName('SpeechRecognition.serviceURI') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ String serviceUri; |
+ |
@DomName('SpeechRecognition.abort') |
@DocsEditable() |
void abort() native; |
@@ -28500,6 +30890,18 @@ 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; |
@@ -28523,6 +30925,18 @@ 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; |
@@ -28639,6 +31053,11 @@ 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 |
@@ -28835,6 +31254,52 @@ 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. |
@@ -28995,8 +31460,18 @@ class StorageEvent extends Event { |
newValue, url, storageArea); |
return e; |
} |
- // To suppress missing implicit constructor warnings. |
- factory StorageEvent._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @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); |
@DomName('StorageEvent.key') |
@DocsEditable() |
@@ -29216,6 +31691,104 @@ 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 { |
@@ -29661,6 +32234,11 @@ class TextAreaElement extends HtmlElement { |
*/ |
TextAreaElement.created() : super.created(); |
+ @DomName('HTMLTextAreaElement.autocapitalize') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ String autocapitalize; |
+ |
@DomName('HTMLTextAreaElement.autofocus') |
@DocsEditable() |
bool autofocus; |
@@ -29703,6 +32281,11 @@ class TextAreaElement extends HtmlElement { |
@DocsEditable() |
int maxLength; |
+ @DomName('HTMLTextAreaElement.minLength') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ int minLength; |
+ |
@DomName('HTMLTextAreaElement.name') |
@DocsEditable() |
String name; |
@@ -29767,6 +32350,11 @@ class TextAreaElement extends HtmlElement { |
@DocsEditable() |
bool checkValidity() native; |
+ @DomName('HTMLTextAreaElement.reportValidity') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ bool reportValidity() native; |
+ |
@DomName('HTMLTextAreaElement.select') |
@DocsEditable() |
void select() native; |
@@ -30240,69 +32828,6 @@ 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 { |
@@ -30374,6 +32899,11 @@ class Touch extends Interceptor { |
@Experimental() // untriaged |
final double _radiusY; |
+ @DomName('Touch.rotationAngle') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final double rotationAngle; |
+ |
@JSName('screenX') |
@DomName('Touch.screenX') |
@DocsEditable() |
@@ -30394,14 +32924,6 @@ 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. |
@@ -30593,6 +33115,91 @@ 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') |
@@ -30638,11 +33245,6 @@ class TrackElement extends HtmlElement { |
@DocsEditable() |
bool defaultValue; |
- @DomName('HTMLTrackElement.integrity') |
- @DocsEditable() |
- @Experimental() // untriaged |
- String integrity; |
- |
@DomName('HTMLTrackElement.kind') |
@DocsEditable() |
String kind; |
@@ -30680,6 +33282,18 @@ 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') |
@@ -30697,6 +33311,18 @@ 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; |
@@ -30795,8 +33421,18 @@ class UIEvent extends Event { |
e._initUIEvent(type, canBubble, cancelable, view, detail); |
return e; |
} |
- // To suppress missing implicit constructor warnings. |
- factory UIEvent._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @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); |
@JSName('charCode') |
@DomName('UIEvent.charCode') |
@@ -30814,33 +33450,10 @@ class UIEvent extends Event { |
@Unstable() |
final int _keyCode; |
- @JSName('layerX') |
- @DomName('UIEvent.layerX') |
+ @DomName('UIEvent.sourceDevice') |
@DocsEditable() |
- // 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; |
+ @Experimental() // untriaged |
+ final InputDevice sourceDevice; |
@DomName('UIEvent.view') |
@DocsEditable() |
@@ -30860,7 +33473,7 @@ class UIEvent extends Event { |
@JSName('initUIEvent') |
@DomName('UIEvent.initUIEvent') |
@DocsEditable() |
- void _initUIEvent(String type, bool canBubble, bool cancelable, Window view, int detail) native; |
+ void _initUIEvent(String type, bool bubbles, bool cancelable, Window view, int detail) native; |
@DomName('UIEvent.layerX') |
@@ -31077,6 +33690,170 @@ 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 { |
@@ -31111,6 +33888,11 @@ class ValidityState extends Interceptor { |
@DocsEditable() |
final bool tooLong; |
+ @DomName('ValidityState.tooShort') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ final bool tooShort; |
+ |
@DomName('ValidityState.typeMismatch') |
@DocsEditable() |
final bool typeMismatch; |
@@ -31357,12 +34139,12 @@ class VttCue extends TextTrackCue { |
@DomName('VTTCue.line') |
@DocsEditable() |
@Experimental() // untriaged |
- int line; |
+ Object line; |
@DomName('VTTCue.position') |
@DocsEditable() |
@Experimental() // untriaged |
- int position; |
+ Object position; |
@DomName('VTTCue.regionId') |
@DocsEditable() |
@@ -31372,7 +34154,7 @@ class VttCue extends TextTrackCue { |
@DomName('VTTCue.size') |
@DocsEditable() |
@Experimental() // untriaged |
- int size; |
+ num size; |
@DomName('VTTCue.snapToLines') |
@DocsEditable() |
@@ -31581,22 +34363,14 @@ class WebSocket extends EventTarget { |
@DomName('WebSocket.WebSocket') |
@DocsEditable() |
- factory WebSocket(String url, [protocol_OR_protocols]) { |
- if ((url is String || url == null) && protocol_OR_protocols == null) { |
- return WebSocket._create_1(url); |
+ factory WebSocket(String url, [Object protocols]) { |
+ if (protocols != null) { |
+ return WebSocket._create_1(url, protocols); |
} |
- 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"); |
+ return WebSocket._create_2(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); |
+ static WebSocket _create_1(url, protocols) => JS('WebSocket', 'new WebSocket(#,#)', url, protocols); |
+ static WebSocket _create_2(url) => JS('WebSocket', 'new WebSocket(#)', url); |
/// Checks if this type is supported on the current platform. |
static bool get supported => JS('bool', 'typeof window.WebSocket != "undefined"'); |
@@ -31771,8 +34545,18 @@ class WheelEvent extends MouseEvent { |
} |
- // To suppress missing implicit constructor warnings. |
- factory WheelEvent._() { throw new UnsupportedError("Not supported"); } |
+ |
+ @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); |
@DomName('WheelEvent.DOM_DELTA_LINE') |
@DocsEditable() |
@@ -32037,7 +34821,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
* for the animation to continue. |
*/ |
@DomName('Window.requestAnimationFrame') |
- int requestAnimationFrame(RequestAnimationFrameCallback callback) { |
+ int requestAnimationFrame(FrameRequestCallback callback) { |
_ensureRequestAnimationFrame(); |
return _requestAnimationFrame(_wrapZone(callback)); |
} |
@@ -32056,7 +34840,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
} |
@JSName('requestAnimationFrame') |
- int _requestAnimationFrame(RequestAnimationFrameCallback callback) native; |
+ int _requestAnimationFrame(FrameRequestCallback callback) native; |
@JSName('cancelAnimationFrame') |
void _cancelAnimationFrame(int id) native; |
@@ -32332,18 +35116,6 @@ 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. |
* |
@@ -32360,6 +35132,11 @@ 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; |
@@ -32896,6 +35673,27 @@ 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. |
* |
@@ -32912,7 +35710,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
@JSName('getComputedStyle') |
@DomName('Window.getComputedStyle') |
@DocsEditable() |
- CssStyleDeclaration _getComputedStyle(Element element, String pseudoElement) native; |
+ CssStyleDeclaration _getComputedStyle(Element elt, String pseudoElt) native; |
@JSName('getMatchedCSSRules') |
/** |
@@ -32965,12 +35763,12 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.moveBy') |
@DocsEditable() |
- void moveBy(num x, num y) native; |
+ void moveBy(int x, int y) native; |
@JSName('moveTo') |
@DomName('Window.moveTo') |
@DocsEditable() |
- void _moveTo(num x, num y) native; |
+ void _moveTo(int x, int y) native; |
/// *Deprecated.* |
@DomName('Window.openDatabase') |
@@ -32985,7 +35783,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
@DomName('Window.postMessage') |
@DocsEditable() |
- void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List<MessagePort> transfer]) { |
+ void postMessage(/*any*/ message, String targetOrigin, [List<MessagePort> transfer]) { |
if (transfer != null) { |
var message_1 = convertDartToNative_SerializedScriptValue(message); |
_postMessage_1(message_1, targetOrigin, transfer); |
@@ -33026,7 +35824,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.resizeBy') |
@DocsEditable() |
- void resizeBy(num x, num y) native; |
+ void resizeBy(int x, int y) native; |
/** |
* Resizes this window to a specific width and height. |
@@ -33038,7 +35836,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.resizeTo') |
@DocsEditable() |
- void resizeTo(num width, num height) native; |
+ void resizeTo(int x, int y) native; |
/** |
* Scrolls the page horizontally and vertically to a specific point. |
@@ -33052,23 +35850,27 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scroll') |
@DocsEditable() |
- void scroll(x, y, [Map scrollOptions]) { |
- if ((y is num) && (x is num) && scrollOptions == null) { |
- _scroll_1(x, y); |
+ void scroll([options_OR_x, y, Map scrollOptions]) { |
+ if (options_OR_x == null && y == null && scrollOptions == null) { |
+ _scroll_1(); |
return; |
} |
- if (scrollOptions != null && (y is num) && (x is num)) { |
- var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions); |
- _scroll_2(x, y, scrollOptions_1); |
+ 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); |
return; |
} |
- if ((y is int) && (x is int) && scrollOptions == null) { |
- _scroll_3(x, y); |
+ if ((y is int) && (options_OR_x is int) && scrollOptions == null) { |
+ _scroll_4(options_OR_x, y); |
return; |
} |
- if (scrollOptions != null && (y is int) && (x is int)) { |
+ if (scrollOptions != null && (y is int) && (options_OR_x is int)) { |
var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions); |
- _scroll_4(x, y, scrollOptions_1); |
+ _scroll_5(options_OR_x, y, scrollOptions_1); |
return; |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
@@ -33086,7 +35888,21 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scroll') |
@DocsEditable() |
- void _scroll_1(num x, num y) native; |
+ 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; |
@JSName('scroll') |
/** |
* Scrolls the page horizontally and vertically to a specific point. |
@@ -33100,7 +35916,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scroll') |
@DocsEditable() |
- void _scroll_2(num x, num y, scrollOptions) native; |
+ void _scroll_3(num x, num y) native; |
@JSName('scroll') |
/** |
* Scrolls the page horizontally and vertically to a specific point. |
@@ -33114,7 +35930,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scroll') |
@DocsEditable() |
- void _scroll_3(int x, int y) native; |
+ void _scroll_4(int x, int y) native; |
@JSName('scroll') |
/** |
* Scrolls the page horizontally and vertically to a specific point. |
@@ -33128,7 +35944,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scroll') |
@DocsEditable() |
- void _scroll_4(int x, int y, scrollOptions) native; |
+ void _scroll_5(int x, int y, scrollOptions) native; |
/** |
* Scrolls the page horizontally and vertically by an offset. |
@@ -33140,23 +35956,27 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scrollBy') |
@DocsEditable() |
- void scrollBy(x, y, [Map scrollOptions]) { |
- if ((y is num) && (x is num) && scrollOptions == null) { |
- _scrollBy_1(x, y); |
+ void scrollBy([options_OR_x, y, Map scrollOptions]) { |
+ if (options_OR_x == null && y == null && scrollOptions == null) { |
+ _scrollBy_1(); |
return; |
} |
- if (scrollOptions != null && (y is num) && (x is num)) { |
- var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions); |
- _scrollBy_2(x, y, scrollOptions_1); |
+ 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); |
return; |
} |
- if ((y is int) && (x is int) && scrollOptions == null) { |
- _scrollBy_3(x, y); |
+ if ((y is int) && (options_OR_x is int) && scrollOptions == null) { |
+ _scrollBy_4(options_OR_x, y); |
return; |
} |
- if (scrollOptions != null && (y is int) && (x is int)) { |
+ if (scrollOptions != null && (y is int) && (options_OR_x is int)) { |
var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions); |
- _scrollBy_4(x, y, scrollOptions_1); |
+ _scrollBy_5(options_OR_x, y, scrollOptions_1); |
return; |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
@@ -33172,7 +35992,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scrollBy') |
@DocsEditable() |
- void _scrollBy_1(num x, num y) native; |
+ void _scrollBy_1() native; |
@JSName('scrollBy') |
/** |
* Scrolls the page horizontally and vertically by an offset. |
@@ -33184,7 +36004,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scrollBy') |
@DocsEditable() |
- void _scrollBy_2(num x, num y, scrollOptions) native; |
+ void _scrollBy_2(options) native; |
@JSName('scrollBy') |
/** |
* Scrolls the page horizontally and vertically by an offset. |
@@ -33196,7 +36016,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scrollBy') |
@DocsEditable() |
- void _scrollBy_3(int x, int y) native; |
+ void _scrollBy_3(num x, num y) native; |
@JSName('scrollBy') |
/** |
* Scrolls the page horizontally and vertically by an offset. |
@@ -33208,7 +36028,19 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scrollBy') |
@DocsEditable() |
- void _scrollBy_4(int x, int y, scrollOptions) native; |
+ 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; |
/** |
* Scrolls the page horizontally and vertically to a specific point. |
@@ -33222,23 +36054,27 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scrollTo') |
@DocsEditable() |
- void scrollTo(x, y, [Map scrollOptions]) { |
- if ((y is num) && (x is num) && scrollOptions == null) { |
- _scrollTo_1(x, y); |
+ void scrollTo([options_OR_x, y, Map scrollOptions]) { |
+ if (options_OR_x == null && y == null && scrollOptions == null) { |
+ _scrollTo_1(); |
return; |
} |
- if (scrollOptions != null && (y is num) && (x is num)) { |
- var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions); |
- _scrollTo_2(x, y, scrollOptions_1); |
+ if ((options_OR_x is Map) && y == null && scrollOptions == null) { |
+ var options_1 = convertDartToNative_Dictionary(options_OR_x); |
+ _scrollTo_2(options_1); |
+ return; |
+ } |
+ if ((y is num) && (options_OR_x is num) && scrollOptions == null) { |
+ _scrollTo_3(options_OR_x, y); |
return; |
} |
- if ((y is int) && (x is int) && scrollOptions == null) { |
- _scrollTo_3(x, y); |
+ if ((y is int) && (options_OR_x is int) && scrollOptions == null) { |
+ _scrollTo_4(options_OR_x, y); |
return; |
} |
- if (scrollOptions != null && (y is int) && (x is int)) { |
+ if (scrollOptions != null && (y is int) && (options_OR_x is int)) { |
var scrollOptions_1 = convertDartToNative_Dictionary(scrollOptions); |
- _scrollTo_4(x, y, scrollOptions_1); |
+ _scrollTo_5(options_OR_x, y, scrollOptions_1); |
return; |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
@@ -33256,7 +36092,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scrollTo') |
@DocsEditable() |
- void _scrollTo_1(num x, num y) native; |
+ void _scrollTo_1() native; |
@JSName('scrollTo') |
/** |
* Scrolls the page horizontally and vertically to a specific point. |
@@ -33270,7 +36106,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scrollTo') |
@DocsEditable() |
- void _scrollTo_2(num x, num y, scrollOptions) native; |
+ void _scrollTo_2(options) native; |
@JSName('scrollTo') |
/** |
* Scrolls the page horizontally and vertically to a specific point. |
@@ -33284,7 +36120,7 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scrollTo') |
@DocsEditable() |
- void _scrollTo_3(int x, int y) native; |
+ void _scrollTo_3(num x, num y) native; |
@JSName('scrollTo') |
/** |
* Scrolls the page horizontally and vertically to a specific point. |
@@ -33298,21 +36134,21 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
*/ |
@DomName('Window.scrollTo') |
@DocsEditable() |
- void _scrollTo_4(int x, int y, scrollOptions) native; |
- |
+ void _scrollTo_4(int x, int y) native; |
+ @JSName('scrollTo') |
/** |
- * Opens a new page as a modal dialog. |
+ * Scrolls the page horizontally and vertically to a specific point. |
+ * |
+ * This method is identical to [scroll]. |
* |
* ## Other resources |
* |
- * * [Dialogs implemented using separate |
- * documents](http://www.w3.org/html/wg/drafts/html/master/webappapis.html#dialogs-implemented-using-separate-documents) |
- * from W3C. |
+ * * [Window scrollTo](http://docs.webplatform.org/wiki/dom/methods/scrollTo) |
+ * from WebPlatform.org. |
*/ |
- @DomName('Window.showModalDialog') |
+ @DomName('Window.scrollTo') |
@DocsEditable() |
- @Creates('Null') |
- Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) native; |
+ void _scrollTo_5(int x, int y, scrollOptions) native; |
/** |
* Stops the window from loading. |
@@ -33393,33 +36229,43 @@ class Window extends EventTarget implements WindowEventHandlers, WindowBase, Glo |
@DomName('Window.atob') |
@DocsEditable() |
- String atob(String string) native; |
+ String atob(String atob) native; |
@DomName('Window.btoa') |
@DocsEditable() |
- String btoa(String string) native; |
+ String btoa(String btoa) 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') |
@@ -33928,9 +36774,37 @@ abstract class WindowBase64 extends Interceptor { |
// To suppress missing implicit constructor warnings. |
factory WindowBase64._() { throw new UnsupportedError("Not supported"); } |
- String atob(String string); |
+ 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 btoa(String string); |
+ @DomName('WindowClient.focus') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ Future focus() 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 |
@@ -34146,6 +37020,11 @@ 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 |
@@ -34186,6 +37065,27 @@ 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 |
@@ -34250,38 +37150,50 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase |
@DomName('WorkerGlobalScope.atob') |
@DocsEditable() |
@Experimental() // untriaged |
- String atob(String string) native; |
+ String atob(String atob) native; |
@DomName('WorkerGlobalScope.btoa') |
@DocsEditable() |
@Experimental() // untriaged |
- String btoa(String string) native; |
+ String btoa(String btoa) 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') |
@@ -34298,7 +37210,7 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase |
@DomName('WorkerPerformance') |
@Experimental() // untriaged |
@Native("WorkerPerformance") |
-class WorkerPerformance extends Interceptor { |
+class WorkerPerformance extends EventTarget { |
// To suppress missing implicit constructor warnings. |
factory WorkerPerformance._() { throw new UnsupportedError("Not supported"); } |
@@ -34307,10 +37219,63 @@ class WorkerPerformance extends Interceptor { |
@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 |
@@ -34343,7 +37308,7 @@ class XPathEvaluator extends Interceptor { |
@DomName('XPathEvaluator.evaluate') |
@DocsEditable() |
- XPathResult evaluate(String expression, Node contextNode, XPathNSResolver resolver, int type, XPathResult inResult) native; |
+ XPathResult evaluate(String expression, Node contextNode, XPathNSResolver resolver, [int type, Object 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 |
@@ -34361,7 +37326,7 @@ class XPathExpression extends Interceptor { |
@DomName('XPathExpression.evaluate') |
@DocsEditable() |
- XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; |
+ XPathResult evaluate(Node contextNode, [int type, Object 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 |
@@ -34508,7 +37473,7 @@ class XmlSerializer extends Interceptor { |
@DomName('XMLSerializer.serializeToString') |
@DocsEditable() |
- String serializeToString(Node node) native; |
+ String serializeToString(Node root) 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 |
@@ -34546,7 +37511,7 @@ class XsltProcessor extends Interceptor { |
@DomName('XSLTProcessor.importStylesheet') |
@DocsEditable() |
- void importStylesheet(Node stylesheet) native; |
+ void importStylesheet(Node style) native; |
@DomName('XSLTProcessor.removeParameter') |
@DocsEditable() |
@@ -34566,7 +37531,7 @@ class XsltProcessor extends Interceptor { |
@DomName('XSLTProcessor.transformToFragment') |
@DocsEditable() |
- DocumentFragment transformToFragment(Node source, Document docVal) native; |
+ DocumentFragment transformToFragment(Node source, Document output) 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 |
@@ -34610,48 +37575,6 @@ 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") |
@@ -34842,7 +37765,7 @@ class _JenkinsSmiHash { |
@DocsEditable() |
@DomName('ClientRectList') |
@Native("ClientRectList,DOMRectList") |
-class _ClientRectList extends Interceptor with ListMixin<Rectangle>, ImmutableListMixin<Rectangle> implements List<Rectangle>, JavaScriptIndexingBehavior { |
+class _ClientRectList extends Interceptor with ListMixin<Rectangle>, ImmutableListMixin<Rectangle> implements List<Rectangle> { |
// To suppress missing implicit constructor warnings. |
factory _ClientRectList._() { throw new UnsupportedError("Not supported"); } |
@@ -34854,7 +37777,7 @@ class _ClientRectList extends Interceptor with ListMixin<Rectangle>, ImmutableLi |
if (JS("bool", "# >>> 0 !== # || # >= #", index, |
index, index, length)) |
throw new RangeError.index(index, this); |
- return JS("Rectangle", "#[#]", this, index); |
+ return this.item(index); |
} |
void operator[]=(int index, Rectangle value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
@@ -34894,6 +37817,11 @@ 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; |
@@ -34904,20 +37832,6 @@ 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> { |
@@ -34982,72 +37896,6 @@ 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() |
@@ -35522,37 +38370,33 @@ 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() |
- Node getNamedItem(String name) native; |
+ _Attr getNamedItem(String name) native; |
@DomName('NamedNodeMap.getNamedItemNS') |
@DocsEditable() |
- Node getNamedItemNS(String namespaceURI, String localName) native; |
+ _Attr getNamedItemNS(String namespaceURI, String localName) native; |
@DomName('NamedNodeMap.item') |
@DocsEditable() |
- Node item(int index) native; |
+ _Attr item(int index) native; |
@DomName('NamedNodeMap.removeNamedItem') |
@DocsEditable() |
- Node removeNamedItem(String name) native; |
+ _Attr removeNamedItem(String name) native; |
@DomName('NamedNodeMap.removeNamedItemNS') |
@DocsEditable() |
- Node removeNamedItemNS(String namespaceURI, String localName) native; |
+ _Attr removeNamedItemNS(String namespaceURI, String localName) native; |
@DomName('NamedNodeMap.setNamedItem') |
@DocsEditable() |
- Node setNamedItem(Node node) native; |
+ _Attr setNamedItem(_Attr attr) native; |
@DomName('NamedNodeMap.setNamedItemNS') |
@DocsEditable() |
- Node setNamedItemNS(Node node) native; |
+ _Attr setNamedItemNS(_Attr attr) 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 |
@@ -35567,20 +38411,6 @@ 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. |
@@ -35596,20 +38426,6 @@ abstract class _RGBColor 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") |
@@ -35619,27 +38435,20 @@ class _Request extends Body { |
@DomName('Request.Request') |
@DocsEditable() |
- 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)) { |
+ factory _Request(Object input, [Map requestInitDict]) { |
+ if (requestInitDict != null) { |
var requestInitDict_1 = convertDartToNative_Dictionary(requestInitDict); |
- return _Request._create_4(input, requestInitDict_1); |
+ return _Request._create_1(input, requestInitDict_1); |
} |
- throw new ArgumentError("Incorrect number or type of arguments"); |
+ return _Request._create_2(input); |
} |
- 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); |
+ 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; |
@DomName('Request.credentials') |
@DocsEditable() |
@@ -35686,45 +38495,19 @@ abstract class _Response extends Body { |
@DomName('Response.Response') |
@DocsEditable() |
- 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); |
+ factory _Response([Object body, Map responseInitDict]) { |
+ if (responseInitDict != null) { |
+ var responseInitDict_1 = convertDartToNative_Dictionary(responseInitDict); |
+ return _Response._create_1(body, responseInitDict_1); |
} |
- if ((body_OR_input is ByteBuffer || body_OR_input == null) && requestInitDict_OR_responseInitDict == null) { |
- return _Response._create_7(body_OR_input); |
+ if (body != null) { |
+ return _Response._create_2(body); |
} |
- 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"); |
+ return _Response._create_3(); |
} |
- 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); |
+ 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()'); |
} |
// 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 |
@@ -35894,20 +38677,6 @@ 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) |
@@ -35936,33 +38705,23 @@ 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"); } |
- void _clearInterval(int handle); |
+ int _setInterval_String(String handler, [int timeout, Object arguments]); |
+ |
+ int _setTimeout_String(String handler, [int timeout, Object arguments]); |
+ |
+ 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 |