| Index: tool/input_sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/tool/input_sdk/lib/html/dart2js/html_dart2js.dart b/tool/input_sdk/lib/html/dart2js/html_dart2js.dart
|
| index 8445e56254a9ea80b32054e10a330cf92db5fb59..fe1c960fbf322a45b60d7147e5cab52a28bdc376 100644
|
| --- a/tool/input_sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/tool/input_sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -123,9 +123,6 @@ Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) {
|
| throw new UnimplementedError();
|
| }
|
|
|
| -/// Dartium functions that are a NOOP in dart2js.
|
| -unwrap_jso(dartClass_instance) => dartClass_instance;
|
| -wrap_jso(jsObject) => jsObject;
|
| createCustomUpgrader(Type customElementClass, $this) => $this;
|
| // 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
|
| @@ -146,12 +143,12 @@ abstract class AbstractWorker extends Interceptor implements EventTarget {
|
| */
|
| @DomName('AbstractWorker.errorEvent')
|
| @DocsEditable()
|
| - static const EventStreamProvider<ErrorEvent> errorEvent = const EventStreamProvider<ErrorEvent>('error');
|
| + static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
|
|
|
| /// Stream of `error` events handled by this [AbstractWorker].
|
| @DomName('AbstractWorker.onerror')
|
| @DocsEditable()
|
| - Stream<ErrorEvent> get onError => errorEvent.forTarget(this);
|
| + Stream<Event> get onError => errorEvent.forTarget(this);
|
| }
|
| // 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
|
| @@ -168,7 +165,7 @@ class AnchorElement extends HtmlElement implements UrlUtils {
|
| @DomName('HTMLAnchorElement.HTMLAnchorElement')
|
| @DocsEditable()
|
| factory AnchorElement({String href}) {
|
| - var e = document.createElement("a");
|
| + AnchorElement e = document.createElement("a");
|
| if (href != null) e.href = href;
|
| return e;
|
| }
|
| @@ -187,11 +184,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 +260,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 +371,94 @@ 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;
|
| + @Creates('Null')
|
| + @Returns('num|String')
|
| + 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 +473,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 +511,45 @@ class AnimationTimeline extends Interceptor {
|
| @DomName('AnimationTimeline.currentTime')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - final double currentTime;
|
| + num currentTime;
|
| +
|
| + @DomName('AnimationTimeline.playbackRate')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + num playbackRate;
|
|
|
| - @DomName('AnimationTimeline.getAnimationPlayers')
|
| + @DomName('AnimationTimeline.getAnimations')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - List<AnimationPlayer> getAnimationPlayers() native;
|
| + 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 +748,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 +1001,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 +1123,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 +1226,204 @@ 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.uuid')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + final String uuid;
|
| +
|
| + @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"); }
|
| +
|
| + @JSName('canonicalUUID')
|
| + @DomName('BluetoothUUID.canonicalUUID')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + static String canonicalUuid(int alias) native;
|
| +
|
| + @DomName('BluetoothUUID.getCharacteristic')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + static String getCharacteristic(Object name) native;
|
| +
|
| + @DomName('BluetoothUUID.getDescriptor')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + static String getDescriptor(Object name) native;
|
| +
|
| + @DomName('BluetoothUUID.getService')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + static String getService(Object name) 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('Body')
|
| @Experimental() // untriaged
|
| @Native("Body")
|
| @@ -1444,6 +1757,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 +1793,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 +1807,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
|
| @@ -1557,7 +1868,7 @@ class CanvasElement extends HtmlElement implements CanvasImageSource {
|
| @DomName('HTMLCanvasElement.HTMLCanvasElement')
|
| @DocsEditable()
|
| factory CanvasElement({int width, int height}) {
|
| - var e = document.createElement("canvas");
|
| + CanvasElement e = document.createElement("canvas");
|
| if (width != null) e.width = width;
|
| if (height != null) e.height = height;
|
| return e;
|
| @@ -1583,10 +1894,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 +1906,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 +1917,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 +2143,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 +2264,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 +2291,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 +2310,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 +2474,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 +2523,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 +2784,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 +2802,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 +2810,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 +2850,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 +2862,19 @@ abstract class ChildNode extends Interceptor {
|
|
|
|
|
| @DocsEditable()
|
| +@DomName('CHROMIUMValuebuffer')
|
| +@Experimental() // untriaged
|
| +@Native("CHROMIUMValuebuffer")
|
| +class ChromiumValuebuffer extends Interceptor {
|
| + // To suppress missing implicit constructor warnings.
|
| + factory ChromiumValuebuffer._() { throw new UnsupportedError("Not supported"); }
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +
|
| +@DocsEditable()
|
| @DomName('CircularGeofencingRegion')
|
| @Experimental() // untriaged
|
| @Native("CircularGeofencingRegion")
|
| @@ -2569,12 +2921,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;
|
| @@ -2621,7 +3099,7 @@ class CompositionEvent extends UIEvent {
|
| if (view == null) {
|
| view = window;
|
| }
|
| - var e = document._createEvent("CompositionEvent");
|
| + CompositionEvent e = document._createEvent("CompositionEvent");
|
|
|
| if (Device.isFirefox) {
|
| // Firefox requires the locale parameter that isn't supported elsewhere.
|
| @@ -2634,33 +3112,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('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('CompositionEvent.activeSegmentEnd')
|
| + @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()
|
| + @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()
|
| - void _initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) native;
|
| + @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 +3429,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 +3536,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 +3551,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 +3570,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 +3595,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
|
| @@ -2998,6 +3723,7 @@ class CryptoKey extends Interceptor {
|
| @DomName('CryptoKey.algorithm')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| + @Creates('Null')
|
| final Object algorithm;
|
|
|
| @DomName('CryptoKey.extractable')
|
| @@ -3031,12 +3757,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
|
| @@ -3062,17 +3788,13 @@ 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('CSSFontFaceRule')
|
| +@Native("CSSFontFaceRule")
|
| +class CssFontFaceRule extends CssRule {
|
| // To suppress missing implicit constructor warnings.
|
| - factory CssFilterRule._() { throw new UnsupportedError("Not supported"); }
|
| + factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); }
|
|
|
| - @DomName('WebKitCSSFilterRule.style')
|
| + @DomName('CSSFontFaceRule.style')
|
| @DocsEditable()
|
| final CssStyleDeclaration style;
|
| }
|
| @@ -3082,15 +3804,29 @@ class CssFilterRule extends CssRule {
|
|
|
|
|
| @DocsEditable()
|
| -@DomName('CSSFontFaceRule')
|
| -@Native("CSSFontFaceRule")
|
| -class CssFontFaceRule extends CssRule {
|
| +@DomName('CSSGroupingRule')
|
| +@Experimental() // untriaged
|
| +@Native("CSSGroupingRule")
|
| +class CssGroupingRule extends CssRule {
|
| // To suppress missing implicit constructor warnings.
|
| - factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); }
|
| + factory CssGroupingRule._() { throw new UnsupportedError("Not supported"); }
|
|
|
| - @DomName('CSSFontFaceRule.style')
|
| + @DomName('CSSGroupingRule.cssRules')
|
| @DocsEditable()
|
| - final CssStyleDeclaration style;
|
| + @Experimental() // untriaged
|
| + @Returns('_CssRuleList')
|
| + @Creates('_CssRuleList')
|
| + final List<CssRule> cssRules;
|
| +
|
| + @DomName('CSSGroupingRule.deleteRule')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + void deleteRule(int index) native;
|
| +
|
| + @DomName('CSSGroupingRule.insertRule')
|
| + @DocsEditable()
|
| + @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 +3905,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 +3928,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 +4011,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
|
| @@ -3439,23 +4154,14 @@ class CssStyleDeclaration extends Interceptor with
|
| @DocsEditable()
|
| final CssRule parentRule;
|
|
|
| - @DomName('CSSStyleDeclaration.__getter__')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - Object __getter__(String name) native;
|
| -
|
| - @DomName('CSSStyleDeclaration.__setter__')
|
| - @DocsEditable()
|
| - void __setter__(String propertyName, 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 +4169,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 +8894,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 +8921,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 +9024,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 +9108,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 +9126,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 +9212,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 +9363,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
|
| @@ -8672,7 +9429,7 @@ class DeviceOrientationEvent extends Event {
|
| factory DeviceOrientationEvent(String type,
|
| {bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0,
|
| num gamma: 0, bool absolute: false}) {
|
| - var e = document._createEvent("DeviceOrientationEvent");
|
| + DeviceOrientationEvent e = document._createEvent("DeviceOrientationEvent");
|
| e._initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta,
|
| gamma, absolute);
|
| return e;
|
| @@ -9156,6 +9913,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 +9942,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()
|
| @@ -9202,10 +9969,11 @@ class Document extends Node
|
| @DocsEditable()
|
| String _title;
|
|
|
| + @JSName('visibilityState')
|
| @DomName('Document.visibilityState')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - final String visibilityState;
|
| + final String _visibilityState;
|
|
|
| @JSName('webkitFullscreenElement')
|
| @DomName('Document.webkitFullscreenElement')
|
| @@ -9286,16 +10054,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 +10077,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 +10103,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 +10127,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 +10159,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')
|
| @@ -9495,12 +10270,12 @@ class Document extends Node
|
| /// Stream of `copy` events handled by this [Document].
|
| @DomName('Document.oncopy')
|
| @DocsEditable()
|
| - Stream<Event> get onCopy => Element.copyEvent.forTarget(this);
|
| + Stream<ClipboardEvent> get onCopy => Element.copyEvent.forTarget(this);
|
|
|
| /// Stream of `cut` events handled by this [Document].
|
| @DomName('Document.oncut')
|
| @DocsEditable()
|
| - Stream<Event> get onCut => Element.cutEvent.forTarget(this);
|
| + Stream<ClipboardEvent> get onCut => Element.cutEvent.forTarget(this);
|
|
|
| /// Stream of `doubleclick` events handled by this [Document].
|
| @DomName('Document.ondblclick')
|
| @@ -9652,7 +10427,7 @@ class Document extends Node
|
| /// Stream of `paste` events handled by this [Document].
|
| @DomName('Document.onpaste')
|
| @DocsEditable()
|
| - Stream<Event> get onPaste => Element.pasteEvent.forTarget(this);
|
| + Stream<ClipboardEvent> get onPaste => Element.pasteEvent.forTarget(this);
|
|
|
| @DomName('Document.onpause')
|
| @DocsEditable()
|
| @@ -9901,6 +10676,15 @@ class Document extends Node
|
| [int whatToShow, NodeFilter filter])
|
| => JS('TreeWalker', '#.createTreeWalker(#, #, #, false)',
|
| this, root, whatToShow, filter);
|
| +
|
| + @DomName('Document.visibilityState')
|
| + @SupportedBrowser(SupportedBrowser.CHROME)
|
| + @SupportedBrowser(SupportedBrowser.FIREFOX)
|
| + @SupportedBrowser(SupportedBrowser.IE, '10')
|
| + @Experimental()
|
| + String get visibilityState => JS('String',
|
| + '(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||'
|
| + '#.webkitVisibilityState)', this, this, this, this);
|
| }
|
| // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -9909,7 +10693,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,
|
| @@ -9943,7 +10727,7 @@ class DocumentFragment extends Node implements ParentNode {
|
|
|
| set children(List<Element> value) {
|
| // Copy list first since we don't want liveness during iteration.
|
| - List copy = new List.from(value);
|
| + var copy = value.toList();
|
| var children = this.children;
|
| children.clear();
|
| children.addAll(copy);
|
| @@ -10024,6 +10808,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 +10968,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 +11182,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()
|
| @@ -10426,125 +11212,53 @@ class DomMatrixReadOnly extends Interceptor {
|
| // To suppress missing implicit constructor warnings.
|
| factory DomMatrixReadOnly._() { throw new UnsupportedError("Not supported"); }
|
|
|
| - @DomName('DOMMatrixReadOnly.a')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double a;
|
| + num get a => JS("num", "#.a", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.b')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double b;
|
| + num get b => JS("num", "#.b", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.c')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double c;
|
| + num get c => JS("num", "#.c", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.d')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double d;
|
| + num get d => JS("num", "#.d", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.e')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double e;
|
| + num get e => JS("num", "#.e", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.f')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double f;
|
| + num get f => JS("num", "#.f", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.is2D')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final bool is2D;
|
| + bool get is2D => JS("bool", "#.is2D", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.isIdentity')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final bool isIdentity;
|
| + bool get isIdentity => JS("bool", "#.isIdentity", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m11')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m11;
|
| + num get m11 => JS("num", "#.m11", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m12')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m12;
|
| + num get m12 => JS("num", "#.m12", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m13')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m13;
|
| + num get m13 => JS("num", "#.m13", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m14')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m14;
|
| + num get m14 => JS("num", "#.m14", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m21')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m21;
|
| + num get m21 => JS("num", "#.m21", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m22')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m22;
|
| + num get m22 => JS("num", "#.m22", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m23')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m23;
|
| + num get m23 => JS("num", "#.m23", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m24')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m24;
|
| + num get m24 => JS("num", "#.m24", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m31')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m31;
|
| + num get m31 => JS("num", "#.m31", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m32')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m32;
|
| + num get m32 => JS("num", "#.m32", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m33')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m33;
|
| + num get m33 => JS("num", "#.m33", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m34')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m34;
|
| + num get m34 => JS("num", "#.m34", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m41')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m41;
|
| + num get m41 => JS("num", "#.m41", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m42')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m42;
|
| + num get m42 => JS("num", "#.m42", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m43')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m43;
|
| + num get m43 => JS("num", "#.m43", this);
|
|
|
| - @DomName('DOMMatrixReadOnly.m44')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double m44;
|
| + num get m44 => JS("num", "#.m44", this);
|
|
|
| @DomName('DOMMatrixReadOnly.multiply')
|
| @DocsEditable()
|
| @@ -10554,17 +11268,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 +11316,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 +11334,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)');
|
| @@ -10695,25 +11413,13 @@ class DomPointReadOnly extends Interceptor {
|
| }
|
| static DomPointReadOnly _create_1(x, y, z, w) => JS('DomPointReadOnly', 'new DOMPointReadOnly(#,#,#,#)', x, y, z, w);
|
|
|
| - @DomName('DOMPointReadOnly.w')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double w;
|
| + num get w => JS("num", "#.w", this);
|
|
|
| - @DomName('DOMPointReadOnly.x')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double x;
|
| + num get x => JS("num", "#.x", this);
|
|
|
| - @DomName('DOMPointReadOnly.y')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double y;
|
| + num get y => JS("num", "#.y", this);
|
|
|
| - @DomName('DOMPointReadOnly.z')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double z;
|
| + num get z => JS("num", "#.z", this);
|
| }
|
| // 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
|
| @@ -10825,45 +11531,21 @@ class DomRectReadOnly extends Interceptor implements Rectangle {
|
| }
|
| static DomRectReadOnly _create_1(x, y, width, height) => JS('DomRectReadOnly', 'new DOMRectReadOnly(#,#,#,#)', x, y, width, height);
|
|
|
| - @DomName('DOMRectReadOnly.bottom')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double bottom;
|
| + num get bottom => JS("num", "#.bottom", this);
|
|
|
| - @DomName('DOMRectReadOnly.height')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double height;
|
| + num get height => JS("num", "#.height", this);
|
|
|
| - @DomName('DOMRectReadOnly.left')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double left;
|
| + num get left => JS("num", "#.left", this);
|
|
|
| - @DomName('DOMRectReadOnly.right')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double right;
|
| + num get right => JS("num", "#.right", this);
|
|
|
| - @DomName('DOMRectReadOnly.top')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double top;
|
| + num get top => JS("num", "#.top", this);
|
|
|
| - @DomName('DOMRectReadOnly.width')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double width;
|
| + num get width => JS("num", "#.width", this);
|
|
|
| - @DomName('DOMRectReadOnly.x')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double x;
|
| + num get x => JS("num", "#.x", this);
|
|
|
| - @DomName('DOMRectReadOnly.y')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final double y;
|
| + num get y => JS("num", "#.y", this);
|
| }
|
|
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -10881,10 +11563,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 +11572,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 +11584,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,9 +11624,10 @@ class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
|
| String elementAt(int index) => this[index];
|
| // -- end List<String> mixins.
|
|
|
| - @DomName('DOMStringList.contains')
|
| + @DomName('DOMStringList.__getter__')
|
| @DocsEditable()
|
| - bool contains(String string) native;
|
| + @Experimental() // untriaged
|
| + String __getter__(int index) native;
|
|
|
| @DomName('DOMStringList.item')
|
| @DocsEditable()
|
| @@ -10965,11 +11644,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 +11695,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.
|
| @@ -11081,7 +11775,7 @@ class _ChildrenElementList extends ListBase<Element>
|
| _filter(test, true);
|
| }
|
|
|
| - void _filter(bool test(var element), bool retainMatching) {
|
| + void _filter(bool test(Element element), bool retainMatching) {
|
| var removed;
|
| if (retainMatching) {
|
| removed = _element.children.where((e) => !test(e));
|
| @@ -11314,12 +12008,12 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
|
| /// Stream of `copy` events handled by this [Element].
|
| @DomName('Element.oncopy')
|
| @DocsEditable()
|
| - ElementStream<Event> get onCopy;
|
| + ElementStream<ClipboardEvent> get onCopy;
|
|
|
| /// Stream of `cut` events handled by this [Element].
|
| @DomName('Element.oncut')
|
| @DocsEditable()
|
| - ElementStream<Event> get onCut;
|
| + ElementStream<ClipboardEvent> get onCut;
|
|
|
| /// Stream of `doubleclick` events handled by this [Element].
|
| @DomName('Element.ondblclick')
|
| @@ -11567,7 +12261,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
|
| /// Stream of `paste` events handled by this [Element].
|
| @DomName('Element.onpaste')
|
| @DocsEditable()
|
| - ElementStream<Event> get onPaste;
|
| + ElementStream<ClipboardEvent> get onPaste;
|
|
|
| @DomName('Element.onpause')
|
| @DocsEditable()
|
| @@ -11735,8 +12429,8 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
|
| // declared to return `ElementList`. This provides all the static analysis
|
| // benefit so there is no need for this class have a constrained type parameter.
|
| //
|
| -class _FrozenElementList extends ListBase
|
| - implements ElementList, NodeListWrapper {
|
| +class _FrozenElementList extends ListBase<Element>
|
| + implements ElementList<Element>, NodeListWrapper {
|
| final List<Node> _nodeList;
|
|
|
| _FrozenElementList._wrap(this._nodeList);
|
| @@ -11779,7 +12473,7 @@ class _FrozenElementList extends ListBase
|
| //
|
| // as the code below converts the Iterable[value] to a string multiple
|
| // times. Maybe compute the string and set className here.
|
| - _nodeList.forEach((e) => e.classes = value);
|
| + forEach((e) => e.classes = value);
|
| }
|
|
|
| CssRect get contentEdge => new _ContentCssListRect(this);
|
| @@ -11846,12 +12540,12 @@ class _FrozenElementList extends ListBase
|
| /// Stream of `copy` events handled by this [Element].
|
| @DomName('Element.oncopy')
|
| @DocsEditable()
|
| - ElementStream<Event> get onCopy => Element.copyEvent._forElementList(this);
|
| + ElementStream<ClipboardEvent> get onCopy => Element.copyEvent._forElementList(this);
|
|
|
| /// Stream of `cut` events handled by this [Element].
|
| @DomName('Element.oncut')
|
| @DocsEditable()
|
| - ElementStream<Event> get onCut => Element.cutEvent._forElementList(this);
|
| + ElementStream<ClipboardEvent> get onCut => Element.cutEvent._forElementList(this);
|
|
|
| /// Stream of `doubleclick` events handled by this [Element].
|
| @DomName('Element.ondblclick')
|
| @@ -12099,7 +12793,7 @@ class _FrozenElementList extends ListBase
|
| /// Stream of `paste` events handled by this [Element].
|
| @DomName('Element.onpaste')
|
| @DocsEditable()
|
| - ElementStream<Event> get onPaste => Element.pasteEvent._forElementList(this);
|
| + ElementStream<ClipboardEvent> get onPaste => Element.pasteEvent._forElementList(this);
|
|
|
| @DomName('Element.onpause')
|
| @DocsEditable()
|
| @@ -12267,7 +12961,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.
|
| @@ -12519,7 +13213,7 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode
|
|
|
| set children(List<Element> value) {
|
| // Copy list first since we don't want liveness during iteration.
|
| - List copy = new List.from(value);
|
| + var copy = value.toList();
|
| var children = this.children;
|
| children.clear();
|
| children.addAll(copy);
|
| @@ -12730,7 +13424,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,19 +13443,18 @@ 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");
|
| }
|
| - var convertedFrames = frames;
|
| - if (convertedFrames is Iterable) {
|
| + var convertedFrames;
|
| + if (frames is Iterable) {
|
| convertedFrames = frames.map(convertDartToNative_Dictionary).toList();
|
| + } else {
|
| + convertedFrames = frames;
|
| }
|
| - var convertedTiming = timing;
|
| - if (convertedTiming is Map) {
|
| - convertedTiming = convertDartToNative_Dictionary(convertedTiming);
|
| - }
|
| + var convertedTiming = timing is Map ? convertDartToNative_Dictionary(timing) : timing;
|
| return convertedTiming == null
|
| ? _animate(convertedFrames)
|
| : _animate(convertedFrames, convertedTiming);
|
| @@ -12770,7 +13463,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.
|
| */
|
| @@ -13229,7 +13922,7 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode
|
|
|
| // Workaround for Safari bug. Was also previously Chrome bug 229142
|
| // - URIs are not resolved in new doc.
|
| - var base = _parseDocument.createElement('base');
|
| + BaseElement base = _parseDocument.createElement('base');
|
| base.href = document.baseUri;
|
| _parseDocument.head.append(base);
|
| }
|
| @@ -13391,6 +14084,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 +14104,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();
|
| @@ -13553,7 +14234,7 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode
|
| */
|
| @DomName('Element.copyEvent')
|
| @DocsEditable()
|
| - static const EventStreamProvider<Event> copyEvent = const EventStreamProvider<Event>('copy');
|
| + static const EventStreamProvider<ClipboardEvent> copyEvent = const EventStreamProvider<ClipboardEvent>('copy');
|
|
|
| /**
|
| * Static factory designed to expose `cut` events to event
|
| @@ -13563,7 +14244,7 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode
|
| */
|
| @DomName('Element.cutEvent')
|
| @DocsEditable()
|
| - static const EventStreamProvider<Event> cutEvent = const EventStreamProvider<Event>('cut');
|
| + static const EventStreamProvider<ClipboardEvent> cutEvent = const EventStreamProvider<ClipboardEvent>('cut');
|
|
|
| /**
|
| * Static factory designed to expose `doubleclick` events to event
|
| @@ -13888,7 +14569,7 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode
|
| */
|
| @DomName('Element.pasteEvent')
|
| @DocsEditable()
|
| - static const EventStreamProvider<Event> pasteEvent = const EventStreamProvider<Event>('paste');
|
| + static const EventStreamProvider<ClipboardEvent> pasteEvent = const EventStreamProvider<ClipboardEvent>('paste');
|
|
|
| @DomName('Element.pauseEvent')
|
| @DocsEditable()
|
| @@ -14170,6 +14851,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 +14902,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 +14923,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 +14964,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 +14989,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')
|
| - @DocsEditable()
|
| - void blur() native;
|
| -
|
| - @DomName('Element.focus')
|
| + @DomName('Element.closest')
|
| @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 +15084,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 +15116,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 +15198,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;
|
| @@ -14582,12 +15367,12 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode
|
| /// Stream of `copy` events handled by this [Element].
|
| @DomName('Element.oncopy')
|
| @DocsEditable()
|
| - ElementStream<Event> get onCopy => copyEvent.forElement(this);
|
| + ElementStream<ClipboardEvent> get onCopy => copyEvent.forElement(this);
|
|
|
| /// Stream of `cut` events handled by this [Element].
|
| @DomName('Element.oncut')
|
| @DocsEditable()
|
| - ElementStream<Event> get onCut => cutEvent.forElement(this);
|
| + ElementStream<ClipboardEvent> get onCut => cutEvent.forElement(this);
|
|
|
| /// Stream of `doubleclick` events handled by this [Element].
|
| @DomName('Element.ondblclick')
|
| @@ -14835,7 +15620,7 @@ class Element extends Node implements GlobalEventHandlers, ParentNode, ChildNode
|
| /// Stream of `paste` events handled by this [Element].
|
| @DomName('Element.onpaste')
|
| @DocsEditable()
|
| - ElementStream<Event> get onPaste => pasteEvent.forElement(this);
|
| + ElementStream<ClipboardEvent> get onPaste => pasteEvent.forElement(this);
|
|
|
| @DomName('Element.onpause')
|
| @DocsEditable()
|
| @@ -15067,11 +15852,6 @@ class EmbedElement extends HtmlElement {
|
| @DocsEditable()
|
| String height;
|
|
|
| - @DomName('HTMLEmbedElement.integrity')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - String integrity;
|
| -
|
| @DomName('HTMLEmbedElement.name')
|
| @DocsEditable()
|
| String name;
|
| @@ -15261,6 +16041,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 +16084,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
|
| @@ -15320,7 +16112,7 @@ class Event extends Interceptor {
|
| e._initEvent(name, canBubble, cancelable);
|
| return e;
|
| }
|
| -
|
| +
|
| /** The CSS selector involved with event delegation. */
|
| String _selector;
|
|
|
| @@ -15334,8 +16126,8 @@ class Event extends Interceptor {
|
| throw new UnsupportedError('Cannot call matchingTarget if this Event did'
|
| ' not arise as a result of event delegation.');
|
| }
|
| - var currentTarget = this.currentTarget;
|
| - var target = this.target;
|
| + Element currentTarget = this.currentTarget;
|
| + Element target = this.target;
|
| var matchedTarget;
|
| do {
|
| if (target.matches(_selector)) return target;
|
| @@ -15343,8 +16135,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 +16193,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 +16200,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 +16224,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 +16233,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 +16247,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 +16313,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')
|
| @@ -15638,26 +16420,24 @@ class Events {
|
| }
|
|
|
| class ElementEvents extends Events {
|
| - /* Raw event target. */
|
| - final Element _ptr;
|
| static final webkitEvents = {
|
| - 'animationend' : 'webkitAnimationEnd',
|
| - 'animationiteration' : 'webkitAnimationIteration',
|
| - 'animationstart' : 'webkitAnimationStart',
|
| - 'fullscreenchange' : 'webkitfullscreenchange',
|
| + 'animationend' : 'webkitAnimationEnd',
|
| + 'animationiteration' : 'webkitAnimationIteration',
|
| + 'animationstart' : 'webkitAnimationStart',
|
| + 'fullscreenchange' : 'webkitfullscreenchange',
|
| 'fullscreenerror' : 'webkitfullscreenerror',
|
| - 'keyadded' : 'webkitkeyadded',
|
| - 'keyerror' : 'webkitkeyerror',
|
| - 'keymessage' : 'webkitkeymessage',
|
| - 'needkey' : 'webkitneedkey',
|
| - 'pointerlockchange' : 'webkitpointerlockchange',
|
| - 'pointerlockerror' : 'webkitpointerlockerror',
|
| - 'resourcetimingbufferfull' : 'webkitresourcetimingbufferfull',
|
| + 'keyadded' : 'webkitkeyadded',
|
| + 'keyerror' : 'webkitkeyerror',
|
| + 'keymessage' : 'webkitkeymessage',
|
| + 'needkey' : 'webkitneedkey',
|
| + 'pointerlockchange' : 'webkitpointerlockchange',
|
| + 'pointerlockerror' : 'webkitpointerlockerror',
|
| + 'resourcetimingbufferfull' : 'webkitresourcetimingbufferfull',
|
| 'transitionend': 'webkitTransitionEnd',
|
| 'speechchange' : 'webkitSpeechChange'
|
| };
|
|
|
| - ElementEvents(Element ptr) : this._ptr = ptr, super(ptr);
|
| + ElementEvents(Element ptr) : super(ptr);
|
|
|
| Stream operator [](String type) {
|
| if (webkitEvents.keys.contains(type.toLowerCase())) {
|
| @@ -15713,7 +16493,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 +16502,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 +16518,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 +16550,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 +16575,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 +16635,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 +16665,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 +16686,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 +17037,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 +17296,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 +17332,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)) {
|
| + factory FontFace(String family, Object source, [Map descriptors]) {
|
| + if (descriptors != 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)) {
|
| - var descriptors_1 = convertDartToNative_Dictionary(descriptors);
|
| - return FontFace._create_4(family, source, descriptors_1);
|
| - }
|
| - if ((source is ByteBuffer || source == null) && (family is String || family == null) && descriptors == null) {
|
| - return FontFace._create_5(family, source);
|
| + return FontFace._create_1(family, source, descriptors_1);
|
| }
|
| - 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 +17511,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 +17603,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 +17647,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 +17671,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 +17733,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 +17784,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")
|
| @@ -16975,7 +17875,10 @@ class Geolocation extends Interceptor {
|
| }
|
|
|
| int watchId;
|
| - var controller;
|
| + // TODO(jacobr): it seems like a bug that we have to specifiy the static
|
| + // type here for controller.stream to have the right type.
|
| + // dartbug.com/26278
|
| + StreamController<Geoposition> controller;
|
| controller = new StreamController<Geoposition>(sync: true,
|
| onListen: () {
|
| assert(watchId == null);
|
| @@ -17699,8 +18602,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 +18675,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 +18760,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 +18790,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 +18798,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 +18816,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 +18824,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 +18832,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 +18850,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 +18858,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
|
| @@ -18013,11 +18945,11 @@ class HtmlCollection extends Interceptor with ListMixin<Node>, ImmutableListMixi
|
|
|
| @DomName('HTMLCollection.item')
|
| @DocsEditable()
|
| - Element item(int index) native;
|
| + Node item(int index) native;
|
|
|
| @DomName('HTMLCollection.namedItem')
|
| @DocsEditable()
|
| - Element namedItem(String name) native;
|
| + Object namedItem(String name) 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
|
| @@ -18137,61 +19069,6 @@ class HtmlDocument extends Document {
|
| _webkitExitFullscreen();
|
| }
|
|
|
| - /**
|
| - * Returns the element, if any, that is currently displayed in fullscreen.
|
| - *
|
| - * Returns null if there is currently no fullscreen element. You can use
|
| - * this to determine if the page is in fullscreen mode.
|
| - *
|
| - * myVideo = new VideoElement();
|
| - * if (document.fullscreenElement == null) {
|
| - * myVideo.requestFullscreen();
|
| - * print(document.fullscreenElement == myVideo); // true
|
| - * }
|
| - *
|
| - * ## Other resources
|
| - *
|
| - * * [Using the fullscreen
|
| - * API](http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api)
|
| - * from WebPlatform.org.
|
| - * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C.
|
| - */
|
| - @DomName('Document.webkitFullscreenElement')
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - Element get fullscreenElement => _webkitFullscreenElement;
|
| -
|
| - /**
|
| - * Returns true if this document can display elements in fullscreen mode.
|
| - *
|
| - * ## Other resources
|
| - *
|
| - * * [Using the fullscreen
|
| - * API](http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api)
|
| - * from WebPlatform.org.
|
| - * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C.
|
| - */
|
| - @DomName('Document.webkitFullscreenEnabled')
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - bool get fullscreenEnabled => _webkitFullscreenEnabled;
|
| -
|
| - @DomName('Document.webkitHidden')
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - bool get hidden => _webkitHidden;
|
| -
|
| - @DomName('Document.visibilityState')
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.FIREFOX)
|
| - @SupportedBrowser(SupportedBrowser.IE, '10')
|
| - @Experimental()
|
| - String get visibilityState => JS('String',
|
| - '(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||'
|
| - '#.webkitVisibilityState)', this, this, this, this);
|
|
|
| @Experimental()
|
| /**
|
| @@ -18309,6 +19186,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 +19228,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 +19877,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 +19891,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 +19908,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 +19929,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 +20136,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 +20192,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()
|
| @@ -19354,7 +20237,7 @@ class ImageElement extends HtmlElement implements CanvasImageSource {
|
| @DomName('HTMLImageElement.HTMLImageElement')
|
| @DocsEditable()
|
| factory ImageElement({String src, int width, int height}) {
|
| - var e = document.createElement("img");
|
| + ImageElement e = document.createElement("img");
|
| if (src != null) e.src = src;
|
| if (width != null) e.width = width;
|
| if (height != null) e.height = height;
|
| @@ -19388,11 +20271,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 +20329,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
|
| @@ -19477,7 +20385,7 @@ class InputElement extends HtmlElement implements
|
| ButtonInputElement {
|
|
|
| factory InputElement({String type}) {
|
| - var e = document.createElement("input");
|
| + InputElement e = document.createElement("input");
|
| if (type != null) {
|
| try {
|
| // IE throws an exception for unknown types.
|
| @@ -19504,6 +20412,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 +20521,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 +20640,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 +21232,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.
|
| *
|
| @@ -20382,15 +21245,15 @@ class InstallEvent extends ExtendableEvent {
|
| @Native("KeyboardEvent")
|
| class KeyboardEvent extends UIEvent {
|
|
|
| - /**
|
| - * Programmatically create a KeyboardEvent.
|
| + /**
|
| + * Programmatically create a KeyboardEvent.
|
| *
|
| * Due to browser differences, keyCode, charCode, or keyIdentifier values
|
| * cannot be specified in this base level constructor. This constructor
|
| * enables the user to programmatically create and dispatch a [KeyboardEvent],
|
| * but it will not contain any particular key content. For programmatically
|
| * creating keyboard events with specific key value contents, see the custom
|
| - * Event [KeyEvent].
|
| + * Event [KeyEvent].
|
| */
|
| factory KeyboardEvent(String type,
|
| {Window view, bool canBubble: true, bool cancelable: true,
|
| @@ -20399,7 +21262,7 @@ class KeyboardEvent extends UIEvent {
|
| if (view == null) {
|
| view = window;
|
| }
|
| - final e = document._createEvent("KeyboardEvent");
|
| + KeyboardEvent e = document._createEvent("KeyboardEvent");
|
| e._initKeyboardEvent(type, canBubble, cancelable, view, "",
|
| keyLocation, ctrlKey, altKey, shiftKey, metaKey);
|
| return e;
|
| @@ -20430,8 +21293,21 @@ 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.which')
|
| + int get which => _which;
|
| +
|
| + @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 +21333,20 @@ class KeyboardEvent extends UIEvent {
|
| @DocsEditable()
|
| final bool altKey;
|
|
|
| + @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;
|
| +
|
| @JSName('keyIdentifier')
|
| @DomName('KeyboardEvent.keyIdentifier')
|
| @DocsEditable()
|
| @@ -20493,7 +21379,7 @@ class KeyboardEvent extends UIEvent {
|
| @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 +21388,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 +21494,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 +21665,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 +21745,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 +21887,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 +22079,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 +22129,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 +22204,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 +22270,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 +22320,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 +22393,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 +22448,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 +22488,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 +22532,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('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.
|
| +
|
|
|
| - @DomName('MediaKeys.keySystem')
|
| +@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
|
| - static Future create(String keySystem) native;
|
| + Future createMediaKeys() native;
|
| +
|
| + @DomName('MediaKeySystemAccess.getConfiguration')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Map getConfiguration() {
|
| + return convertNativeToDart_Dictionary(_getConfiguration_1());
|
| + }
|
| + @JSName('getConfiguration')
|
| + @DomName('MediaKeySystemAccess.getConfiguration')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + _getConfiguration_1() native;
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for 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 +22626,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 +22688,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 +22716,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 +22860,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 +22962,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 +23227,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
|
| @@ -22219,7 +23281,7 @@ class MessageEvent extends Event {
|
| factory MessageEvent(String type,
|
| {bool canBubble: false, bool cancelable: false, Object data,
|
| String origin, String lastEventId,
|
| - Window source, List messagePorts}) {
|
| + Window source, List<MessagePort> messagePorts}) {
|
| if (source == null) {
|
| source = window;
|
| }
|
| @@ -22229,17 +23291,19 @@ class MessageEvent extends Event {
|
| type, canBubble, cancelable, data, origin, lastEventId, source,
|
| messagePorts);
|
| }
|
| - var event = document._createEvent("MessageEvent");
|
| + MessageEvent event = document._createEvent("MessageEvent");
|
| event._initMessageEvent(type, canBubble, cancelable, data, origin,
|
| 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 +23311,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 +23347,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 +23553,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 +23565,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 +23580,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 +23642,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 +23657,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 +23712,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 +23727,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 +23744,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 +23757,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 +23857,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 +23898,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,
|
| @@ -22886,14 +23909,24 @@ class MouseEvent extends UIEvent {
|
| if (view == null) {
|
| view = window;
|
| }
|
| - var event = document._createEvent('MouseEvent');
|
| + MouseEvent event = document._createEvent('MouseEvent');
|
| event._initMouseEvent(type, canBubble, cancelable, view, detail,
|
| screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey,
|
| 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 +23936,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 +23972,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 +24000,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 +24024,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 +24069,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')
|
| @@ -23058,6 +24123,14 @@ class MouseEvent extends UIEvent {
|
| @DomName('MouseEvent.screenX')
|
| @DomName('MouseEvent.screenY')
|
| Point get screen => new Point(_screenX, _screenY);
|
| +
|
| + @DomName('MouseEvent.layerX')
|
| + @DomName('MouseEvent.layerY')
|
| + Point get layer => new Point(_layerX, _layerY);
|
| +
|
| + @DomName('MouseEvent.pageX')
|
| + @DomName('MouseEvent.pageY')
|
| + Point get page => new Point(_pageX, _pageY);
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -23237,7 +24310,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 +24386,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 +24407,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 +24417,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 +24442,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 +24497,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 +24592,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 +24682,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()
|
| @@ -23814,7 +24953,7 @@ class Node extends EventTarget {
|
| set nodes(Iterable<Node> value) {
|
| // Copy list first since we don't want liveness during iteration.
|
| // TODO(jacobr): there is a better way to do this.
|
| - List copy = new List.from(value);
|
| + var copy = value.toList();
|
| text = '';
|
| for (Node node in copy) {
|
| append(node);
|
| @@ -24141,7 +25280,7 @@ class Node extends EventTarget {
|
| */
|
| @DomName('Node.appendChild')
|
| @DocsEditable()
|
| - Node append(Node newChild) native;
|
| + Node append(Node node) native;
|
|
|
| @JSName('cloneNode')
|
| /**
|
| @@ -24193,17 +25332,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 +25376,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 +25511,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 +25637,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 +25663,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 +25678,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 +25727,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 +25839,6 @@ class ObjectElement extends HtmlElement {
|
| @DocsEditable()
|
| String height;
|
|
|
| - @DomName('HTMLObjectElement.integrity')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - String integrity;
|
| -
|
| @DomName('HTMLObjectElement.name')
|
| @DocsEditable()
|
| String name;
|
| @@ -24657,6 +25879,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 +26063,14 @@ class OutputElement extends HtmlElement {
|
| @DocsEditable()
|
| bool checkValidity() native;
|
|
|
| - @DomName('HTMLOutputElement.setCustomValidity')
|
| + @DomName('HTMLOutputElement.reportValidity')
|
| @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')
|
| - @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 +26086,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 +26185,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 +26345,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 +26396,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 +26432,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 +26545,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 +26621,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 +26730,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 +26941,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 +27010,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 +27041,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 +27062,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 +27137,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 +27218,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 +27274,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 +27453,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 +27483,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 +27555,92 @@ 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 _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
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +
|
| +@DocsEditable()
|
| +@DomName('PushMessageData')
|
| +@Experimental() // untriaged
|
| +@Native("PushMessageData")
|
| +class PushMessageData extends Interceptor {
|
| + // To suppress missing implicit constructor warnings.
|
| + factory PushMessageData._() { throw new UnsupportedError("Not supported"); }
|
| +
|
| + @DomName('PushMessageData.PushMessageData')
|
| + @DocsEditable()
|
| + factory PushMessageData(String message) {
|
| + return PushMessageData._create_1(message);
|
| + }
|
| + static PushMessageData _create_1(message) => JS('PushMessageData', 'new PushMessageData(#)', message);
|
| +
|
| + @DomName('PushMessageData.arrayBuffer')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - Future register(String senderId) native;
|
| + ByteBuffer arrayBuffer() native;
|
| +
|
| + @DomName('PushMessageData.blob')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Blob blob() native;
|
| +
|
| + @DomName('PushMessageData.json')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Object json() native;
|
| +
|
| + @DomName('PushMessageData.text')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + String text() native;
|
| }
|
| // Copyright (c) 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 +27648,22 @@ class PushManager extends Interceptor {
|
|
|
|
|
| @DocsEditable()
|
| -@DomName('PushRegistration')
|
| +@DomName('PushSubscription')
|
| @Experimental() // untriaged
|
| -@Native("PushRegistration")
|
| -class PushRegistration extends Interceptor {
|
| +@Native("PushSubscription")
|
| +class PushSubscription extends Interceptor {
|
| // To suppress missing implicit constructor warnings.
|
| - factory PushRegistration._() { throw new UnsupportedError("Not supported"); }
|
| + factory PushSubscription._() { throw new UnsupportedError("Not supported"); }
|
|
|
| - @DomName('PushRegistration.pushEndpoint')
|
| + @DomName('PushSubscription.endpoint')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - final String pushEndpoint;
|
| + final String endpoint;
|
|
|
| - @DomName('PushRegistration.pushRegistrationId')
|
| + @DomName('PushSubscription.unsubscribe')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - final String pushRegistrationId;
|
| + 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 +27750,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 +27801,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 +27836,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 +27895,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 +27958,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
|
| - Future cancel(Object reason) native;
|
| + final Future closed;
|
|
|
| - @DomName('ReadableStream.read')
|
| + @DomName('ReadableStreamReader.cancel')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - Object read() native;
|
| + Future cancel([Object reason]) native;
|
|
|
| - @DomName('ReadableStream.wait')
|
| + @DomName('ReadableStreamReader.read')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - Future wait() native;
|
| + Future read() native;
|
| +
|
| + @DomName('ReadableStreamReader.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
|
| @@ -26156,6 +28014,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
|
| @@ -26175,7 +28045,6 @@ class RelatedEvent extends Event {
|
|
|
| @DomName('RequestAnimationFrameCallback')
|
| typedef void RequestAnimationFrameCallback(num highResTime);
|
| -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.
|
| @@ -26433,6 +28302,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;
|
| @@ -26909,14 +28786,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);
|
| @@ -26952,10 +28821,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;
|
| @@ -27134,6 +28999,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()
|
| @@ -27142,6 +29114,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()
|
| @@ -27271,12 +29255,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()
|
| @@ -27288,7 +29272,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()
|
| @@ -27298,8 +29287,7 @@ class SelectElement extends HtmlElement {
|
| // Override default options, since IE returns SelectElement itself and it
|
| // does not operate as a List.
|
| List<OptionElement> get options {
|
| - var options = this.querySelectorAll('option').where(
|
| - (e) => e is OptionElement).toList();
|
| + var options = new List<OptionElement>.from(this.querySelectorAll('option'));
|
| return new UnmodifiableListView(options);
|
| }
|
|
|
| @@ -27393,7 +29381,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()
|
| @@ -27441,19 +29429,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;
|
|
|
| - @DomName('ServiceWorkerClient.postMessage')
|
| + @JSName('targetURL')
|
| + @DomName('ServicePort.targetURL')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + final String targetUrl;
|
| +
|
| + @DomName('ServicePort.close')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + void close() native;
|
| +
|
| + @DomName('ServicePort.postMessage')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| void postMessage(/*SerializedScriptValue*/ message, [List<MessagePort> transfer]) {
|
| @@ -27467,12 +29471,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;
|
| @@ -27483,33 +29487,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('ServicePortCollection.messageEvent')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message');
|
|
|
| - @DomName('ServiceWorkerClients.getAll')
|
| + @DomName('ServicePortCollection.connect')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - Future getAll([Map options]) {
|
| + 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 _connect_2(url);
|
| + }
|
| + @JSName('connect')
|
| + @DomName('ServicePortCollection.connect')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Future _connect_1(url, options) native;
|
| + @JSName('connect')
|
| + @DomName('ServicePortCollection.connect')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Future _connect_2(url) native;
|
| +
|
| + @DomName('ServicePortCollection.match')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Future match(Map options) {
|
| + var options_1 = convertDartToNative_Dictionary(options);
|
| + return _match_1(options_1);
|
| + }
|
| + @JSName('match')
|
| + @DomName('ServicePortCollection.match')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Future _match_1(options) native;
|
| +
|
| + @DomName('ServicePortCollection.matchAll')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Future matchAll([Map options]) {
|
| + if (options != null) {
|
| + var options_1 = convertDartToNative_Dictionary(options);
|
| + return _matchAll_1(options_1);
|
| + }
|
| + return _matchAll_2();
|
| + }
|
| + @JSName('matchAll')
|
| + @DomName('ServicePortCollection.matchAll')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Future _matchAll_1(options) native;
|
| + @JSName('matchAll')
|
| + @DomName('ServicePortCollection.matchAll')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Future _matchAll_2() native;
|
| +
|
| + @DomName('ServicePortCollection.onmessage')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +
|
| +@DocsEditable()
|
| +@DomName('ServicePortConnectEvent')
|
| +@Experimental() // untriaged
|
| +@Native("ServicePortConnectEvent")
|
| +class ServicePortConnectEvent extends ExtendableEvent {
|
| + // To suppress missing implicit constructor warnings.
|
| + factory ServicePortConnectEvent._() { throw new UnsupportedError("Not supported"); }
|
| +
|
| + @DomName('ServicePortConnectEvent.ServicePortConnectEvent')
|
| + @DocsEditable()
|
| + factory ServicePortConnectEvent(String type, [Map eventInitDict]) {
|
| + if (eventInitDict != null) {
|
| + var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
|
| + return ServicePortConnectEvent._create_1(type, eventInitDict_1);
|
| }
|
| - return _getAll_2();
|
| + return ServicePortConnectEvent._create_2(type);
|
| }
|
| - @JSName('getAll')
|
| - @DomName('ServiceWorkerClients.getAll')
|
| + 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
|
| - Future _getAll_1(options) native;
|
| - @JSName('getAll')
|
| - @DomName('ServiceWorkerClients.getAll')
|
| + final String origin;
|
| +
|
| + @JSName('targetURL')
|
| + @DomName('ServicePortConnectEvent.targetURL')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + final String targetUrl;
|
| +
|
| + @DomName('ServicePortConnectEvent.respondWith')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - Future _getAll_2() native;
|
| + 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
|
| @@ -27520,10 +29609,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
|
| @@ -27539,6 +29633,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
|
| @@ -27559,6 +29658,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
|
| @@ -27578,66 +29682,96 @@ 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 Clients clients;
|
| +
|
| + @DomName('ServiceWorkerGlobalScope.ports')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - final CacheStorage caches;
|
| + final StashedPortCollection ports;
|
|
|
| - @DomName('ServiceWorkerGlobalScope.clients')
|
| + @DomName('ServiceWorkerGlobalScope.registration')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - final ServiceWorkerClients clients;
|
| + final ServiceWorkerRegistration registration;
|
|
|
| - @DomName('ServiceWorkerGlobalScope.scope')
|
| + @DomName('ServiceWorkerGlobalScope.skipWaiting')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - final String scope;
|
| + Future skipWaiting() native;
|
|
|
| - @DomName('ServiceWorkerGlobalScope.fetch')
|
| + @DomName('ServiceWorkerGlobalScope.onmessage')
|
| @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);
|
| + Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
|
| +}
|
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
| +// for 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.
|
| +
|
| +
|
| +// TODO(alanknight): Provide a nicer constructor that uses named parameters
|
| +// rather than an initialization map.
|
| +@DomName('ServiceWorkerMessageEvent')
|
| +@Experimental() // untriaged
|
| +@Native("ServiceWorkerMessageEvent")
|
| +class ServiceWorkerMessageEvent extends Event {
|
| +
|
| + // 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('ServiceWorkerMessageEvent.data')
|
| + @DocsEditable()
|
| + dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
|
| +
|
| + @JSName('data')
|
| + @DomName('ServiceWorkerMessageEvent.data')
|
| + @DocsEditable()
|
| + @annotation_Creates_SerializedScriptValue
|
| + @annotation_Returns_SerializedScriptValue
|
| + final dynamic _get_data;
|
| +
|
| + // 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')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - Future _fetch_1(String request) native;
|
| - @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.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);
|
| + @Creates('Null')
|
| + @Returns('_ServiceWorker|MessagePort')
|
| + 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
|
| @@ -27657,25 +29791,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
|
| @@ -27732,6 +29933,11 @@ class ShadowRoot extends DocumentFragment {
|
| @DocsEditable()
|
| final Element activeElement;
|
|
|
| + @DomName('ShadowRoot.delegatesFocus')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + final bool delegatesFocus;
|
| +
|
| @DomName('ShadowRoot.host')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| @@ -27763,17 +29969,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()
|
| @@ -27824,6 +30023,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()
|
| @@ -27934,6 +30151,11 @@ class SourceBuffer extends EventTarget {
|
| @DocsEditable()
|
| num timestampOffset;
|
|
|
| + @DomName('SourceBuffer.trackDefaults')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + TrackDefaultList trackDefaults;
|
| +
|
| @DomName('SourceBuffer.updating')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| @@ -28052,11 +30274,6 @@ class SourceElement extends HtmlElement {
|
| */
|
| SourceElement.created() : super.created();
|
|
|
| - @DomName('HTMLSourceElement.integrity')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - String integrity;
|
| -
|
| @DomName('HTMLSourceElement.media')
|
| @DocsEditable()
|
| String media;
|
| @@ -28371,6 +30588,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;
|
| @@ -28391,6 +30613,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;
|
| @@ -28501,6 +30729,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;
|
| @@ -28524,6 +30764,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;
|
| @@ -28640,6 +30892,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
|
| @@ -28836,6 +31093,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.
|
| @@ -28872,11 +31175,11 @@ class Storage extends Interceptor
|
| }
|
|
|
| // TODO(nweiz): update this when maps support lazy iteration
|
| - bool containsValue(String value) => values.any((e) => e == value);
|
| + bool containsValue(Object value) => values.any((e) => e == value);
|
|
|
| - bool containsKey(String key) => _getItem(key) != null;
|
| + bool containsKey(Object key) => _getItem(key) != null;
|
|
|
| - String operator [](String key) => _getItem(key);
|
| + String operator [](Object key) => _getItem(key);
|
|
|
| void operator []=(String key, String value) { _setItem(key, value); }
|
|
|
| @@ -28885,7 +31188,7 @@ class Storage extends Interceptor
|
| return this[key];
|
| }
|
|
|
| - String remove(String key) {
|
| + String remove(Object key) {
|
| final value = this[key];
|
| _removeItem(key);
|
| return value;
|
| @@ -28903,13 +31206,13 @@ class Storage extends Interceptor
|
| }
|
|
|
| Iterable<String> get keys {
|
| - final keys = [];
|
| + final keys = <String>[];
|
| forEach((k, v) => keys.add(k));
|
| return keys;
|
| }
|
|
|
| Iterable<String> get values {
|
| - final values = [];
|
| + final values = <String>[];
|
| forEach((k, v) => values.add(v));
|
| return values;
|
| }
|
| @@ -28991,13 +31294,23 @@ class StorageEvent extends Event {
|
| {bool canBubble: false, bool cancelable: false, String key, String oldValue,
|
| String newValue, String url, Storage storageArea}) {
|
|
|
| - var e = document._createEvent("StorageEvent");
|
| + StorageEvent e = document._createEvent("StorageEvent");
|
| e._initStorageEvent(type, canBubble, cancelable, key, oldValue,
|
| 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()
|
| @@ -29217,6 +31530,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 {
|
| @@ -29662,6 +32073,11 @@ class TextAreaElement extends HtmlElement {
|
| */
|
| TextAreaElement.created() : super.created();
|
|
|
| + @DomName('HTMLTextAreaElement.autocapitalize')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + String autocapitalize;
|
| +
|
| @DomName('HTMLTextAreaElement.autofocus')
|
| @DocsEditable()
|
| bool autofocus;
|
| @@ -29704,6 +32120,11 @@ class TextAreaElement extends HtmlElement {
|
| @DocsEditable()
|
| int maxLength;
|
|
|
| + @DomName('HTMLTextAreaElement.minLength')
|
| + @DocsEditable()
|
| + @Experimental() // untriaged
|
| + int minLength;
|
| +
|
| @DomName('HTMLTextAreaElement.name')
|
| @DocsEditable()
|
| String name;
|
| @@ -29768,6 +32189,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;
|
| @@ -29802,7 +32228,7 @@ class TextEvent extends UIEvent {
|
| if (view == null) {
|
| view = window;
|
| }
|
| - var e = document._createEvent("TextEvent");
|
| + TextEvent e = document._createEvent("TextEvent");
|
| e._initTextEvent(type, canBubble, cancelable, view, data);
|
| return e;
|
| }
|
| @@ -30241,69 +32667,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 {
|
| @@ -30375,6 +32738,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()
|
| @@ -30395,14 +32763,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.
|
| @@ -30462,7 +32822,7 @@ class TouchEvent extends UIEvent {
|
| if (view == null) {
|
| view = window;
|
| }
|
| - var e = document._createEvent("TouchEvent");
|
| + TouchEvent e = document._createEvent("TouchEvent");
|
| e._initTouchEvent(touches, targetTouches, changedTouches, type, view,
|
| screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey);
|
| return e;
|
| @@ -30594,6 +32954,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')
|
| @@ -30639,11 +33084,6 @@ class TrackElement extends HtmlElement {
|
| @DocsEditable()
|
| bool defaultValue;
|
|
|
| - @DomName('HTMLTrackElement.integrity')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - String integrity;
|
| -
|
| @DomName('HTMLTrackElement.kind')
|
| @DocsEditable()
|
| String kind;
|
| @@ -30681,6 +33121,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')
|
| @@ -30698,6 +33150,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;
|
| @@ -30792,12 +33256,22 @@ class UIEvent extends Event {
|
| if (view == null) {
|
| view = window;
|
| }
|
| - final e = document._createEvent("UIEvent");
|
| + UIEvent e = document._createEvent("UIEvent");
|
| 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')
|
| @@ -30815,33 +33289,10 @@ class UIEvent extends Event {
|
| @Unstable()
|
| final int _keyCode;
|
|
|
| - @JSName('layerX')
|
| - @DomName('UIEvent.layerX')
|
| - @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')
|
| + @DomName('UIEvent.sourceDevice')
|
| @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()
|
| @@ -30853,24 +33304,17 @@ class UIEvent extends Event {
|
| @Returns('Window|=Object')
|
| final dynamic _get_view;
|
|
|
| + @JSName('which')
|
| @DomName('UIEvent.which')
|
| @DocsEditable()
|
| @Unstable()
|
| - final int which;
|
| + final int _which;
|
|
|
| @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')
|
| - @DomName('UIEvent.layerY')
|
| - Point get layer => new Point(_layerX, _layerY);
|
| -
|
| - @DomName('UIEvent.pageX')
|
| - @DomName('UIEvent.pageY')
|
| - Point get page => new Point(_pageX, _pageY);
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -31078,6 +33522,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 {
|
| @@ -31112,6 +33720,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;
|
| @@ -31358,12 +33971,16 @@ class VttCue extends TextTrackCue {
|
| @DomName('VTTCue.line')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - int line;
|
| + @Creates('Null')
|
| + @Returns('num|String')
|
| + Object line;
|
|
|
| @DomName('VTTCue.position')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - int position;
|
| + @Creates('Null')
|
| + @Returns('num|String')
|
| + Object position;
|
|
|
| @DomName('VTTCue.regionId')
|
| @DocsEditable()
|
| @@ -31373,7 +33990,7 @@ class VttCue extends TextTrackCue {
|
| @DomName('VTTCue.size')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - int size;
|
| + num size;
|
|
|
| @DomName('VTTCue.snapToLines')
|
| @DocsEditable()
|
| @@ -31582,22 +34199,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);
|
| - }
|
| - 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);
|
| + factory WebSocket(String url, [Object protocols]) {
|
| + if (protocols != null) {
|
| + return WebSocket._create_1(url, protocols);
|
| }
|
| - 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"');
|
| @@ -31772,8 +34381,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()
|
| @@ -32038,9 +34657,9 @@ 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));
|
| + return _requestAnimationFrame(_wrapZone/*<num, dynamic>*/(callback));
|
| }
|
|
|
| /**
|
| @@ -32057,7 +34676,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;
|
| @@ -32333,18 +34952,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.
|
| *
|
| @@ -32361,6 +34968,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;
|
| @@ -32897,6 +35509,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.
|
| *
|
| @@ -32913,7 +35546,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')
|
| /**
|
| @@ -32966,12 +35599,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')
|
| @@ -32986,7 +35619,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);
|
| @@ -33027,7 +35660,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.
|
| @@ -33039,7 +35672,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.
|
| @@ -33053,23 +35686,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 int) && (x is int) && scrollOptions == null) {
|
| - _scroll_3(x, y);
|
| + if ((y is num) && (options_OR_x is num) && scrollOptions == null) {
|
| + _scroll_3(options_OR_x, y);
|
| return;
|
| }
|
| - if (scrollOptions != null && (y is int) && (x is int)) {
|
| + if ((y is int) && (options_OR_x is int) && scrollOptions == null) {
|
| + _scroll_4(options_OR_x, y);
|
| + return;
|
| + }
|
| + 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");
|
| @@ -33087,7 +35724,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.
|
| @@ -33101,7 +35752,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.
|
| @@ -33115,7 +35766,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.
|
| @@ -33129,7 +35780,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.
|
| @@ -33141,23 +35792,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");
|
| @@ -33173,7 +35828,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.
|
| @@ -33185,7 +35840,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.
|
| @@ -33197,7 +35852,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.
|
| @@ -33209,7 +35864,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.
|
| @@ -33223,23 +35890,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");
|
| @@ -33257,7 +35928,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.
|
| @@ -33271,7 +35942,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.
|
| @@ -33285,7 +35956,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.
|
| @@ -33299,21 +35970,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.
|
| @@ -33394,33 +36065,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')
|
| @@ -33893,12 +36574,11 @@ class _BeforeUnloadEventStreamProvider implements
|
|
|
| Stream<BeforeUnloadEvent> forTarget(EventTarget e, {bool useCapture: false}) {
|
| var stream = new _EventStream(e, _eventType, useCapture);
|
| - var controller = new StreamController(sync: true);
|
| + var controller = new StreamController<BeforeUnloadEvent>(sync: true);
|
|
|
| stream.listen((event) {
|
| var wrapped = new _BeforeUnloadEvent(event);
|
| controller.add(wrapped);
|
| - return wrapped.returnValue;
|
| });
|
|
|
| return controller.stream;
|
| @@ -33929,9 +36609,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.
|
| +
|
|
|
| - String btoa(String string);
|
| +@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;
|
| +
|
| + @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
|
| @@ -34147,6 +36855,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
|
| @@ -34187,6 +36900,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
|
| @@ -34251,38 +36985,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')
|
| @@ -34299,7 +37045,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"); }
|
|
|
| @@ -34308,10 +37054,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
|
| @@ -34344,7 +37143,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
|
| @@ -34362,7 +37161,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
|
| @@ -34509,7 +37308,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
|
| @@ -34547,7 +37346,7 @@ class XsltProcessor extends Interceptor {
|
|
|
| @DomName('XSLTProcessor.importStylesheet')
|
| @DocsEditable()
|
| - void importStylesheet(Node stylesheet) native;
|
| + void importStylesheet(Node style) native;
|
|
|
| @DomName('XSLTProcessor.removeParameter')
|
| @DocsEditable()
|
| @@ -34567,7 +37366,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
|
| @@ -34594,13 +37393,6 @@ class _Attr extends Node {
|
| // Use implementation from Node.
|
| // final String nodeValue;
|
|
|
| - // Shadowing definition.
|
| - String get text => JS("String", "#.textContent", this);
|
| -
|
| - set text(String value) {
|
| - JS("void", "#.textContent = #", this, value);
|
| - }
|
| -
|
| @DomName('Attr.value')
|
| @DocsEditable()
|
| String value;
|
| @@ -34611,48 +37403,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")
|
| @@ -34843,7 +37593,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"); }
|
|
|
| @@ -34855,7 +37605,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.");
|
| @@ -34895,6 +37645,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;
|
| @@ -34905,20 +37660,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> {
|
| @@ -34983,72 +37724,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()
|
| @@ -35443,29 +38118,6 @@ abstract class _HTMLMarqueeElement extends HtmlElement {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| -@DomName('MutationEvent')
|
| -// http://www.w3.org/TR/DOM-Level-3-Events/#events-mutationevents
|
| -@deprecated
|
| -@Native("MutationEvent")
|
| -abstract class _MutationEvent extends Event {
|
| - factory _MutationEvent(String type,
|
| - {bool canBubble: false, bool cancelable: false, Node relatedNode,
|
| - String prevValue, String newValue, String attrName, int attrChange: 0}) {
|
| -
|
| - var event = document._createEvent('MutationEvent');
|
| - event._initMutationEvent(type, canBubble, cancelable, relatedNode,
|
| - prevValue, newValue, attrName, attrChange);
|
| - return event;
|
| - }
|
| - // To suppress missing implicit constructor warnings.
|
| - factory _MutationEvent._() { 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('NamedNodeMap')
|
| // http://dom.spec.whatwg.org/#namednodemap
|
| @@ -35523,37 +38175,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
|
| @@ -35568,20 +38216,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.
|
| @@ -35597,20 +38231,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")
|
| @@ -35620,27 +38240,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)) {
|
| + factory _Request(Object input, [Map requestInitDict]) {
|
| + if (requestInitDict != null) {
|
| var requestInitDict_1 = convertDartToNative_Dictionary(requestInitDict);
|
| - return _Request._create_2(input, requestInitDict_1);
|
| + return _Request._create_1(input, requestInitDict_1);
|
| }
|
| - if ((input is _Request || input == null) && requestInitDict == null) {
|
| - return _Request._create_3(input);
|
| - }
|
| - if ((requestInitDict is Map || requestInitDict == null) && (input is _Request || input == null)) {
|
| - var requestInitDict_1 = convertDartToNative_Dictionary(requestInitDict);
|
| - return _Request._create_4(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()
|
| @@ -35687,45 +38300,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
|
| @@ -35895,20 +38482,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)
|
| @@ -35937,33 +38510,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 _clearTimeout(int handle);
|
| + void _clearInterval([int handle]);
|
|
|
| - int _setInterval(Object handler, int timeout);
|
| + void _clearTimeout([int handle]);
|
|
|
| - int _setTimeout(Object handler, int timeout);
|
| + int _setInterval(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
|
| @@ -36032,7 +38595,7 @@ abstract class _AttributeMap implements Map<String, String> {
|
| other.forEach((k, v) { this[k] = v; });
|
| }
|
|
|
| - bool containsValue(String value) {
|
| + bool containsValue(Object value) {
|
| for (var v in this.values) {
|
| if (value == v) {
|
| return true;
|
| @@ -36064,10 +38627,11 @@ abstract class _AttributeMap implements Map<String, String> {
|
| Iterable<String> get keys {
|
| // TODO: generate a lazy collection instead.
|
| var attributes = _element._attributes;
|
| - var keys = new List<String>();
|
| + var keys = <String>[];
|
| for (int i = 0, len = attributes.length; i < len; i++) {
|
| - if (_matches(attributes[i])) {
|
| - keys.add(attributes[i].name);
|
| + _Attr attr = attributes[i];
|
| + if (_matches(attr)) {
|
| + keys.add(attr.name);
|
| }
|
| }
|
| return keys;
|
| @@ -36076,10 +38640,11 @@ abstract class _AttributeMap implements Map<String, String> {
|
| Iterable<String> get values {
|
| // TODO: generate a lazy collection instead.
|
| var attributes = _element._attributes;
|
| - var values = new List<String>();
|
| + var values = <String>[];
|
| for (int i = 0, len = attributes.length; i < len; i++) {
|
| - if (_matches(attributes[i])) {
|
| - values.add(attributes[i].value);
|
| + _Attr attr = attributes[i];
|
| + if (_matches(attr)) {
|
| + values.add(attr.value);
|
| }
|
| }
|
| return values;
|
| @@ -36110,11 +38675,11 @@ class _ElementAttributeMap extends _AttributeMap {
|
|
|
| _ElementAttributeMap(Element element): super(element);
|
|
|
| - bool containsKey(String key) {
|
| + bool containsKey(Object key) {
|
| return _element._hasAttribute(key);
|
| }
|
|
|
| - String operator [](String key) {
|
| + String operator [](Object key) {
|
| return _element.getAttribute(key);
|
| }
|
|
|
| @@ -36122,7 +38687,7 @@ class _ElementAttributeMap extends _AttributeMap {
|
| _element.setAttribute(key, value);
|
| }
|
|
|
| - String remove(String key) {
|
| + String remove(Object key) {
|
| String value = _element.getAttribute(key);
|
| _element._removeAttribute(key);
|
| return value;
|
| @@ -36147,11 +38712,11 @@ class _NamespacedAttributeMap extends _AttributeMap {
|
|
|
| _NamespacedAttributeMap(Element element, this._namespace): super(element);
|
|
|
| - bool containsKey(String key) {
|
| + bool containsKey(Object key) {
|
| return _element._hasAttributeNS(_namespace, key);
|
| }
|
|
|
| - String operator [](String key) {
|
| + String operator [](Object key) {
|
| return _element.getAttributeNS(_namespace, key);
|
| }
|
|
|
| @@ -36159,7 +38724,7 @@ class _NamespacedAttributeMap extends _AttributeMap {
|
| _element.setAttributeNS(_namespace, key, value);
|
| }
|
|
|
| - String remove(String key) {
|
| + String remove(Object key) {
|
| String value = this[key];
|
| _element._removeAttributeNS(_namespace, key);
|
| return value;
|
| @@ -36193,11 +38758,11 @@ class _DataAttributeMap implements Map<String, String> {
|
| }
|
|
|
| // TODO: Use lazy iterator when it is available on Map.
|
| - bool containsValue(String value) => values.any((v) => v == value);
|
| + bool containsValue(Object value) => values.any((v) => v == value);
|
|
|
| - bool containsKey(String key) => _attributes.containsKey(_attr(key));
|
| + bool containsKey(Object key) => _attributes.containsKey(_attr(key));
|
|
|
| - String operator [](String key) => _attributes[_attr(key)];
|
| + String operator [](Object key) => _attributes[_attr(key)];
|
|
|
| void operator []=(String key, String value) {
|
| _attributes[_attr(key)] = value;
|
| @@ -36206,7 +38771,7 @@ class _DataAttributeMap implements Map<String, String> {
|
| String putIfAbsent(String key, String ifAbsent()) =>
|
| _attributes.putIfAbsent(_attr(key), ifAbsent);
|
|
|
| - String remove(String key) => _attributes.remove(_attr(key));
|
| + String remove(Object key) => _attributes.remove(_attr(key));
|
|
|
| void clear() {
|
| // Needs to operate on a snapshot since we are mutating the collection.
|
| @@ -36224,7 +38789,7 @@ class _DataAttributeMap implements Map<String, String> {
|
| }
|
|
|
| Iterable<String> get keys {
|
| - final keys = new List<String>();
|
| + final keys = <String>[];
|
| _attributes.forEach((String key, String value) {
|
| if (_matches(key)) {
|
| keys.add(_strip(key));
|
| @@ -36234,7 +38799,7 @@ class _DataAttributeMap implements Map<String, String> {
|
| }
|
|
|
| Iterable<String> get values {
|
| - final values = new List<String>();
|
| + final values = <String>[];
|
| _attributes.forEach((String key, String value) {
|
| if (_matches(key)) {
|
| values.add(value);
|
| @@ -36465,7 +39030,7 @@ abstract class WindowBase implements EventTarget {
|
| * * [Cross-document messaging](https://html.spec.whatwg.org/multipage/comms.html#web-messaging)
|
| * from WHATWG.
|
| */
|
| - void postMessage(var message, String targetOrigin, [List messagePorts]);
|
| + void postMessage(var message, String targetOrigin, [List<MessagePort> messagePorts]);
|
| }
|
|
|
| abstract class LocationBase {
|
| @@ -36519,7 +39084,7 @@ abstract class CssClassSet implements Set<String> {
|
| * [value] must be a valid 'token' representing a single class, i.e. a
|
| * non-empty string containing no whitespace.
|
| */
|
| - bool contains(String value);
|
| + bool contains(Object value);
|
|
|
| /**
|
| * Add the class [value] to element.
|
| @@ -36571,7 +39136,7 @@ abstract class CssClassSet implements Set<String> {
|
| * Each element of [iterable] must be a valid 'token' representing a single
|
| * class, i.e. a non-empty string containing no whitespace.
|
| */
|
| - void removeAll(Iterable<String> iterable);
|
| + void removeAll(Iterable<Object> iterable);
|
|
|
| /**
|
| * Toggles all classes specified in [iterable] on element.
|
| @@ -36599,7 +39164,7 @@ abstract class CssClassSet implements Set<String> {
|
| */
|
| class _ContentCssRect extends CssRect {
|
|
|
| - _ContentCssRect(element) : super(element);
|
| + _ContentCssRect(Element element) : super(element);
|
|
|
| num get height => _element.offsetHeight +
|
| _addOrSubtractToBoxModel(_HEIGHT, _CONTENT);
|
| @@ -36620,9 +39185,11 @@ class _ContentCssRect extends CssRect {
|
| if (newHeight is Dimension) {
|
| if (newHeight.value < 0) newHeight = new Dimension.px(0);
|
| _element.style.height = newHeight.toString();
|
| - } else {
|
| + } else if (newHeight is num) {
|
| if (newHeight < 0) newHeight = 0;
|
| _element.style.height = '${newHeight}px';
|
| + } else {
|
| + throw new ArgumentError("newHeight is not a Dimension or num");
|
| }
|
| }
|
|
|
| @@ -36638,9 +39205,11 @@ class _ContentCssRect extends CssRect {
|
| if (newWidth is Dimension) {
|
| if (newWidth.value < 0) newWidth = new Dimension.px(0);
|
| _element.style.width = newWidth.toString();
|
| - } else {
|
| + } else if (newWidth is num) {
|
| if (newWidth < 0) newWidth = 0;
|
| _element.style.width = '${newWidth}px';
|
| + } else {
|
| + throw new ArgumentError("newWidth is not a Dimension or num");
|
| }
|
| }
|
|
|
| @@ -36657,7 +39226,7 @@ class _ContentCssRect extends CssRect {
|
| class _ContentCssListRect extends _ContentCssRect {
|
| List<Element> _elementList;
|
|
|
| - _ContentCssListRect(elementList) : super(elementList.first) {
|
| + _ContentCssListRect(List<Element> elementList) : super(elementList.first) {
|
| _elementList = elementList;
|
| }
|
|
|
| @@ -36746,10 +39315,10 @@ class _MarginCssRect extends CssRect {
|
| * animation frame is discouraged. See also:
|
| * [Browser Reflow](https://developers.google.com/speed/articles/reflow)
|
| */
|
| -abstract class CssRect extends MutableRectangle<num> {
|
| +abstract class CssRect implements Rectangle<num> {
|
| Element _element;
|
|
|
| - CssRect(this._element) : super(0, 0, 0, 0);
|
| + CssRect(this._element);
|
|
|
| num get left;
|
|
|
| @@ -36842,6 +39411,102 @@ abstract class CssRect extends MutableRectangle<num> {
|
| }
|
| return val;
|
| }
|
| +
|
| + // TODO(jacobr): these methods are duplicated from _RectangleBase in dart:math
|
| + // Ideally we would provide a RectangleMixin class that provides this implementation.
|
| + // In an ideal world we would exp
|
| + /** The x-coordinate of the right edge. */
|
| + num get right => left + width;
|
| + /** The y-coordinate of the bottom edge. */
|
| + num get bottom => top + height;
|
| +
|
| + String toString() {
|
| + return 'Rectangle ($left, $top) $width x $height';
|
| + }
|
| +
|
| + bool operator ==(other) {
|
| + if (other is !Rectangle) return false;
|
| + return left == other.left && top == other.top && right == other.right &&
|
| + bottom == other.bottom;
|
| + }
|
| +
|
| + int get hashCode => _JenkinsSmiHash.hash4(left.hashCode, top.hashCode,
|
| + right.hashCode, bottom.hashCode);
|
| +
|
| + /**
|
| + * Computes the intersection of `this` and [other].
|
| + *
|
| + * The intersection of two axis-aligned rectangles, if any, is always another
|
| + * axis-aligned rectangle.
|
| + *
|
| + * Returns the intersection of this and `other`, or `null` if they don't
|
| + * intersect.
|
| + */
|
| + Rectangle<num> intersection(Rectangle<num> other) {
|
| + var x0 = max(left, other.left);
|
| + var x1 = min(left + width, other.left + other.width);
|
| +
|
| + if (x0 <= x1) {
|
| + var y0 = max(top, other.top);
|
| + var y1 = min(top + height, other.top + other.height);
|
| +
|
| + if (y0 <= y1) {
|
| + return new Rectangle<num>(x0, y0, x1 - x0, y1 - y0);
|
| + }
|
| + }
|
| + return null;
|
| + }
|
| +
|
| +
|
| + /**
|
| + * Returns true if `this` intersects [other].
|
| + */
|
| + bool intersects(Rectangle<num> other) {
|
| + return (left <= other.left + other.width &&
|
| + other.left <= left + width &&
|
| + top <= other.top + other.height &&
|
| + other.top <= top + height);
|
| + }
|
| +
|
| + /**
|
| + * Returns a new rectangle which completely contains `this` and [other].
|
| + */
|
| + Rectangle<num> boundingBox(Rectangle<num> other) {
|
| + var right = max(this.left + this.width, other.left + other.width);
|
| + var bottom = max(this.top + this.height, other.top + other.height);
|
| +
|
| + var left = min(this.left, other.left);
|
| + var top = min(this.top, other.top);
|
| +
|
| + return new Rectangle<num>(left, top, right - left, bottom - top);
|
| + }
|
| +
|
| + /**
|
| + * Tests whether `this` entirely contains [another].
|
| + */
|
| + bool containsRectangle(Rectangle<num> another) {
|
| + return left <= another.left &&
|
| + left + width >= another.left + another.width &&
|
| + top <= another.top &&
|
| + top + height >= another.top + another.height;
|
| + }
|
| +
|
| + /**
|
| + * Tests whether [another] is inside or along the edges of `this`.
|
| + */
|
| + bool containsPoint(Point<num> another) {
|
| + return another.x >= left &&
|
| + another.x <= left + width &&
|
| + another.y >= top &&
|
| + another.y <= top + height;
|
| + }
|
| +
|
| + Point<num> get topLeft => new Point<num>(this.left, this.top);
|
| + Point<num> get topRight => new Point<num>(this.left + this.width, this.top);
|
| + Point<num> get bottomRight => new Point<num>(this.left + this.width,
|
| + this.top + this.height);
|
| + Point<num> get bottomLeft => new Point<num>(this.left,
|
| + this.top + this.height);
|
| }
|
|
|
| final _HEIGHT = ['top', 'bottom'];
|
| @@ -36970,11 +39635,11 @@ class _ElementCssClassSet extends CssClassSetImpl {
|
| _addAll(_element, iterable);
|
| }
|
|
|
| - void removeAll(Iterable<String> iterable) {
|
| + void removeAll(Iterable<Object> iterable) {
|
| _removeAll(_element, iterable);
|
| }
|
|
|
| - void retainAll(Iterable<String> iterable) {
|
| + void retainAll(Iterable<Object> iterable) {
|
| _removeWhere(_element, iterable.toSet().contains, false);
|
| }
|
|
|
| @@ -37229,7 +39894,7 @@ class EventStreamProvider<T extends Event> {
|
| * [addEventListener](http://docs.webplatform.org/wiki/dom/methods/addEventListener)
|
| */
|
| Stream<T> forTarget(EventTarget e, {bool useCapture: false}) =>
|
| - new _EventStream(e, _eventType, useCapture);
|
| + new _EventStream<T>(e, _eventType, useCapture);
|
|
|
| /**
|
| * Gets an [ElementEventStream] for this event type, on the specified element.
|
| @@ -37253,7 +39918,7 @@ class EventStreamProvider<T extends Event> {
|
| * [addEventListener](http://docs.webplatform.org/wiki/dom/methods/addEventListener)
|
| */
|
| ElementStream<T> forElement(Element e, {bool useCapture: false}) {
|
| - return new _ElementEventStreamImpl(e, _eventType, useCapture);
|
| + return new _ElementEventStreamImpl<T>(e, _eventType, useCapture);
|
| }
|
|
|
| /**
|
| @@ -37324,8 +39989,8 @@ class _EventStream<T extends Event> extends Stream<T> {
|
| _EventStream(this._target, this._eventType, this._useCapture);
|
|
|
| // DOM events are inherently multi-subscribers.
|
| - Stream<T> asBroadcastStream({void onListen(StreamSubscription subscription),
|
| - void onCancel(StreamSubscription subscription)})
|
| + Stream<T> asBroadcastStream({void onListen(StreamSubscription<T> subscription),
|
| + void onCancel(StreamSubscription<T> subscription)})
|
| => this;
|
| bool get isBroadcast => true;
|
|
|
| @@ -37339,6 +40004,11 @@ class _EventStream<T extends Event> extends Stream<T> {
|
| }
|
| }
|
|
|
| +bool _matchesWithAncestors(Event event, String selector) {
|
| + var target = event.target;
|
| + return target is Element ? target.matchesWithAncestors(selector) : false;
|
| +}
|
| +
|
| /**
|
| * Adapter for exposing DOM Element events as streams, while also allowing
|
| * event delegation.
|
| @@ -37349,7 +40019,7 @@ class _ElementEventStreamImpl<T extends Event> extends _EventStream<T>
|
| super(target, eventType, useCapture);
|
|
|
| Stream<T> matches(String selector) => this.where(
|
| - (event) => event.target.matchesWithAncestors(selector)).map((e) {
|
| + (event) => _matchesWithAncestors(event, selector)).map((e) {
|
| e._selector = selector;
|
| return e;
|
| });
|
| @@ -37373,7 +40043,7 @@ class _ElementListEventStreamImpl<T extends Event> extends Stream<T>
|
| this._targetList, this._eventType, this._useCapture);
|
|
|
| Stream<T> matches(String selector) => this.where(
|
| - (event) => event.target.matchesWithAncestors(selector)).map((e) {
|
| + (event) => _matchesWithAncestors(event, selector)).map((e) {
|
| e._selector = selector;
|
| return e;
|
| });
|
| @@ -37383,37 +40053,46 @@ class _ElementListEventStreamImpl<T extends Event> extends Stream<T>
|
| { Function onError,
|
| void onDone(),
|
| bool cancelOnError}) {
|
| - var pool = new _StreamPool.broadcast();
|
| + var pool = new _StreamPool<T>.broadcast();
|
| for (var target in _targetList) {
|
| - pool.add(new _EventStream(target, _eventType, _useCapture));
|
| + pool.add(new _EventStream<T>(target, _eventType, _useCapture));
|
| }
|
| return pool.stream.listen(onData, onError: onError, onDone: onDone,
|
| cancelOnError: cancelOnError);
|
| }
|
|
|
| StreamSubscription<T> capture(void onData(T event)) {
|
| - var pool = new _StreamPool.broadcast();
|
| + var pool = new _StreamPool<T>.broadcast();
|
| for (var target in _targetList) {
|
| - pool.add(new _EventStream(target, _eventType, true));
|
| + pool.add(new _EventStream<T>(target, _eventType, true));
|
| }
|
| return pool.stream.listen(onData);
|
| }
|
|
|
| - Stream<T> asBroadcastStream({void onListen(StreamSubscription subscription),
|
| - void onCancel(StreamSubscription subscription)})
|
| + Stream<T> asBroadcastStream({void onListen(StreamSubscription<T> subscription),
|
| + void onCancel(StreamSubscription<T> subscription)})
|
| => this;
|
| bool get isBroadcast => true;
|
| }
|
|
|
| +// We would like this to just be EventListener<T> but that typdef cannot
|
| +// use generics until dartbug/26276 is fixed.
|
| +typedef _EventListener<T extends Event>(T event);
|
| +
|
| class _EventStreamSubscription<T extends Event> extends StreamSubscription<T> {
|
| int _pauseCount = 0;
|
| EventTarget _target;
|
| final String _eventType;
|
| - var _onData;
|
| + EventListener _onData;
|
| final bool _useCapture;
|
|
|
| - _EventStreamSubscription(this._target, this._eventType, onData,
|
| - this._useCapture) : _onData = _wrapZone(onData) {
|
| + // TODO(jacobr): for full strong mode correctness we should write
|
| + // _onData = onData == null ? null : _wrapZone/*<Event, dynamic>*/((e) => onData(e as T))
|
| + // but that breaks 114 co19 tests as well as multiple html tests as it is reasonable
|
| + // to pass the wrong type of event object to an event listener as part of a
|
| + // test.
|
| + _EventStreamSubscription(this._target, this._eventType, void onData(T event),
|
| + this._useCapture) : _onData = _wrapZone/*<Event, dynamic>*/(onData) {
|
| _tryResume();
|
| }
|
|
|
| @@ -37435,8 +40114,7 @@ class _EventStreamSubscription<T extends Event> extends StreamSubscription<T> {
|
| }
|
| // Remove current event listener.
|
| _unlisten();
|
| -
|
| - _onData = _wrapZone(handleData);
|
| + _onData = _wrapZone/*<Event, dynamic>*/(handleData);
|
| _tryResume();
|
| }
|
|
|
| @@ -37515,8 +40193,8 @@ class _CustomEventStreamImpl<T extends Event> extends Stream<T>
|
| onDone: onDone, cancelOnError: cancelOnError);
|
| }
|
|
|
| - Stream<T> asBroadcastStream({void onListen(StreamSubscription subscription),
|
| - void onCancel(StreamSubscription subscription)})
|
| + Stream<T> asBroadcastStream({void onListen(StreamSubscription<T> subscription),
|
| + void onCancel(StreamSubscription<T> subscription)})
|
| => _streamController.stream;
|
|
|
| bool get isBroadcast => true;
|
| @@ -37607,16 +40285,16 @@ class _CustomEventStreamProvider<T extends Event>
|
| const _CustomEventStreamProvider(this._eventTypeGetter);
|
|
|
| Stream<T> forTarget(EventTarget e, {bool useCapture: false}) {
|
| - return new _EventStream(e, _eventTypeGetter(e), useCapture);
|
| + return new _EventStream<T>(e, _eventTypeGetter(e), useCapture);
|
| }
|
|
|
| ElementStream<T> forElement(Element e, {bool useCapture: false}) {
|
| - return new _ElementEventStreamImpl(e, _eventTypeGetter(e), useCapture);
|
| + return new _ElementEventStreamImpl<T>(e, _eventTypeGetter(e), useCapture);
|
| }
|
|
|
| ElementStream<T> _forElementList(ElementList e,
|
| {bool useCapture: false}) {
|
| - return new _ElementListEventStreamImpl(e, _eventTypeGetter(e), useCapture);
|
| + return new _ElementListEventStreamImpl<T>(e, _eventTypeGetter(e), useCapture);
|
| }
|
|
|
| String getEventType(EventTarget target) {
|
| @@ -38995,7 +41673,7 @@ class _KeyboardEventHandler extends EventStreamProvider<KeyEvent> {
|
| * The set of keys that have been pressed down without seeing their
|
| * corresponding keyup event.
|
| */
|
| - final List<KeyboardEvent> _keyDownList = <KeyboardEvent>[];
|
| + final List<KeyEvent> _keyDownList = <KeyEvent>[];
|
|
|
| /** The type of KeyEvent we are tracking (keyup, keydown, keypress). */
|
| final String _type;
|
| @@ -39054,8 +41732,9 @@ class _KeyboardEventHandler extends EventStreamProvider<KeyEvent> {
|
| * General constructor, performs basic initialization for our improved
|
| * KeyboardEvent controller.
|
| */
|
| - _KeyboardEventHandler(this._type): super(_EVENT_TYPE),
|
| - _stream = new _CustomKeyEventStreamImpl('event'), _target = null;
|
| + _KeyboardEventHandler(this._type):
|
| + _stream = new _CustomKeyEventStreamImpl('event'), _target = null,
|
| + super(_EVENT_TYPE);
|
|
|
| /**
|
| * Hook up all event listeners under the covers so we can estimate keycodes
|
| @@ -39363,7 +42042,6 @@ class KeyboardEventStream {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| -
|
| /**
|
| * Class which helps construct standard node validation policies.
|
| *
|
| @@ -39381,11 +42059,9 @@ class KeyboardEventStream {
|
| * appropriate.
|
| */
|
| class NodeValidatorBuilder implements NodeValidator {
|
| -
|
| final List<NodeValidator> _validators = <NodeValidator>[];
|
|
|
| - NodeValidatorBuilder() {
|
| - }
|
| + NodeValidatorBuilder() {}
|
|
|
| /**
|
| * Creates a new NodeValidatorBuilder which accepts common constructs.
|
| @@ -39514,29 +42190,17 @@ class NodeValidatorBuilder implements NodeValidator {
|
| {UriPolicy uriPolicy,
|
| Iterable<String> attributes,
|
| Iterable<String> uriAttributes}) {
|
| -
|
| var tagNameUpper = tagName.toUpperCase();
|
| - var attrs;
|
| - if (attributes != null) {
|
| - attrs =
|
| - attributes.map((name) => '$tagNameUpper::${name.toLowerCase()}');
|
| - }
|
| - var uriAttrs;
|
| - if (uriAttributes != null) {
|
| - uriAttrs =
|
| - uriAttributes.map((name) => '$tagNameUpper::${name.toLowerCase()}');
|
| - }
|
| + var attrs = attributes
|
| + ?.map /*<String>*/ ((name) => '$tagNameUpper::${name.toLowerCase()}');
|
| + var uriAttrs = uriAttributes
|
| + ?.map /*<String>*/ ((name) => '$tagNameUpper::${name.toLowerCase()}');
|
| if (uriPolicy == null) {
|
| uriPolicy = new UriPolicy();
|
| }
|
|
|
| add(new _CustomElementNodeValidator(
|
| - uriPolicy,
|
| - [tagNameUpper],
|
| - attrs,
|
| - uriAttrs,
|
| - false,
|
| - true));
|
| + uriPolicy, [tagNameUpper], attrs, uriAttrs, false, true));
|
| }
|
|
|
| /**
|
| @@ -39551,37 +42215,26 @@ class NodeValidatorBuilder implements NodeValidator {
|
| {UriPolicy uriPolicy,
|
| Iterable<String> attributes,
|
| Iterable<String> uriAttributes}) {
|
| -
|
| var baseNameUpper = baseName.toUpperCase();
|
| var tagNameUpper = tagName.toUpperCase();
|
| - var attrs;
|
| - if (attributes != null) {
|
| - attrs =
|
| - attributes.map((name) => '$baseNameUpper::${name.toLowerCase()}');
|
| - }
|
| - var uriAttrs;
|
| - if (uriAttributes != null) {
|
| - uriAttrs =
|
| - uriAttributes.map((name) => '$baseNameUpper::${name.toLowerCase()}');
|
| - }
|
| + var attrs = attributes
|
| + ?.map /*<String>*/ ((name) => '$baseNameUpper::${name.toLowerCase()}');
|
| + var uriAttrs = uriAttributes
|
| + ?.map /*<String>*/ ((name) => '$baseNameUpper::${name.toLowerCase()}');
|
| if (uriPolicy == null) {
|
| uriPolicy = new UriPolicy();
|
| }
|
|
|
| - add(new _CustomElementNodeValidator(
|
| - uriPolicy,
|
| - [tagNameUpper, baseNameUpper],
|
| - attrs,
|
| - uriAttrs,
|
| - true,
|
| - false));
|
| + add(new _CustomElementNodeValidator(uriPolicy,
|
| + [tagNameUpper, baseNameUpper], attrs, uriAttrs, true, false));
|
| }
|
|
|
| - void allowElement(String tagName, {UriPolicy uriPolicy,
|
| - Iterable<String> attributes,
|
| - Iterable<String> uriAttributes}) {
|
| -
|
| - allowCustomElement(tagName, uriPolicy: uriPolicy,
|
| + void allowElement(String tagName,
|
| + {UriPolicy uriPolicy,
|
| + Iterable<String> attributes,
|
| + Iterable<String> uriAttributes}) {
|
| + allowCustomElement(tagName,
|
| + uriPolicy: uriPolicy,
|
| attributes: attributes,
|
| uriAttributes: uriAttributes);
|
| }
|
| @@ -39612,8 +42265,8 @@ class NodeValidatorBuilder implements NodeValidator {
|
| }
|
|
|
| bool allowsAttribute(Element element, String attributeName, String value) {
|
| - return _validators.any(
|
| - (v) => v.allowsAttribute(element, attributeName, value));
|
| + return _validators
|
| + .any((v) => v.allowsAttribute(element, attributeName, value));
|
| }
|
| }
|
|
|
| @@ -39624,76 +42277,70 @@ class _SimpleNodeValidator implements NodeValidator {
|
| final UriPolicy uriPolicy;
|
|
|
| factory _SimpleNodeValidator.allowNavigation(UriPolicy uriPolicy) {
|
| - return new _SimpleNodeValidator(uriPolicy,
|
| - allowedElements: const [
|
| - 'A',
|
| - 'FORM'],
|
| - allowedAttributes: const [
|
| - 'A::accesskey',
|
| - 'A::coords',
|
| - 'A::hreflang',
|
| - 'A::name',
|
| - 'A::shape',
|
| - 'A::tabindex',
|
| - 'A::target',
|
| - 'A::type',
|
| - 'FORM::accept',
|
| - 'FORM::autocomplete',
|
| - 'FORM::enctype',
|
| - 'FORM::method',
|
| - 'FORM::name',
|
| - 'FORM::novalidate',
|
| - 'FORM::target',
|
| - ],
|
| - allowedUriAttributes: const [
|
| - 'A::href',
|
| - 'FORM::action',
|
| - ]);
|
| + return new _SimpleNodeValidator(uriPolicy, allowedElements: const [
|
| + 'A',
|
| + 'FORM'
|
| + ], allowedAttributes: const [
|
| + 'A::accesskey',
|
| + 'A::coords',
|
| + 'A::hreflang',
|
| + 'A::name',
|
| + 'A::shape',
|
| + 'A::tabindex',
|
| + 'A::target',
|
| + 'A::type',
|
| + 'FORM::accept',
|
| + 'FORM::autocomplete',
|
| + 'FORM::enctype',
|
| + 'FORM::method',
|
| + 'FORM::name',
|
| + 'FORM::novalidate',
|
| + 'FORM::target',
|
| + ], allowedUriAttributes: const [
|
| + 'A::href',
|
| + 'FORM::action',
|
| + ]);
|
| }
|
|
|
| factory _SimpleNodeValidator.allowImages(UriPolicy uriPolicy) {
|
| - return new _SimpleNodeValidator(uriPolicy,
|
| - allowedElements: const [
|
| - 'IMG'
|
| - ],
|
| - allowedAttributes: const [
|
| - 'IMG::align',
|
| - 'IMG::alt',
|
| - 'IMG::border',
|
| - 'IMG::height',
|
| - 'IMG::hspace',
|
| - 'IMG::ismap',
|
| - 'IMG::name',
|
| - 'IMG::usemap',
|
| - 'IMG::vspace',
|
| - 'IMG::width',
|
| - ],
|
| - allowedUriAttributes: const [
|
| - 'IMG::src',
|
| - ]);
|
| + return new _SimpleNodeValidator(uriPolicy, allowedElements: const [
|
| + 'IMG'
|
| + ], allowedAttributes: const [
|
| + 'IMG::align',
|
| + 'IMG::alt',
|
| + 'IMG::border',
|
| + 'IMG::height',
|
| + 'IMG::hspace',
|
| + 'IMG::ismap',
|
| + 'IMG::name',
|
| + 'IMG::usemap',
|
| + 'IMG::vspace',
|
| + 'IMG::width',
|
| + ], allowedUriAttributes: const [
|
| + 'IMG::src',
|
| + ]);
|
| }
|
|
|
| factory _SimpleNodeValidator.allowTextElements() {
|
| - return new _SimpleNodeValidator(null,
|
| - allowedElements: const [
|
| - 'B',
|
| - 'BLOCKQUOTE',
|
| - 'BR',
|
| - 'EM',
|
| - 'H1',
|
| - 'H2',
|
| - 'H3',
|
| - 'H4',
|
| - 'H5',
|
| - 'H6',
|
| - 'HR',
|
| - 'I',
|
| - 'LI',
|
| - 'OL',
|
| - 'P',
|
| - 'SPAN',
|
| - 'UL',
|
| - ]);
|
| + return new _SimpleNodeValidator(null, allowedElements: const [
|
| + 'B',
|
| + 'BLOCKQUOTE',
|
| + 'BR',
|
| + 'EM',
|
| + 'H1',
|
| + 'H2',
|
| + 'H3',
|
| + 'H4',
|
| + 'H5',
|
| + 'H6',
|
| + 'HR',
|
| + 'I',
|
| + 'LI',
|
| + 'OL',
|
| + 'P',
|
| + 'SPAN',
|
| + 'UL',
|
| + ]);
|
| }
|
|
|
| /**
|
| @@ -39702,15 +42349,16 @@ class _SimpleNodeValidator implements NodeValidator {
|
| * lowercase attribute name. For example `'IMG:src'`.
|
| */
|
| _SimpleNodeValidator(this.uriPolicy,
|
| - {Iterable<String> allowedElements, Iterable<String> allowedAttributes,
|
| - Iterable<String> allowedUriAttributes}) {
|
| + {Iterable<String> allowedElements,
|
| + Iterable<String> allowedAttributes,
|
| + Iterable<String> allowedUriAttributes}) {
|
| this.allowedElements.addAll(allowedElements ?? const []);
|
| allowedAttributes = allowedAttributes ?? const [];
|
| allowedUriAttributes = allowedUriAttributes ?? const [];
|
| - var legalAttributes = allowedAttributes.where(
|
| - (x) => !_Html5NodeValidator._uriAttributes.contains(x));
|
| - var extraUriAttributes = allowedAttributes.where(
|
| - (x) => _Html5NodeValidator._uriAttributes.contains(x));
|
| + var legalAttributes = allowedAttributes
|
| + .where((x) => !_Html5NodeValidator._uriAttributes.contains(x));
|
| + var extraUriAttributes = allowedAttributes
|
| + .where((x) => _Html5NodeValidator._uriAttributes.contains(x));
|
| this.allowedAttributes.addAll(legalAttributes);
|
| this.allowedUriAttributes.addAll(allowedUriAttributes);
|
| this.allowedUriAttributes.addAll(extraUriAttributes);
|
| @@ -39743,19 +42391,19 @@ class _CustomElementNodeValidator extends _SimpleNodeValidator {
|
| final bool allowTypeExtension;
|
| final bool allowCustomTag;
|
|
|
| - _CustomElementNodeValidator(UriPolicy uriPolicy,
|
| + _CustomElementNodeValidator(
|
| + UriPolicy uriPolicy,
|
| Iterable<String> allowedElements,
|
| Iterable<String> allowedAttributes,
|
| Iterable<String> allowedUriAttributes,
|
| bool allowTypeExtension,
|
| - bool allowCustomTag):
|
| -
|
| - super(uriPolicy,
|
| - allowedElements: allowedElements,
|
| - allowedAttributes: allowedAttributes,
|
| - allowedUriAttributes: allowedUriAttributes),
|
| - this.allowTypeExtension = allowTypeExtension == true,
|
| - this.allowCustomTag = allowCustomTag == true;
|
| + bool allowCustomTag)
|
| + : this.allowTypeExtension = allowTypeExtension == true,
|
| + this.allowCustomTag = allowCustomTag == true,
|
| + super(uriPolicy,
|
| + allowedElements: allowedElements,
|
| + allowedAttributes: allowedAttributes,
|
| + allowedUriAttributes: allowedUriAttributes);
|
|
|
| bool allowsElement(Element element) {
|
| if (allowTypeExtension) {
|
| @@ -39765,12 +42413,14 @@ class _CustomElementNodeValidator extends _SimpleNodeValidator {
|
| allowedElements.contains(Element._safeTagName(element));
|
| }
|
| }
|
| - return allowCustomTag && allowedElements.contains(Element._safeTagName(element));
|
| + return allowCustomTag &&
|
| + allowedElements.contains(Element._safeTagName(element));
|
| }
|
|
|
| bool allowsAttribute(Element element, String attributeName, String value) {
|
| - if (allowsElement(element)) {
|
| - if (allowTypeExtension && attributeName == 'is' &&
|
| + if (allowsElement(element)) {
|
| + if (allowTypeExtension &&
|
| + attributeName == 'is' &&
|
| allowedElements.contains(value.toUpperCase())) {
|
| return true;
|
| }
|
| @@ -39781,19 +42431,22 @@ class _CustomElementNodeValidator extends _SimpleNodeValidator {
|
| }
|
|
|
| class _TemplatingNodeValidator extends _SimpleNodeValidator {
|
| - static const _TEMPLATE_ATTRS =
|
| - const <String>['bind', 'if', 'ref', 'repeat', 'syntax'];
|
| + static const _TEMPLATE_ATTRS = const <String>[
|
| + 'bind',
|
| + 'if',
|
| + 'ref',
|
| + 'repeat',
|
| + 'syntax'
|
| + ];
|
|
|
| final Set<String> _templateAttrs;
|
|
|
| - _TemplatingNodeValidator():
|
| - super(null,
|
| - allowedElements: [
|
| - 'TEMPLATE'
|
| - ],
|
| - allowedAttributes: _TEMPLATE_ATTRS.map((attr) => 'TEMPLATE::$attr')),
|
| - _templateAttrs = new Set<String>.from(_TEMPLATE_ATTRS) {
|
| - }
|
| + _TemplatingNodeValidator()
|
| + : _templateAttrs = new Set<String>.from(_TEMPLATE_ATTRS),
|
| + super(null,
|
| + allowedElements: ['TEMPLATE'],
|
| + allowedAttributes:
|
| + _TEMPLATE_ATTRS.map((attr) => 'TEMPLATE::$attr')) {}
|
|
|
| bool allowsAttribute(Element element, String attributeName, String value) {
|
| if (super.allowsAttribute(element, attributeName, value)) {
|
| @@ -39804,14 +42457,13 @@ class _TemplatingNodeValidator extends _SimpleNodeValidator {
|
| return true;
|
| }
|
|
|
| - if (element.attributes['template'] == "" ) {
|
| + if (element.attributes['template'] == "") {
|
| return _templateAttrs.contains(attributeName);
|
| }
|
| return false;
|
| }
|
| }
|
|
|
| -
|
| class _SvgNodeValidator implements NodeValidator {
|
| bool allowsElement(Element element) {
|
| if (element is svg.ScriptElement) {
|
| @@ -39821,7 +42473,8 @@ class _SvgNodeValidator implements NodeValidator {
|
| // foreignobject tag as SvgElement. We don't want foreignobject contents
|
| // anyway, so just remove the whole tree outright. And we can't rely
|
| // on IE recognizing the SvgForeignObject type, so go by tagName. Bug 23144
|
| - if (element is svg.SvgElement && Element._safeTagName(element) == 'foreignObject') {
|
| + if (element is svg.SvgElement &&
|
| + Element._safeTagName(element) == 'foreignObject') {
|
| return false;
|
| }
|
| if (element is svg.SvgElement) {
|
| @@ -39873,7 +42526,7 @@ abstract class ReadyState {
|
| */
|
| class _WrappedList<E extends Node> extends ListBase<E>
|
| implements NodeListWrapper {
|
| - final List _list;
|
| + final List<Node> _list;
|
|
|
| _WrappedList(this._list);
|
|
|
| @@ -39893,13 +42546,13 @@ class _WrappedList<E extends Node> extends ListBase<E>
|
|
|
| // List APIs
|
|
|
| - E operator [](int index) => _list[index];
|
| + E operator [](int index) => _list[index] as E;
|
|
|
| void operator []=(int index, E value) { _list[index] = value; }
|
|
|
| set length(int newLength) { _list.length = newLength; }
|
|
|
| - void sort([int compare(E a, E b)]) { _list.sort(compare); }
|
| + void sort([int compare(E a, E b)]) { _list.sort((Node a, Node b) => compare(a as E, b as E)); }
|
|
|
| int indexOf(Object element, [int start = 0]) => _list.indexOf(element, start);
|
|
|
| @@ -39907,7 +42560,7 @@ class _WrappedList<E extends Node> extends ListBase<E>
|
|
|
| void insert(int index, E element) => _list.insert(index, element);
|
|
|
| - E removeAt(int index) => _list.removeAt(index);
|
| + E removeAt(int index) => _list.removeAt(index) as E;
|
|
|
| void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]) {
|
| _list.setRange(start, end, iterable, skipCount);
|
| @@ -39930,7 +42583,7 @@ class _WrappedList<E extends Node> extends ListBase<E>
|
| * Iterator wrapper for _WrappedList.
|
| */
|
| class _WrappedIterator<E> implements Iterator<E> {
|
| - Iterator _iterator;
|
| + Iterator<Node> _iterator;
|
|
|
| _WrappedIterator(this._iterator);
|
|
|
| @@ -39938,7 +42591,7 @@ class _WrappedIterator<E> implements Iterator<E> {
|
| return _iterator.moveNext();
|
| }
|
|
|
| - E get current => _iterator.current;
|
| + E get current => _iterator.current as E;
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -40317,7 +42970,7 @@ class _DOMWindowCrossFrame implements WindowBase {
|
| Events get on => throw new UnsupportedError(
|
| 'You can only attach EventListeners to your own window.');
|
| // TODO(efortuna): Remove this method. dartbug.com/16814
|
| - void _addEventListener([String type, EventListener listener, bool useCapture])
|
| + void _addEventListener(String type, EventListener listener, [bool useCapture])
|
| => throw new UnsupportedError(
|
| 'You can only attach EventListeners to your own window.');
|
| // TODO(efortuna): Remove this method. dartbug.com/16814
|
| @@ -40328,8 +42981,8 @@ class _DOMWindowCrossFrame implements WindowBase {
|
| bool dispatchEvent(Event event) => throw new UnsupportedError(
|
| 'You can only attach EventListeners to your own window.');
|
| // TODO(efortuna): Remove this method. dartbug.com/16814
|
| - void _removeEventListener([String type, EventListener listener,
|
| - bool useCapture]) => throw new UnsupportedError(
|
| + void _removeEventListener(String type, EventListener listener,
|
| + [bool useCapture]) => throw new UnsupportedError(
|
| 'You can only attach EventListeners to your own window.');
|
| // TODO(efortuna): Remove this method. dartbug.com/16814
|
| void removeEventListener(String type, EventListener listener,
|
| @@ -40420,22 +43073,22 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
|
| /** The "fixed" value of whether the alt key is being pressed. */
|
| bool _shadowAltKey;
|
|
|
| - /** Caculated value of what the estimated charCode is for this event. */
|
| + /** Calculated value of what the estimated charCode is for this event. */
|
| int _shadowCharCode;
|
|
|
| - /** Caculated value of what the estimated keyCode is for this event. */
|
| + /** Calculated value of what the estimated keyCode is for this event. */
|
| int _shadowKeyCode;
|
|
|
| - /** Caculated value of what the estimated keyCode is for this event. */
|
| + /** Calculated value of what the estimated keyCode is for this event. */
|
| int get keyCode => _shadowKeyCode;
|
|
|
| - /** Caculated value of what the estimated charCode is for this event. */
|
| + /** Calculated value of what the estimated charCode is for this event. */
|
| int get charCode => this.type == 'keypress' ? _shadowCharCode : 0;
|
|
|
| - /** Caculated value of whether the alt key is pressed is for this event. */
|
| + /** Calculated value of whether the alt key is pressed is for this event. */
|
| bool get altKey => _shadowAltKey;
|
|
|
| - /** Caculated value of what the estimated keyCode is for this event. */
|
| + /** Calculated value of what the estimated keyCode is for this event. */
|
| int get which => keyCode;
|
|
|
| /** Accessor to the underlying keyCode value is the parent event. */
|
| @@ -40572,23 +43225,22 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
|
| static EventStreamProvider<KeyEvent> keyPressEvent =
|
| new _KeyboardEventHandler('keypress');
|
|
|
| - /** Accessor to the clipboardData available for this event. */
|
| - DataTransfer get clipboardData => _parent.clipboardData;
|
| + String get code => _parent.code;
|
| /** True if the ctrl key is pressed during this event. */
|
| bool get ctrlKey => _parent.ctrlKey;
|
| int get detail => _parent.detail;
|
| + String get key => _parent.key;
|
| /**
|
| * Accessor to the part of the keyboard that the key was pressed from (one of
|
| * KeyLocation.STANDARD, KeyLocation.RIGHT, KeyLocation.LEFT,
|
| * KeyLocation.NUMPAD, KeyLocation.MOBILE, KeyLocation.JOYSTICK).
|
| */
|
| int get keyLocation => _parent.keyLocation;
|
| - Point get layer => _parent.layer;
|
| /** True if the Meta (or Mac command) key is pressed during this event. */
|
| bool get metaKey => _parent.metaKey;
|
| - Point get page => _parent.page;
|
| /** True if the shift key was pressed during this event. */
|
| bool get shiftKey => _parent.shiftKey;
|
| + InputDevice get sourceDevice => _parent.sourceDevice;
|
| Window get view => _parent.view;
|
| void _initUIEvent(String type, bool canBubble, bool cancelable,
|
| Window view, int detail) {
|
| @@ -40598,6 +43250,8 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
|
|
|
| int get _charCode => charCode;
|
| int get _keyCode => keyCode;
|
| + int get _which => which;
|
| +
|
| String get _keyIdentifier {
|
| throw new UnsupportedError("keyIdentifier is unsupported.");
|
| }
|
| @@ -40607,10 +43261,6 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent {
|
| throw new UnsupportedError(
|
| "Cannot initialize a KeyboardEvent from a KeyEvent.");
|
| }
|
| - int get _layerX => throw new UnsupportedError('Not applicable to KeyEvent');
|
| - int get _layerY => throw new UnsupportedError('Not applicable to KeyEvent');
|
| - int get _pageX => throw new UnsupportedError('Not applicable to KeyEvent');
|
| - int get _pageY => throw new UnsupportedError('Not applicable to KeyEvent');
|
| @Experimental() // untriaged
|
| bool getModifierState(String keyArgument) => throw new UnimplementedError();
|
| @Experimental() // untriaged
|
| @@ -40659,8 +43309,6 @@ class _WrappedEvent implements Event {
|
|
|
| bool get cancelable => wrapped.cancelable;
|
|
|
| - DataTransfer get clipboardData => wrapped.clipboardData;
|
| -
|
| EventTarget get currentTarget => wrapped.currentTarget;
|
|
|
| bool get defaultPrevented => wrapped.defaultPrevented;
|
| @@ -40701,8 +43349,8 @@ class _WrappedEvent implements Event {
|
| throw new UnsupportedError('Cannot call matchingTarget if this Event did'
|
| ' not arise as a result of event delegation.');
|
| }
|
| - var currentTarget = this.currentTarget;
|
| - var target = this.target;
|
| + Element currentTarget = this.currentTarget;
|
| + Element target = this.target;
|
| var matchedTarget;
|
| do {
|
| if (target.matches(_selector)) return target;
|
| @@ -40733,17 +43381,25 @@ class _WrappedEvent implements Event {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| -_wrapZone(callback(arg)) {
|
| +// TODO(jacobr): remove these typedefs when dart:async supports generic types.
|
| +typedef R _wrapZoneCallback<A, R>(A a);
|
| +typedef R _wrapZoneBinaryCallback<A, B, R>(A a, B b);
|
| +
|
| +_wrapZoneCallback/*<A, R>*/ _wrapZone/*<A, R>*/(_wrapZoneCallback/*<A, R>*/ callback) {
|
| // For performance reasons avoid wrapping if we are in the root zone.
|
| if (Zone.current == Zone.ROOT) return callback;
|
| if (callback == null) return null;
|
| - return Zone.current.bindUnaryCallback(callback, runGuarded: true);
|
| + // TODO(jacobr): we cast to _wrapZoneCallback/*<A, R>*/ to hack around missing
|
| + // generic method support in zones.
|
| + return Zone.current.bindUnaryCallback(callback, runGuarded: true) as _wrapZoneCallback/*<A, R>*/;
|
| }
|
|
|
| -_wrapBinaryZone(callback(arg1, arg2)) {
|
| +_wrapZoneBinaryCallback/*<A, B, R>*/ _wrapBinaryZone/*<A, B, R>*/(_wrapZoneBinaryCallback/*<A, B, R>*/ callback) {
|
| if (Zone.current == Zone.ROOT) return callback;
|
| if (callback == null) return null;
|
| - return Zone.current.bindBinaryCallback(callback, runGuarded: true);
|
| + // We cast to _wrapZoneBinaryCallback/*<A, B, R>*/ to hack around missing
|
| + // generic method support in zones.
|
| + return Zone.current.bindBinaryCallback(callback, runGuarded: true) as _wrapZoneBinaryCallback/*<A, B, R>*/;
|
| }
|
|
|
| /**
|
|
|