| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index d25e580f195240f79b2a0b96245e2376bbb374a3..8c610670cdda20db5ca1379145b81932be4e6406 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -262,6 +262,9 @@ class AnchorElement extends _Element_Merged {
|
|
|
| @DocsEditable
|
| @DomName('WebKitAnimationEvent')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| class AnimationEvent extends Event {
|
| AnimationEvent.internal() : super.internal();
|
|
|
| @@ -1189,11 +1192,11 @@ class CanvasRenderingContext2D extends CanvasRenderingContext {
|
|
|
| @DomName('CanvasRenderingContext2D.currentPath')
|
| @DocsEditable
|
| - DomPath get currentPath native "CanvasRenderingContext2D_currentPath_Getter";
|
| + Path get currentPath native "CanvasRenderingContext2D_currentPath_Getter";
|
|
|
| @DomName('CanvasRenderingContext2D.currentPath')
|
| @DocsEditable
|
| - void set currentPath(DomPath value) native "CanvasRenderingContext2D_currentPath_Setter";
|
| + void set currentPath(Path value) native "CanvasRenderingContext2D_currentPath_Setter";
|
|
|
| @DomName('CanvasRenderingContext2D.fillStyle')
|
| @DocsEditable
|
| @@ -2208,6 +2211,26 @@ class CssCharsetRule extends CssRule {
|
|
|
|
|
| @DocsEditable
|
| +@DomName('WebKitCSSFilterRule')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| +class CssFilterRule extends CssRule {
|
| + CssFilterRule.internal() : super.internal();
|
| +
|
| + @DomName('WebKitCSSFilterRule.style')
|
| + @DocsEditable
|
| + CssStyleDeclaration get style native "WebKitCSSFilterRule_style_Getter";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| @DomName('CSSFontFaceLoadEvent')
|
| class CssFontFaceLoadEvent extends Event {
|
| CssFontFaceLoadEvent.internal() : super.internal();
|
| @@ -2299,6 +2322,9 @@ class CssImportRule extends CssRule {
|
|
|
| @DocsEditable
|
| @DomName('WebKitCSSKeyframeRule')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| class CssKeyframeRule extends CssRule {
|
| CssKeyframeRule.internal() : super.internal();
|
|
|
| @@ -2324,6 +2350,9 @@ class CssKeyframeRule extends CssRule {
|
|
|
| @DocsEditable
|
| @DomName('WebKitCSSKeyframesRule')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| class CssKeyframesRule extends CssRule {
|
| CssKeyframesRule.internal() : super.internal();
|
|
|
| @@ -2414,6 +2443,26 @@ class CssPageRule extends CssRule {
|
|
|
|
|
| @DocsEditable
|
| +@DomName('WebKitCSSRegionRule')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| +class CssRegionRule extends CssRule {
|
| + CssRegionRule.internal() : super.internal();
|
| +
|
| + @DomName('WebKitCSSRegionRule.cssRules')
|
| + @DocsEditable
|
| + List<CssRule> get cssRules native "WebKitCSSRegionRule_cssRules_Getter";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| @DomName('CSSRule')
|
| class CssRule extends NativeFieldWrapperClass1 {
|
| CssRule.internal();
|
| @@ -6474,7 +6523,7 @@ class Document extends Node
|
|
|
| @DomName('Document.securityPolicy')
|
| @DocsEditable
|
| - DomSecurityPolicy get securityPolicy native "Document_securityPolicy_Getter";
|
| + SecurityPolicy get securityPolicy native "Document_securityPolicy_Getter";
|
|
|
| @DomName('Document.selectedStylesheetSet')
|
| @DocsEditable
|
| @@ -6718,7 +6767,7 @@ class Document extends Node
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @SupportedBrowser(SupportedBrowser.SAFARI)
|
| @Experimental
|
| - DomNamedFlowCollection getNamedFlows() native "Document_webkitGetNamedFlows_Callback";
|
| + NamedFlowCollection getNamedFlows() native "Document_webkitGetNamedFlows_Callback";
|
|
|
| @DomName('Document.webkitRegister')
|
| @DocsEditable
|
| @@ -7142,25 +7191,43 @@ class DomImplementation extends NativeFieldWrapperClass1 {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('MimeType')
|
| -class DomMimeType extends NativeFieldWrapperClass1 {
|
| - DomMimeType.internal();
|
| +@DomName('DOMParser')
|
| +class DomParser extends NativeFieldWrapperClass1 {
|
| + DomParser.internal();
|
|
|
| - @DomName('DOMMimeType.description')
|
| + @DomName('DOMParser.DOMParser')
|
| @DocsEditable
|
| - String get description native "DOMMimeType_description_Getter";
|
| + factory DomParser() {
|
| + return DomParser._create_1();
|
| + }
|
|
|
| - @DomName('DOMMimeType.enabledPlugin')
|
| @DocsEditable
|
| - DomPlugin get enabledPlugin native "DOMMimeType_enabledPlugin_Getter";
|
| + static DomParser _create_1() native "DOMParser__create_1constructorCallback";
|
|
|
| - @DomName('DOMMimeType.suffixes')
|
| + @DomName('DOMParser.parseFromString')
|
| @DocsEditable
|
| - String get suffixes native "DOMMimeType_suffixes_Getter";
|
| + Document parseFromString(String str, String contentType) native "DOMParser_parseFromString_Callback";
|
|
|
| - @DomName('DOMMimeType.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.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| +@DomName('DOMSettableTokenList')
|
| +class DomSettableTokenList extends DomTokenList {
|
| + DomSettableTokenList.internal() : super.internal();
|
| +
|
| + @DomName('DOMSettableTokenList.value')
|
| @DocsEditable
|
| - String get type native "DOMMimeType_type_Getter";
|
| + String get value native "DOMSettableTokenList_value_Getter";
|
| +
|
| + @DomName('DOMSettableTokenList.value')
|
| + @DocsEditable
|
| + void set value(String value) native "DOMSettableTokenList_value_Setter";
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -7171,106 +7238,106 @@ class DomMimeType extends NativeFieldWrapperClass1 {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('MimeTypeArray')
|
| -class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeType> {
|
| - DomMimeTypeArray.internal();
|
| +@DomName('DOMStringList')
|
| +class DomStringList extends NativeFieldWrapperClass1 implements List<String> {
|
| + DomStringList.internal();
|
|
|
| - @DomName('DOMMimeTypeArray.length')
|
| + @DomName('DOMStringList.length')
|
| @DocsEditable
|
| - int get length native "DOMMimeTypeArray_length_Getter";
|
| + int get length native "DOMStringList_length_Getter";
|
|
|
| - DomMimeType operator[](int index) native "DOMMimeTypeArray_item_Callback";
|
| + String operator[](int index) native "DOMStringList_item_Callback";
|
|
|
| - void operator[]=(int index, DomMimeType value) {
|
| + void operator[]=(int index, String value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| }
|
| - // -- start List<DomMimeType> mixins.
|
| - // DomMimeType is the element type.
|
| + // -- start List<String> mixins.
|
| + // String is the element type.
|
|
|
| - // From Iterable<DomMimeType>:
|
| + // From Iterable<String>:
|
|
|
| - Iterator<DomMimeType> get iterator {
|
| + Iterator<String> get iterator {
|
| // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| // be cached in both iterator _and_ forEach method. For now caching it
|
| // for consistency.
|
| - return new FixedSizeListIterator<DomMimeType>(this);
|
| + return new FixedSizeListIterator<String>(this);
|
| }
|
|
|
| - DomMimeType reduce(DomMimeType combine(DomMimeType value, DomMimeType element)) {
|
| + String reduce(String combine(String value, String element)) {
|
| return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, DomMimeType element)) {
|
| + dynamic combine(dynamic previousValue, String element)) {
|
| return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| }
|
|
|
| - bool contains(DomMimeType element) => IterableMixinWorkaround.contains(this, element);
|
| + // contains() defined by IDL.
|
|
|
| - void forEach(void f(DomMimeType element)) => IterableMixinWorkaround.forEach(this, f);
|
| + void forEach(void f(String element)) => IterableMixinWorkaround.forEach(this, f);
|
|
|
| String join([String separator = ""]) =>
|
| IterableMixinWorkaround.joinList(this, separator);
|
|
|
| - Iterable map(f(DomMimeType element)) =>
|
| + Iterable map(f(String element)) =>
|
| IterableMixinWorkaround.mapList(this, f);
|
|
|
| - Iterable<DomMimeType> where(bool f(DomMimeType element)) =>
|
| + Iterable<String> where(bool f(String element)) =>
|
| IterableMixinWorkaround.where(this, f);
|
|
|
| - Iterable expand(Iterable f(DomMimeType element)) =>
|
| + Iterable expand(Iterable f(String element)) =>
|
| IterableMixinWorkaround.expand(this, f);
|
|
|
| - bool every(bool f(DomMimeType element)) => IterableMixinWorkaround.every(this, f);
|
| + bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f);
|
|
|
| - bool any(bool f(DomMimeType element)) => IterableMixinWorkaround.any(this, f);
|
| + bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
|
|
|
| - List<DomMimeType> toList({ bool growable: true }) =>
|
| - new List<DomMimeType>.from(this, growable: growable);
|
| + List<String> toList({ bool growable: true }) =>
|
| + new List<String>.from(this, growable: growable);
|
|
|
| - Set<DomMimeType> toSet() => new Set<DomMimeType>.from(this);
|
| + Set<String> toSet() => new Set<String>.from(this);
|
|
|
| bool get isEmpty => this.length == 0;
|
|
|
| - Iterable<DomMimeType> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| + Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
|
|
| - Iterable<DomMimeType> takeWhile(bool test(DomMimeType value)) {
|
| + Iterable<String> takeWhile(bool test(String value)) {
|
| return IterableMixinWorkaround.takeWhile(this, test);
|
| }
|
|
|
| - Iterable<DomMimeType> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| + Iterable<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
|
|
| - Iterable<DomMimeType> skipWhile(bool test(DomMimeType value)) {
|
| + Iterable<String> skipWhile(bool test(String value)) {
|
| return IterableMixinWorkaround.skipWhile(this, test);
|
| }
|
|
|
| - DomMimeType firstWhere(bool test(DomMimeType value), { DomMimeType orElse() }) {
|
| + String firstWhere(bool test(String value), { String orElse() }) {
|
| return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| }
|
|
|
| - DomMimeType lastWhere(bool test(DomMimeType value), {DomMimeType orElse()}) {
|
| + String lastWhere(bool test(String value), {String orElse()}) {
|
| return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| }
|
|
|
| - DomMimeType singleWhere(bool test(DomMimeType value)) {
|
| + String singleWhere(bool test(String value)) {
|
| return IterableMixinWorkaround.singleWhere(this, test);
|
| }
|
|
|
| - DomMimeType elementAt(int index) {
|
| + String elementAt(int index) {
|
| return this[index];
|
| }
|
|
|
| - // From Collection<DomMimeType>:
|
| + // From Collection<String>:
|
|
|
| - void add(DomMimeType value) {
|
| + void add(String value) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
|
|
| - void addAll(Iterable<DomMimeType> iterable) {
|
| + void addAll(Iterable<String> iterable) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
|
|
| - // From List<DomMimeType>:
|
| + // From List<String>:
|
| void set length(int value) {
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
| @@ -7279,55 +7346,55 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT
|
| throw new UnsupportedError("Cannot clear immutable List.");
|
| }
|
|
|
| - Iterable<DomMimeType> get reversed {
|
| + Iterable<String> get reversed {
|
| return IterableMixinWorkaround.reversedList(this);
|
| }
|
|
|
| - void sort([int compare(DomMimeType a, DomMimeType b)]) {
|
| + void sort([int compare(String a, String b)]) {
|
| throw new UnsupportedError("Cannot sort immutable List.");
|
| }
|
|
|
| - int indexOf(DomMimeType element, [int start = 0]) =>
|
| + int indexOf(String element, [int start = 0]) =>
|
| Lists.indexOf(this, element, start, this.length);
|
|
|
| - int lastIndexOf(DomMimeType element, [int start]) {
|
| + int lastIndexOf(String element, [int start]) {
|
| if (start == null) start = length - 1;
|
| return Lists.lastIndexOf(this, element, start);
|
| }
|
|
|
| - DomMimeType get first {
|
| + String get first {
|
| if (this.length > 0) return this[0];
|
| throw new StateError("No elements");
|
| }
|
|
|
| - DomMimeType get last {
|
| + String get last {
|
| if (this.length > 0) return this[this.length - 1];
|
| throw new StateError("No elements");
|
| }
|
|
|
| - DomMimeType get single {
|
| + String get single {
|
| if (length == 1) return this[0];
|
| if (length == 0) throw new StateError("No elements");
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - void insert(int index, DomMimeType element) {
|
| + void insert(int index, String element) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
|
|
| - void insertAll(int index, Iterable<DomMimeType> iterable) {
|
| + void insertAll(int index, Iterable<String> iterable) {
|
| throw new UnsupportedError("Cannot add to immutable List.");
|
| }
|
|
|
| - void setAll(int index, Iterable<DomMimeType> iterable) {
|
| + void setAll(int index, Iterable<String> iterable) {
|
| throw new UnsupportedError("Cannot modify an immutable List.");
|
| }
|
|
|
| - DomMimeType removeAt(int pos) {
|
| + String removeAt(int pos) {
|
| throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| - DomMimeType removeLast() {
|
| + String removeLast() {
|
| throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| @@ -7335,15 +7402,15 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT
|
| throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| - void removeWhere(bool test(DomMimeType element)) {
|
| + void removeWhere(bool test(String element)) {
|
| throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| - void retainWhere(bool test(DomMimeType element)) {
|
| + void retainWhere(bool test(String element)) {
|
| throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| - void setRange(int start, int end, Iterable<DomMimeType> iterable, [int skipCount=0]) {
|
| + void setRange(int start, int end, Iterable<String> iterable, [int skipCount=0]) {
|
| throw new UnsupportedError("Cannot setRange on immutable List.");
|
| }
|
|
|
| @@ -7351,23 +7418,23 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT
|
| throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| }
|
|
|
| - void replaceRange(int start, int end, Iterable<DomMimeType> iterable) {
|
| + void replaceRange(int start, int end, Iterable<String> iterable) {
|
| throw new UnsupportedError("Cannot modify an immutable List.");
|
| }
|
|
|
| - void fillRange(int start, int end, [DomMimeType fillValue]) {
|
| + void fillRange(int start, int end, [String fillValue]) {
|
| throw new UnsupportedError("Cannot modify an immutable List.");
|
| }
|
|
|
| - Iterable<DomMimeType> getRange(int start, int end) =>
|
| + Iterable<String> getRange(int start, int end) =>
|
| IterableMixinWorkaround.getRangeList(this, start, end);
|
|
|
| - List<DomMimeType> sublist(int start, [int end]) {
|
| + List<String> sublist(int start, [int end]) {
|
| if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <DomMimeType>[]);
|
| + return Lists.getRange(this, start, end, <String>[]);
|
| }
|
|
|
| - Map<int, DomMimeType> asMap() =>
|
| + Map<int, String> asMap() =>
|
| IterableMixinWorkaround.asMapList(this);
|
|
|
| String toString() {
|
| @@ -7377,15 +7444,15 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT
|
| return buffer.toString();
|
| }
|
|
|
| - // -- end List<DomMimeType> mixins.
|
| + // -- end List<String> mixins.
|
|
|
| - @DomName('DOMMimeTypeArray.item')
|
| + @DomName('DOMStringList.contains')
|
| @DocsEditable
|
| - DomMimeType item(int index) native "DOMMimeTypeArray_item_Callback";
|
| + bool contains(String string) native "DOMStringList_contains_Callback";
|
|
|
| - @DomName('DOMMimeTypeArray.namedItem')
|
| + @DomName('DOMStringList.item')
|
| @DocsEditable
|
| - DomMimeType namedItem(String name) native "DOMMimeTypeArray_namedItem_Callback";
|
| + String item(int index) native "DOMStringList_item_Callback";
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -7396,21 +7463,9 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT
|
|
|
|
|
| @DocsEditable
|
| -@DomName('WebKitNamedFlowCollection')
|
| -class DomNamedFlowCollection extends NativeFieldWrapperClass1 {
|
| - DomNamedFlowCollection.internal();
|
| -
|
| - @DomName('DOMNamedFlowCollection.length')
|
| - @DocsEditable
|
| - int get length native "DOMNamedFlowCollection_length_Getter";
|
| -
|
| - @DomName('DOMNamedFlowCollection.item')
|
| - @DocsEditable
|
| - NamedFlow item(int index) native "DOMNamedFlowCollection_item_Callback";
|
| -
|
| - @DomName('DOMNamedFlowCollection.namedItem')
|
| - @DocsEditable
|
| - NamedFlow namedItem(String name) native "DOMNamedFlowCollection_namedItem_Callback";
|
| +@DomName('DOMStringMap')
|
| +class DomStringMap extends NativeFieldWrapperClass1 {
|
| + DomStringMap.internal();
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -7421,890 +7476,80 @@ class DomNamedFlowCollection extends NativeFieldWrapperClass1 {
|
|
|
|
|
| @DocsEditable
|
| -@DomName('DOMParser')
|
| -class DomParser extends NativeFieldWrapperClass1 {
|
| - DomParser.internal();
|
| +@DomName('DOMTokenList')
|
| +class DomTokenList extends NativeFieldWrapperClass1 {
|
| + DomTokenList.internal();
|
|
|
| - @DomName('DOMParser.DOMParser')
|
| + @DomName('DOMTokenList.length')
|
| @DocsEditable
|
| - factory DomParser() {
|
| - return DomParser._create_1();
|
| - }
|
| + int get length native "DOMTokenList_length_Getter";
|
|
|
| + @DomName('DOMTokenList.contains')
|
| @DocsEditable
|
| - static DomParser _create_1() native "DOMParser__create_1constructorCallback";
|
| + bool contains(String token) native "DOMTokenList_contains_Callback";
|
|
|
| - @DomName('DOMParser.parseFromString')
|
| + @DomName('DOMTokenList.item')
|
| @DocsEditable
|
| - Document parseFromString(String str, String contentType) native "DOMParser_parseFromString_Callback";
|
| + String item(int index) native "DOMTokenList_item_Callback";
|
| +
|
| + @DomName('DOMTokenList.toString')
|
| + @DocsEditable
|
| + String toString() native "DOMTokenList_toString_Callback";
|
| +
|
| + bool toggle(String token, [bool force]) {
|
| + if (?force) {
|
| + return _toggle_1(token, force);
|
| + }
|
| + return _toggle_2(token);
|
| + }
|
| +
|
| + bool _toggle_1(token, force) native "DOMTokenList__toggle_1_Callback";
|
| +
|
| + bool _toggle_2(token) native "DOMTokenList__toggle_2_Callback";
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for 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.
|
|
|
| +class _ChildrenElementList extends ListBase<Element> {
|
| + // Raw Element.
|
| + final Element _element;
|
| + final HtmlCollection _childElements;
|
|
|
| -@DocsEditable
|
| -@DomName('Path')
|
| -class DomPath extends NativeFieldWrapperClass1 {
|
| - DomPath.internal();
|
| + _ChildrenElementList._wrap(Element element)
|
| + : _childElements = element.$dom_children,
|
| + _element = element;
|
|
|
| - @DomName('DOMPath.DOMPath')
|
| - @DocsEditable
|
| - factory DomPath([path_OR_text]) {
|
| - if (!?path_OR_text) {
|
| - return DomPath._create_1();
|
| - }
|
| - if ((path_OR_text is DomPath || path_OR_text == null)) {
|
| - return DomPath._create_2(path_OR_text);
|
| - }
|
| - if ((path_OR_text is String || path_OR_text == null)) {
|
| - return DomPath._create_3(path_OR_text);
|
| - }
|
| - throw new ArgumentError("Incorrect number or type of arguments");
|
| - }
|
| + bool contains(Element element) => _childElements.contains(element);
|
|
|
| - @DocsEditable
|
| - static DomPath _create_1() native "DOMPath__create_1constructorCallback";
|
|
|
| - @DocsEditable
|
| - static DomPath _create_2(path_OR_text) native "DOMPath__create_2constructorCallback";
|
| + bool get isEmpty {
|
| + return _element.$dom_firstElementChild == null;
|
| + }
|
|
|
| - @DocsEditable
|
| - static DomPath _create_3(path_OR_text) native "DOMPath__create_3constructorCallback";
|
| + int get length {
|
| + return _childElements.length;
|
| + }
|
|
|
| - @DomName('DOMPath.arc')
|
| - @DocsEditable
|
| - void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native "DOMPath_arc_Callback";
|
| + Element operator [](int index) {
|
| + return _childElements[index];
|
| + }
|
|
|
| - @DomName('DOMPath.arcTo')
|
| - @DocsEditable
|
| - void arcTo(num x1, num y1, num x2, num y2, num radius) native "DOMPath_arcTo_Callback";
|
| + void operator []=(int index, Element value) {
|
| + _element.$dom_replaceChild(value, _childElements[index]);
|
| + }
|
|
|
| - @DomName('DOMPath.bezierCurveTo')
|
| - @DocsEditable
|
| - void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) native "DOMPath_bezierCurveTo_Callback";
|
| + void set length(int newLength) {
|
| + // TODO(jacobr): remove children when length is reduced.
|
| + throw new UnsupportedError('Cannot resize element lists');
|
| + }
|
|
|
| - @DomName('DOMPath.closePath')
|
| - @DocsEditable
|
| - void closePath() native "DOMPath_closePath_Callback";
|
| -
|
| - @DomName('DOMPath.lineTo')
|
| - @DocsEditable
|
| - void lineTo(num x, num y) native "DOMPath_lineTo_Callback";
|
| -
|
| - @DomName('DOMPath.moveTo')
|
| - @DocsEditable
|
| - void moveTo(num x, num y) native "DOMPath_moveTo_Callback";
|
| -
|
| - @DomName('DOMPath.quadraticCurveTo')
|
| - @DocsEditable
|
| - void quadraticCurveTo(num cpx, num cpy, num x, num y) native "DOMPath_quadraticCurveTo_Callback";
|
| -
|
| - @DomName('DOMPath.rect')
|
| - @DocsEditable
|
| - void rect(num x, num y, num width, num height) native "DOMPath_rect_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('Plugin')
|
| -class DomPlugin extends NativeFieldWrapperClass1 {
|
| - DomPlugin.internal();
|
| -
|
| - @DomName('DOMPlugin.description')
|
| - @DocsEditable
|
| - String get description native "DOMPlugin_description_Getter";
|
| -
|
| - @DomName('DOMPlugin.filename')
|
| - @DocsEditable
|
| - String get filename native "DOMPlugin_filename_Getter";
|
| -
|
| - @DomName('DOMPlugin.length')
|
| - @DocsEditable
|
| - int get length native "DOMPlugin_length_Getter";
|
| -
|
| - @DomName('DOMPlugin.name')
|
| - @DocsEditable
|
| - String get name native "DOMPlugin_name_Getter";
|
| -
|
| - @DomName('DOMPlugin.item')
|
| - @DocsEditable
|
| - DomMimeType item(int index) native "DOMPlugin_item_Callback";
|
| -
|
| - @DomName('DOMPlugin.namedItem')
|
| - @DocsEditable
|
| - DomMimeType namedItem(String name) native "DOMPlugin_namedItem_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('PluginArray')
|
| -class DomPluginArray extends NativeFieldWrapperClass1 implements List<DomPlugin> {
|
| - DomPluginArray.internal();
|
| -
|
| - @DomName('DOMPluginArray.length')
|
| - @DocsEditable
|
| - int get length native "DOMPluginArray_length_Getter";
|
| -
|
| - DomPlugin operator[](int index) native "DOMPluginArray_item_Callback";
|
| -
|
| - void operator[]=(int index, DomPlugin value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<DomPlugin> mixins.
|
| - // DomPlugin is the element type.
|
| -
|
| - // From Iterable<DomPlugin>:
|
| -
|
| - Iterator<DomPlugin> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<DomPlugin>(this);
|
| - }
|
| -
|
| - DomPlugin reduce(DomPlugin combine(DomPlugin value, DomPlugin element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, DomPlugin element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - bool contains(DomPlugin element) => IterableMixinWorkaround.contains(this, element);
|
| -
|
| - void forEach(void f(DomPlugin element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(DomPlugin element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<DomPlugin> where(bool f(DomPlugin element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(DomPlugin element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(DomPlugin element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(DomPlugin element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<DomPlugin> toList({ bool growable: true }) =>
|
| - new List<DomPlugin>.from(this, growable: growable);
|
| -
|
| - Set<DomPlugin> toSet() => new Set<DomPlugin>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<DomPlugin> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<DomPlugin> takeWhile(bool test(DomPlugin value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<DomPlugin> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<DomPlugin> skipWhile(bool test(DomPlugin value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - DomPlugin firstWhere(bool test(DomPlugin value), { DomPlugin orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - DomPlugin lastWhere(bool test(DomPlugin value), {DomPlugin orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - DomPlugin singleWhere(bool test(DomPlugin value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - DomPlugin elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<DomPlugin>:
|
| -
|
| - void add(DomPlugin value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<DomPlugin> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<DomPlugin>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<DomPlugin> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(DomPlugin a, DomPlugin b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(DomPlugin element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(DomPlugin element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - DomPlugin get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - DomPlugin get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - DomPlugin get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, DomPlugin element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<DomPlugin> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<DomPlugin> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - DomPlugin removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - DomPlugin removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(DomPlugin element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(DomPlugin element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<DomPlugin> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<DomPlugin> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [DomPlugin fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<DomPlugin> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<DomPlugin> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <DomPlugin>[]);
|
| - }
|
| -
|
| - Map<int, DomPlugin> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<DomPlugin> mixins.
|
| -
|
| - @DomName('DOMPluginArray.item')
|
| - @DocsEditable
|
| - DomPlugin item(int index) native "DOMPluginArray_item_Callback";
|
| -
|
| - @DomName('DOMPluginArray.namedItem')
|
| - @DocsEditable
|
| - DomPlugin namedItem(String name) native "DOMPluginArray_namedItem_Callback";
|
| -
|
| - @DomName('DOMPluginArray.refresh')
|
| - @DocsEditable
|
| - void refresh(bool reload) native "DOMPluginArray_refresh_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('SecurityPolicy')
|
| -class DomSecurityPolicy extends NativeFieldWrapperClass1 {
|
| - DomSecurityPolicy.internal();
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsEval')
|
| - @DocsEditable
|
| - bool get allowsEval native "DOMSecurityPolicy_allowsEval_Getter";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsInlineScript')
|
| - @DocsEditable
|
| - bool get allowsInlineScript native "DOMSecurityPolicy_allowsInlineScript_Getter";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsInlineStyle')
|
| - @DocsEditable
|
| - bool get allowsInlineStyle native "DOMSecurityPolicy_allowsInlineStyle_Getter";
|
| -
|
| - @DomName('DOMSecurityPolicy.isActive')
|
| - @DocsEditable
|
| - bool get isActive native "DOMSecurityPolicy_isActive_Getter";
|
| -
|
| - @DomName('DOMSecurityPolicy.reportURIs')
|
| - @DocsEditable
|
| - List<String> get reportURIs native "DOMSecurityPolicy_reportURIs_Getter";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsConnectionTo')
|
| - @DocsEditable
|
| - bool allowsConnectionTo(String url) native "DOMSecurityPolicy_allowsConnectionTo_Callback";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsFontFrom')
|
| - @DocsEditable
|
| - bool allowsFontFrom(String url) native "DOMSecurityPolicy_allowsFontFrom_Callback";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsFormAction')
|
| - @DocsEditable
|
| - bool allowsFormAction(String url) native "DOMSecurityPolicy_allowsFormAction_Callback";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsFrameFrom')
|
| - @DocsEditable
|
| - bool allowsFrameFrom(String url) native "DOMSecurityPolicy_allowsFrameFrom_Callback";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsImageFrom')
|
| - @DocsEditable
|
| - bool allowsImageFrom(String url) native "DOMSecurityPolicy_allowsImageFrom_Callback";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsMediaFrom')
|
| - @DocsEditable
|
| - bool allowsMediaFrom(String url) native "DOMSecurityPolicy_allowsMediaFrom_Callback";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsObjectFrom')
|
| - @DocsEditable
|
| - bool allowsObjectFrom(String url) native "DOMSecurityPolicy_allowsObjectFrom_Callback";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsPluginType')
|
| - @DocsEditable
|
| - bool allowsPluginType(String type) native "DOMSecurityPolicy_allowsPluginType_Callback";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsScriptFrom')
|
| - @DocsEditable
|
| - bool allowsScriptFrom(String url) native "DOMSecurityPolicy_allowsScriptFrom_Callback";
|
| -
|
| - @DomName('DOMSecurityPolicy.allowsStyleFrom')
|
| - @DocsEditable
|
| - bool allowsStyleFrom(String url) native "DOMSecurityPolicy_allowsStyleFrom_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('Selection')
|
| -class DomSelection extends NativeFieldWrapperClass1 {
|
| - DomSelection.internal();
|
| -
|
| - @DomName('DOMSelection.anchorNode')
|
| - @DocsEditable
|
| - Node get anchorNode native "DOMSelection_anchorNode_Getter";
|
| -
|
| - @DomName('DOMSelection.anchorOffset')
|
| - @DocsEditable
|
| - int get anchorOffset native "DOMSelection_anchorOffset_Getter";
|
| -
|
| - @DomName('DOMSelection.baseNode')
|
| - @DocsEditable
|
| - Node get baseNode native "DOMSelection_baseNode_Getter";
|
| -
|
| - @DomName('DOMSelection.baseOffset')
|
| - @DocsEditable
|
| - int get baseOffset native "DOMSelection_baseOffset_Getter";
|
| -
|
| - @DomName('DOMSelection.extentNode')
|
| - @DocsEditable
|
| - Node get extentNode native "DOMSelection_extentNode_Getter";
|
| -
|
| - @DomName('DOMSelection.extentOffset')
|
| - @DocsEditable
|
| - int get extentOffset native "DOMSelection_extentOffset_Getter";
|
| -
|
| - @DomName('DOMSelection.focusNode')
|
| - @DocsEditable
|
| - Node get focusNode native "DOMSelection_focusNode_Getter";
|
| -
|
| - @DomName('DOMSelection.focusOffset')
|
| - @DocsEditable
|
| - int get focusOffset native "DOMSelection_focusOffset_Getter";
|
| -
|
| - @DomName('DOMSelection.isCollapsed')
|
| - @DocsEditable
|
| - bool get isCollapsed native "DOMSelection_isCollapsed_Getter";
|
| -
|
| - @DomName('DOMSelection.rangeCount')
|
| - @DocsEditable
|
| - int get rangeCount native "DOMSelection_rangeCount_Getter";
|
| -
|
| - @DomName('DOMSelection.type')
|
| - @DocsEditable
|
| - String get type native "DOMSelection_type_Getter";
|
| -
|
| - @DomName('DOMSelection.addRange')
|
| - @DocsEditable
|
| - void addRange(Range range) native "DOMSelection_addRange_Callback";
|
| -
|
| - @DomName('DOMSelection.collapse')
|
| - @DocsEditable
|
| - void collapse(Node node, int index) native "DOMSelection_collapse_Callback";
|
| -
|
| - @DomName('DOMSelection.collapseToEnd')
|
| - @DocsEditable
|
| - void collapseToEnd() native "DOMSelection_collapseToEnd_Callback";
|
| -
|
| - @DomName('DOMSelection.collapseToStart')
|
| - @DocsEditable
|
| - void collapseToStart() native "DOMSelection_collapseToStart_Callback";
|
| -
|
| - @DomName('DOMSelection.containsNode')
|
| - @DocsEditable
|
| - bool containsNode(Node node, bool allowPartial) native "DOMSelection_containsNode_Callback";
|
| -
|
| - @DomName('DOMSelection.deleteFromDocument')
|
| - @DocsEditable
|
| - void deleteFromDocument() native "DOMSelection_deleteFromDocument_Callback";
|
| -
|
| - @DomName('DOMSelection.empty')
|
| - @DocsEditable
|
| - void empty() native "DOMSelection_empty_Callback";
|
| -
|
| - @DomName('DOMSelection.extend')
|
| - @DocsEditable
|
| - void extend(Node node, int offset) native "DOMSelection_extend_Callback";
|
| -
|
| - @DomName('DOMSelection.getRangeAt')
|
| - @DocsEditable
|
| - Range getRangeAt(int index) native "DOMSelection_getRangeAt_Callback";
|
| -
|
| - @DomName('DOMSelection.modify')
|
| - @DocsEditable
|
| - void modify(String alter, String direction, String granularity) native "DOMSelection_modify_Callback";
|
| -
|
| - @DomName('DOMSelection.removeAllRanges')
|
| - @DocsEditable
|
| - void removeAllRanges() native "DOMSelection_removeAllRanges_Callback";
|
| -
|
| - @DomName('DOMSelection.selectAllChildren')
|
| - @DocsEditable
|
| - void selectAllChildren(Node node) native "DOMSelection_selectAllChildren_Callback";
|
| -
|
| - @DomName('DOMSelection.setBaseAndExtent')
|
| - @DocsEditable
|
| - void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset) native "DOMSelection_setBaseAndExtent_Callback";
|
| -
|
| - @DomName('DOMSelection.setPosition')
|
| - @DocsEditable
|
| - void setPosition(Node node, int offset) native "DOMSelection_setPosition_Callback";
|
| -
|
| - @DomName('DOMSelection.toString')
|
| - @DocsEditable
|
| - String toString() native "DOMSelection_toString_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('DOMSettableTokenList')
|
| -class DomSettableTokenList extends DomTokenList {
|
| - DomSettableTokenList.internal() : super.internal();
|
| -
|
| - @DomName('DOMSettableTokenList.value')
|
| - @DocsEditable
|
| - String get value native "DOMSettableTokenList_value_Getter";
|
| -
|
| - @DomName('DOMSettableTokenList.value')
|
| - @DocsEditable
|
| - void set value(String value) native "DOMSettableTokenList_value_Setter";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('DOMStringList')
|
| -class DomStringList extends NativeFieldWrapperClass1 implements List<String> {
|
| - DomStringList.internal();
|
| -
|
| - @DomName('DOMStringList.length')
|
| - @DocsEditable
|
| - int get length native "DOMStringList_length_Getter";
|
| -
|
| - String operator[](int index) native "DOMStringList_item_Callback";
|
| -
|
| - void operator[]=(int index, String value) {
|
| - throw new UnsupportedError("Cannot assign element of immutable List.");
|
| - }
|
| - // -- start List<String> mixins.
|
| - // String is the element type.
|
| -
|
| - // From Iterable<String>:
|
| -
|
| - Iterator<String> get iterator {
|
| - // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| - // be cached in both iterator _and_ forEach method. For now caching it
|
| - // for consistency.
|
| - return new FixedSizeListIterator<String>(this);
|
| - }
|
| -
|
| - String reduce(String combine(String value, String element)) {
|
| - return IterableMixinWorkaround.reduce(this, combine);
|
| - }
|
| -
|
| - dynamic fold(dynamic initialValue,
|
| - dynamic combine(dynamic previousValue, String element)) {
|
| - return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| - }
|
| -
|
| - // contains() defined by IDL.
|
| -
|
| - void forEach(void f(String element)) => IterableMixinWorkaround.forEach(this, f);
|
| -
|
| - String join([String separator = ""]) =>
|
| - IterableMixinWorkaround.joinList(this, separator);
|
| -
|
| - Iterable map(f(String element)) =>
|
| - IterableMixinWorkaround.mapList(this, f);
|
| -
|
| - Iterable<String> where(bool f(String element)) =>
|
| - IterableMixinWorkaround.where(this, f);
|
| -
|
| - Iterable expand(Iterable f(String element)) =>
|
| - IterableMixinWorkaround.expand(this, f);
|
| -
|
| - bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f);
|
| -
|
| - bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
|
| -
|
| - List<String> toList({ bool growable: true }) =>
|
| - new List<String>.from(this, growable: growable);
|
| -
|
| - Set<String> toSet() => new Set<String>.from(this);
|
| -
|
| - bool get isEmpty => this.length == 0;
|
| -
|
| - Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| -
|
| - Iterable<String> takeWhile(bool test(String value)) {
|
| - return IterableMixinWorkaround.takeWhile(this, test);
|
| - }
|
| -
|
| - Iterable<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| -
|
| - Iterable<String> skipWhile(bool test(String value)) {
|
| - return IterableMixinWorkaround.skipWhile(this, test);
|
| - }
|
| -
|
| - String firstWhere(bool test(String value), { String orElse() }) {
|
| - return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| - }
|
| -
|
| - String lastWhere(bool test(String value), {String orElse()}) {
|
| - return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| - }
|
| -
|
| - String singleWhere(bool test(String value)) {
|
| - return IterableMixinWorkaround.singleWhere(this, test);
|
| - }
|
| -
|
| - String elementAt(int index) {
|
| - return this[index];
|
| - }
|
| -
|
| - // From Collection<String>:
|
| -
|
| - void add(String value) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void addAll(Iterable<String> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - // From List<String>:
|
| - void set length(int value) {
|
| - throw new UnsupportedError("Cannot resize immutable List.");
|
| - }
|
| -
|
| - void clear() {
|
| - throw new UnsupportedError("Cannot clear immutable List.");
|
| - }
|
| -
|
| - Iterable<String> get reversed {
|
| - return IterableMixinWorkaround.reversedList(this);
|
| - }
|
| -
|
| - void sort([int compare(String a, String b)]) {
|
| - throw new UnsupportedError("Cannot sort immutable List.");
|
| - }
|
| -
|
| - int indexOf(String element, [int start = 0]) =>
|
| - Lists.indexOf(this, element, start, this.length);
|
| -
|
| - int lastIndexOf(String element, [int start]) {
|
| - if (start == null) start = length - 1;
|
| - return Lists.lastIndexOf(this, element, start);
|
| - }
|
| -
|
| - String get first {
|
| - if (this.length > 0) return this[0];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - String get last {
|
| - if (this.length > 0) return this[this.length - 1];
|
| - throw new StateError("No elements");
|
| - }
|
| -
|
| - String get single {
|
| - if (length == 1) return this[0];
|
| - if (length == 0) throw new StateError("No elements");
|
| - throw new StateError("More than one element");
|
| - }
|
| -
|
| - void insert(int index, String element) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void insertAll(int index, Iterable<String> iterable) {
|
| - throw new UnsupportedError("Cannot add to immutable List.");
|
| - }
|
| -
|
| - void setAll(int index, Iterable<String> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - String removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - String removeLast() {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - bool remove(Object object) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void removeWhere(bool test(String element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void retainWhere(bool test(String element)) {
|
| - throw new UnsupportedError("Cannot remove from immutable List.");
|
| - }
|
| -
|
| - void setRange(int start, int end, Iterable<String> iterable, [int skipCount=0]) {
|
| - throw new UnsupportedError("Cannot setRange on immutable List.");
|
| - }
|
| -
|
| - void removeRange(int start, int end) {
|
| - throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| - }
|
| -
|
| - void replaceRange(int start, int end, Iterable<String> iterable) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - void fillRange(int start, int end, [String fillValue]) {
|
| - throw new UnsupportedError("Cannot modify an immutable List.");
|
| - }
|
| -
|
| - Iterable<String> getRange(int start, int end) =>
|
| - IterableMixinWorkaround.getRangeList(this, start, end);
|
| -
|
| - List<String> sublist(int start, [int end]) {
|
| - if (end == null) end = length;
|
| - return Lists.getRange(this, start, end, <String>[]);
|
| - }
|
| -
|
| - Map<int, String> asMap() =>
|
| - IterableMixinWorkaround.asMapList(this);
|
| -
|
| - String toString() {
|
| - StringBuffer buffer = new StringBuffer('[');
|
| - buffer.writeAll(this, ', ');
|
| - buffer.write(']');
|
| - return buffer.toString();
|
| - }
|
| -
|
| - // -- end List<String> mixins.
|
| -
|
| - @DomName('DOMStringList.contains')
|
| - @DocsEditable
|
| - bool contains(String string) native "DOMStringList_contains_Callback";
|
| -
|
| - @DomName('DOMStringList.item')
|
| - @DocsEditable
|
| - String item(int index) native "DOMStringList_item_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('DOMStringMap')
|
| -class DomStringMap extends NativeFieldWrapperClass1 {
|
| - DomStringMap.internal();
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('DOMTokenList')
|
| -class DomTokenList extends NativeFieldWrapperClass1 {
|
| - DomTokenList.internal();
|
| -
|
| - @DomName('DOMTokenList.length')
|
| - @DocsEditable
|
| - int get length native "DOMTokenList_length_Getter";
|
| -
|
| - @DomName('DOMTokenList.contains')
|
| - @DocsEditable
|
| - bool contains(String token) native "DOMTokenList_contains_Callback";
|
| -
|
| - @DomName('DOMTokenList.item')
|
| - @DocsEditable
|
| - String item(int index) native "DOMTokenList_item_Callback";
|
| -
|
| - @DomName('DOMTokenList.toString')
|
| - @DocsEditable
|
| - String toString() native "DOMTokenList_toString_Callback";
|
| -
|
| - bool toggle(String token, [bool force]) {
|
| - if (?force) {
|
| - return _toggle_1(token, force);
|
| - }
|
| - return _toggle_2(token);
|
| - }
|
| -
|
| - bool _toggle_1(token, force) native "DOMTokenList__toggle_1_Callback";
|
| -
|
| - bool _toggle_2(token) native "DOMTokenList__toggle_2_Callback";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for 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> {
|
| - // Raw Element.
|
| - final Element _element;
|
| - final HtmlCollection _childElements;
|
| -
|
| - _ChildrenElementList._wrap(Element element)
|
| - : _childElements = element.$dom_children,
|
| - _element = element;
|
| -
|
| - bool contains(Element element) => _childElements.contains(element);
|
| -
|
| -
|
| - bool get isEmpty {
|
| - return _element.$dom_firstElementChild == null;
|
| - }
|
| -
|
| - int get length {
|
| - return _childElements.length;
|
| - }
|
| -
|
| - Element operator [](int index) {
|
| - return _childElements[index];
|
| - }
|
| -
|
| - void operator []=(int index, Element value) {
|
| - _element.$dom_replaceChild(value, _childElements[index]);
|
| - }
|
| -
|
| - void set length(int newLength) {
|
| - // TODO(jacobr): remove children when length is reduced.
|
| - throw new UnsupportedError('Cannot resize element lists');
|
| - }
|
| -
|
| - Element add(Element value) {
|
| - _element.append(value);
|
| - return value;
|
| - }
|
| + Element add(Element value) {
|
| + _element.append(value);
|
| + return value;
|
| + }
|
|
|
| Iterator<Element> get iterator => toList().iterator;
|
|
|
| @@ -15814,138 +15059,392 @@ class MessagePort extends EventTarget {
|
| // WARNING: Do not edit - generated code.
|
|
|
|
|
| -@DocsEditable
|
| -@DomName('HTMLMetaElement')
|
| -class MetaElement extends _Element_Merged {
|
| - MetaElement.internal() : super.internal();
|
| +@DocsEditable
|
| +@DomName('HTMLMetaElement')
|
| +class MetaElement extends _Element_Merged {
|
| + MetaElement.internal() : super.internal();
|
| +
|
| + @DomName('HTMLMetaElement.content')
|
| + @DocsEditable
|
| + String get content native "HTMLMetaElement_content_Getter";
|
| +
|
| + @DomName('HTMLMetaElement.content')
|
| + @DocsEditable
|
| + void set content(String value) native "HTMLMetaElement_content_Setter";
|
| +
|
| + @DomName('HTMLMetaElement.httpEquiv')
|
| + @DocsEditable
|
| + String get httpEquiv native "HTMLMetaElement_httpEquiv_Getter";
|
| +
|
| + @DomName('HTMLMetaElement.httpEquiv')
|
| + @DocsEditable
|
| + void set httpEquiv(String value) native "HTMLMetaElement_httpEquiv_Setter";
|
| +
|
| + @DomName('HTMLMetaElement.name')
|
| + @DocsEditable
|
| + String get name native "HTMLMetaElement_name_Getter";
|
| +
|
| + @DomName('HTMLMetaElement.name')
|
| + @DocsEditable
|
| + void set name(String value) native "HTMLMetaElement_name_Setter";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| +@DomName('Metadata')
|
| +class Metadata extends NativeFieldWrapperClass1 {
|
| + Metadata.internal();
|
| +
|
| + @DomName('Metadata.modificationTime')
|
| + @DocsEditable
|
| + DateTime get modificationTime native "Metadata_modificationTime_Getter";
|
| +
|
| + @DomName('Metadata.size')
|
| + @DocsEditable
|
| + int get size native "Metadata_size_Getter";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for 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.
|
| +
|
| +
|
| +typedef void MetadataCallback(Metadata metadata);
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| +@DomName('HTMLMeterElement')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.FIREFOX)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +class MeterElement extends _Element_Merged {
|
| + MeterElement.internal() : super.internal();
|
| +
|
| + @DomName('HTMLMeterElement.HTMLMeterElement')
|
| + @DocsEditable
|
| + factory MeterElement() => document.$dom_createElement("meter");
|
| +
|
| + /// Checks if this type is supported on the current platform.
|
| + static bool get supported => true;
|
| +
|
| + @DomName('HTMLMeterElement.high')
|
| + @DocsEditable
|
| + num get high native "HTMLMeterElement_high_Getter";
|
| +
|
| + @DomName('HTMLMeterElement.high')
|
| + @DocsEditable
|
| + void set high(num value) native "HTMLMeterElement_high_Setter";
|
| +
|
| + @DomName('HTMLMeterElement.labels')
|
| + @DocsEditable
|
| + List<Node> get labels native "HTMLMeterElement_labels_Getter";
|
| +
|
| + @DomName('HTMLMeterElement.low')
|
| + @DocsEditable
|
| + num get low native "HTMLMeterElement_low_Getter";
|
| +
|
| + @DomName('HTMLMeterElement.low')
|
| + @DocsEditable
|
| + void set low(num value) native "HTMLMeterElement_low_Setter";
|
| +
|
| + @DomName('HTMLMeterElement.max')
|
| + @DocsEditable
|
| + num get max native "HTMLMeterElement_max_Getter";
|
| +
|
| + @DomName('HTMLMeterElement.max')
|
| + @DocsEditable
|
| + void set max(num value) native "HTMLMeterElement_max_Setter";
|
| +
|
| + @DomName('HTMLMeterElement.min')
|
| + @DocsEditable
|
| + num get min native "HTMLMeterElement_min_Getter";
|
| +
|
| + @DomName('HTMLMeterElement.min')
|
| + @DocsEditable
|
| + void set min(num value) native "HTMLMeterElement_min_Setter";
|
| +
|
| + @DomName('HTMLMeterElement.optimum')
|
| + @DocsEditable
|
| + num get optimum native "HTMLMeterElement_optimum_Getter";
|
| +
|
| + @DomName('HTMLMeterElement.optimum')
|
| + @DocsEditable
|
| + void set optimum(num value) native "HTMLMeterElement_optimum_Setter";
|
| +
|
| + @DomName('HTMLMeterElement.value')
|
| + @DocsEditable
|
| + num get value native "HTMLMeterElement_value_Getter";
|
| +
|
| + @DomName('HTMLMeterElement.value')
|
| + @DocsEditable
|
| + void set value(num value) native "HTMLMeterElement_value_Setter";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| +@DomName('MimeType')
|
| +class MimeType extends NativeFieldWrapperClass1 {
|
| + MimeType.internal();
|
| +
|
| + @DomName('DOMMimeType.description')
|
| + @DocsEditable
|
| + String get description native "DOMMimeType_description_Getter";
|
| +
|
| + @DomName('DOMMimeType.enabledPlugin')
|
| + @DocsEditable
|
| + Plugin get enabledPlugin native "DOMMimeType_enabledPlugin_Getter";
|
| +
|
| + @DomName('DOMMimeType.suffixes')
|
| + @DocsEditable
|
| + String get suffixes native "DOMMimeType_suffixes_Getter";
|
| +
|
| + @DomName('DOMMimeType.type')
|
| + @DocsEditable
|
| + String get type native "DOMMimeType_type_Getter";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| +@DomName('MimeTypeArray')
|
| +class MimeTypeArray extends NativeFieldWrapperClass1 implements List<MimeType> {
|
| + MimeTypeArray.internal();
|
| +
|
| + @DomName('DOMMimeTypeArray.length')
|
| + @DocsEditable
|
| + int get length native "DOMMimeTypeArray_length_Getter";
|
| +
|
| + MimeType operator[](int index) native "DOMMimeTypeArray_item_Callback";
|
| +
|
| + void operator[]=(int index, MimeType value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| + }
|
| + // -- start List<MimeType> mixins.
|
| + // MimeType is the element type.
|
| +
|
| + // From Iterable<MimeType>:
|
| +
|
| + Iterator<MimeType> get iterator {
|
| + // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| + // be cached in both iterator _and_ forEach method. For now caching it
|
| + // for consistency.
|
| + return new FixedSizeListIterator<MimeType>(this);
|
| + }
|
| +
|
| + MimeType reduce(MimeType combine(MimeType value, MimeType element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| + }
|
| +
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, MimeType element)) {
|
| + return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| + }
|
| +
|
| + bool contains(MimeType element) => IterableMixinWorkaround.contains(this, element);
|
| +
|
| + void forEach(void f(MimeType element)) => IterableMixinWorkaround.forEach(this, f);
|
| +
|
| + String join([String separator = ""]) =>
|
| + IterableMixinWorkaround.joinList(this, separator);
|
| +
|
| + Iterable map(f(MimeType element)) =>
|
| + IterableMixinWorkaround.mapList(this, f);
|
| +
|
| + Iterable<MimeType> where(bool f(MimeType element)) =>
|
| + IterableMixinWorkaround.where(this, f);
|
| +
|
| + Iterable expand(Iterable f(MimeType element)) =>
|
| + IterableMixinWorkaround.expand(this, f);
|
| +
|
| + bool every(bool f(MimeType element)) => IterableMixinWorkaround.every(this, f);
|
| +
|
| + bool any(bool f(MimeType element)) => IterableMixinWorkaround.any(this, f);
|
| +
|
| + List<MimeType> toList({ bool growable: true }) =>
|
| + new List<MimeType>.from(this, growable: growable);
|
| +
|
| + Set<MimeType> toSet() => new Set<MimeType>.from(this);
|
| +
|
| + bool get isEmpty => this.length == 0;
|
| +
|
| + Iterable<MimeType> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| +
|
| + Iterable<MimeType> takeWhile(bool test(MimeType value)) {
|
| + return IterableMixinWorkaround.takeWhile(this, test);
|
| + }
|
| +
|
| + Iterable<MimeType> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| +
|
| + Iterable<MimeType> skipWhile(bool test(MimeType value)) {
|
| + return IterableMixinWorkaround.skipWhile(this, test);
|
| + }
|
| +
|
| + MimeType firstWhere(bool test(MimeType value), { MimeType orElse() }) {
|
| + return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| + }
|
|
|
| - @DomName('HTMLMetaElement.content')
|
| - @DocsEditable
|
| - String get content native "HTMLMetaElement_content_Getter";
|
| + MimeType lastWhere(bool test(MimeType value), {MimeType orElse()}) {
|
| + return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| + }
|
|
|
| - @DomName('HTMLMetaElement.content')
|
| - @DocsEditable
|
| - void set content(String value) native "HTMLMetaElement_content_Setter";
|
| + MimeType singleWhere(bool test(MimeType value)) {
|
| + return IterableMixinWorkaround.singleWhere(this, test);
|
| + }
|
|
|
| - @DomName('HTMLMetaElement.httpEquiv')
|
| - @DocsEditable
|
| - String get httpEquiv native "HTMLMetaElement_httpEquiv_Getter";
|
| + MimeType elementAt(int index) {
|
| + return this[index];
|
| + }
|
|
|
| - @DomName('HTMLMetaElement.httpEquiv')
|
| - @DocsEditable
|
| - void set httpEquiv(String value) native "HTMLMetaElement_httpEquiv_Setter";
|
| + // From Collection<MimeType>:
|
|
|
| - @DomName('HTMLMetaElement.name')
|
| - @DocsEditable
|
| - String get name native "HTMLMetaElement_name_Getter";
|
| + void add(MimeType value) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
|
|
| - @DomName('HTMLMetaElement.name')
|
| - @DocsEditable
|
| - void set name(String value) native "HTMLMetaElement_name_Setter";
|
| + void addAll(Iterable<MimeType> iterable) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
|
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| + // From List<MimeType>:
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| + }
|
|
|
| -// WARNING: Do not edit - generated code.
|
| + void clear() {
|
| + throw new UnsupportedError("Cannot clear immutable List.");
|
| + }
|
|
|
| + Iterable<MimeType> get reversed {
|
| + return IterableMixinWorkaround.reversedList(this);
|
| + }
|
|
|
| -@DocsEditable
|
| -@DomName('Metadata')
|
| -class Metadata extends NativeFieldWrapperClass1 {
|
| - Metadata.internal();
|
| + void sort([int compare(MimeType a, MimeType b)]) {
|
| + throw new UnsupportedError("Cannot sort immutable List.");
|
| + }
|
|
|
| - @DomName('Metadata.modificationTime')
|
| - @DocsEditable
|
| - DateTime get modificationTime native "Metadata_modificationTime_Getter";
|
| + int indexOf(MimeType element, [int start = 0]) =>
|
| + Lists.indexOf(this, element, start, this.length);
|
|
|
| - @DomName('Metadata.size')
|
| - @DocsEditable
|
| - int get size native "Metadata_size_Getter";
|
| + int lastIndexOf(MimeType element, [int start]) {
|
| + if (start == null) start = length - 1;
|
| + return Lists.lastIndexOf(this, element, start);
|
| + }
|
|
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| + MimeType get first {
|
| + if (this.length > 0) return this[0];
|
| + throw new StateError("No elements");
|
| + }
|
|
|
| -// WARNING: Do not edit - generated code.
|
| + MimeType get last {
|
| + if (this.length > 0) return this[this.length - 1];
|
| + throw new StateError("No elements");
|
| + }
|
|
|
| + MimeType get single {
|
| + if (length == 1) return this[0];
|
| + if (length == 0) throw new StateError("No elements");
|
| + throw new StateError("More than one element");
|
| + }
|
|
|
| -typedef void MetadataCallback(Metadata metadata);
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| + void insert(int index, MimeType element) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
|
|
| -// WARNING: Do not edit - generated code.
|
| + void insertAll(int index, Iterable<MimeType> iterable) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
|
|
| + void setAll(int index, Iterable<MimeType> iterable) {
|
| + throw new UnsupportedError("Cannot modify an immutable List.");
|
| + }
|
|
|
| -@DocsEditable
|
| -@DomName('HTMLMeterElement')
|
| -@SupportedBrowser(SupportedBrowser.CHROME)
|
| -@SupportedBrowser(SupportedBrowser.FIREFOX)
|
| -@SupportedBrowser(SupportedBrowser.SAFARI)
|
| -class MeterElement extends _Element_Merged {
|
| - MeterElement.internal() : super.internal();
|
| + MimeType removeAt(int pos) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
|
|
| - @DomName('HTMLMeterElement.HTMLMeterElement')
|
| - @DocsEditable
|
| - factory MeterElement() => document.$dom_createElement("meter");
|
| + MimeType removeLast() {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
|
|
| - /// Checks if this type is supported on the current platform.
|
| - static bool get supported => true;
|
| + bool remove(Object object) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
|
|
| - @DomName('HTMLMeterElement.high')
|
| - @DocsEditable
|
| - num get high native "HTMLMeterElement_high_Getter";
|
| + void removeWhere(bool test(MimeType element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
|
|
| - @DomName('HTMLMeterElement.high')
|
| - @DocsEditable
|
| - void set high(num value) native "HTMLMeterElement_high_Setter";
|
| + void retainWhere(bool test(MimeType element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
|
|
| - @DomName('HTMLMeterElement.labels')
|
| - @DocsEditable
|
| - List<Node> get labels native "HTMLMeterElement_labels_Getter";
|
| + void setRange(int start, int end, Iterable<MimeType> iterable, [int skipCount=0]) {
|
| + throw new UnsupportedError("Cannot setRange on immutable List.");
|
| + }
|
|
|
| - @DomName('HTMLMeterElement.low')
|
| - @DocsEditable
|
| - num get low native "HTMLMeterElement_low_Getter";
|
| + void removeRange(int start, int end) {
|
| + throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| + }
|
|
|
| - @DomName('HTMLMeterElement.low')
|
| - @DocsEditable
|
| - void set low(num value) native "HTMLMeterElement_low_Setter";
|
| + void replaceRange(int start, int end, Iterable<MimeType> iterable) {
|
| + throw new UnsupportedError("Cannot modify an immutable List.");
|
| + }
|
|
|
| - @DomName('HTMLMeterElement.max')
|
| - @DocsEditable
|
| - num get max native "HTMLMeterElement_max_Getter";
|
| + void fillRange(int start, int end, [MimeType fillValue]) {
|
| + throw new UnsupportedError("Cannot modify an immutable List.");
|
| + }
|
|
|
| - @DomName('HTMLMeterElement.max')
|
| - @DocsEditable
|
| - void set max(num value) native "HTMLMeterElement_max_Setter";
|
| + Iterable<MimeType> getRange(int start, int end) =>
|
| + IterableMixinWorkaround.getRangeList(this, start, end);
|
|
|
| - @DomName('HTMLMeterElement.min')
|
| - @DocsEditable
|
| - num get min native "HTMLMeterElement_min_Getter";
|
| + List<MimeType> sublist(int start, [int end]) {
|
| + if (end == null) end = length;
|
| + return Lists.getRange(this, start, end, <MimeType>[]);
|
| + }
|
|
|
| - @DomName('HTMLMeterElement.min')
|
| - @DocsEditable
|
| - void set min(num value) native "HTMLMeterElement_min_Setter";
|
| + Map<int, MimeType> asMap() =>
|
| + IterableMixinWorkaround.asMapList(this);
|
|
|
| - @DomName('HTMLMeterElement.optimum')
|
| - @DocsEditable
|
| - num get optimum native "HTMLMeterElement_optimum_Getter";
|
| + String toString() {
|
| + StringBuffer buffer = new StringBuffer('[');
|
| + buffer.writeAll(this, ', ');
|
| + buffer.write(']');
|
| + return buffer.toString();
|
| + }
|
|
|
| - @DomName('HTMLMeterElement.optimum')
|
| - @DocsEditable
|
| - void set optimum(num value) native "HTMLMeterElement_optimum_Setter";
|
| + // -- end List<MimeType> mixins.
|
|
|
| - @DomName('HTMLMeterElement.value')
|
| + @DomName('DOMMimeTypeArray.item')
|
| @DocsEditable
|
| - num get value native "HTMLMeterElement_value_Getter";
|
| + MimeType item(int index) native "DOMMimeTypeArray_item_Callback";
|
|
|
| - @DomName('HTMLMeterElement.value')
|
| + @DomName('DOMMimeTypeArray.namedItem')
|
| @DocsEditable
|
| - void set value(num value) native "HTMLMeterElement_value_Setter";
|
| + MimeType namedItem(String name) native "DOMMimeTypeArray_namedItem_Callback";
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -16326,6 +15825,9 @@ class MutationRecord extends NativeFieldWrapperClass1 {
|
|
|
| @DocsEditable
|
| @DomName('WebKitNamedFlow')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| class NamedFlow extends EventTarget {
|
| NamedFlow.internal() : super.internal();
|
|
|
| @@ -16370,6 +15872,34 @@ class NamedFlow 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.
|
|
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| +@DomName('WebKitNamedFlowCollection')
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| +class NamedFlowCollection extends NativeFieldWrapperClass1 {
|
| + NamedFlowCollection.internal();
|
| +
|
| + @DomName('DOMNamedFlowCollection.length')
|
| + @DocsEditable
|
| + int get length native "DOMNamedFlowCollection_length_Getter";
|
| +
|
| + @DomName('DOMNamedFlowCollection.item')
|
| + @DocsEditable
|
| + NamedFlow item(int index) native "DOMNamedFlowCollection_item_Callback";
|
| +
|
| + @DomName('DOMNamedFlowCollection.namedItem')
|
| + @DocsEditable
|
| + NamedFlow namedItem(String name) native "DOMNamedFlowCollection_namedItem_Callback";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for 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('Navigator')
|
| class Navigator extends NativeFieldWrapperClass1 {
|
| @@ -16462,7 +15992,7 @@ class Navigator extends NativeFieldWrapperClass1 {
|
|
|
| @DomName('Navigator.mimeTypes')
|
| @DocsEditable
|
| - DomMimeTypeArray get mimeTypes native "Navigator_mimeTypes_Getter";
|
| + MimeTypeArray get mimeTypes native "Navigator_mimeTypes_Getter";
|
|
|
| @DomName('Navigator.onLine')
|
| @DocsEditable
|
| @@ -16474,7 +16004,7 @@ class Navigator extends NativeFieldWrapperClass1 {
|
|
|
| @DomName('Navigator.plugins')
|
| @DocsEditable
|
| - DomPluginArray get plugins native "Navigator_plugins_Getter";
|
| + PluginArray get plugins native "Navigator_plugins_Getter";
|
|
|
| @DomName('Navigator.product')
|
| @DocsEditable
|
| @@ -17911,42 +17441,111 @@ class PageTransitionEvent extends Event {
|
| class ParagraphElement extends _Element_Merged {
|
| ParagraphElement.internal() : super.internal();
|
|
|
| - @DomName('HTMLParagraphElement.HTMLParagraphElement')
|
| + @DomName('HTMLParagraphElement.HTMLParagraphElement')
|
| + @DocsEditable
|
| + factory ParagraphElement() => document.$dom_createElement("p");
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| +@DomName('HTMLParamElement')
|
| +class ParamElement extends _Element_Merged {
|
| + ParamElement.internal() : super.internal();
|
| +
|
| + @DomName('HTMLParamElement.HTMLParamElement')
|
| + @DocsEditable
|
| + factory ParamElement() => document.$dom_createElement("param");
|
| +
|
| + @DomName('HTMLParamElement.name')
|
| + @DocsEditable
|
| + String get name native "HTMLParamElement_name_Getter";
|
| +
|
| + @DomName('HTMLParamElement.name')
|
| + @DocsEditable
|
| + void set name(String value) native "HTMLParamElement_name_Setter";
|
| +
|
| + @DomName('HTMLParamElement.value')
|
| + @DocsEditable
|
| + String get value native "HTMLParamElement_value_Getter";
|
| +
|
| + @DomName('HTMLParamElement.value')
|
| + @DocsEditable
|
| + void set value(String value) native "HTMLParamElement_value_Setter";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| +@DomName('Path')
|
| +class Path extends NativeFieldWrapperClass1 {
|
| + Path.internal();
|
| +
|
| + @DomName('DOMPath.DOMPath')
|
| + @DocsEditable
|
| + factory Path([path_OR_text]) {
|
| + if (!?path_OR_text) {
|
| + return Path._create_1();
|
| + }
|
| + if ((path_OR_text is Path || path_OR_text == null)) {
|
| + return Path._create_2(path_OR_text);
|
| + }
|
| + if ((path_OR_text is String || path_OR_text == null)) {
|
| + return Path._create_3(path_OR_text);
|
| + }
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| + }
|
| +
|
| @DocsEditable
|
| - factory ParagraphElement() => document.$dom_createElement("p");
|
| + static Path _create_1() native "DOMPath__create_1constructorCallback";
|
|
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| + @DocsEditable
|
| + static Path _create_2(path_OR_text) native "DOMPath__create_2constructorCallback";
|
|
|
| -// WARNING: Do not edit - generated code.
|
| + @DocsEditable
|
| + static Path _create_3(path_OR_text) native "DOMPath__create_3constructorCallback";
|
|
|
| + @DomName('DOMPath.arc')
|
| + @DocsEditable
|
| + void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native "DOMPath_arc_Callback";
|
|
|
| -@DocsEditable
|
| -@DomName('HTMLParamElement')
|
| -class ParamElement extends _Element_Merged {
|
| - ParamElement.internal() : super.internal();
|
| + @DomName('DOMPath.arcTo')
|
| + @DocsEditable
|
| + void arcTo(num x1, num y1, num x2, num y2, num radius) native "DOMPath_arcTo_Callback";
|
|
|
| - @DomName('HTMLParamElement.HTMLParamElement')
|
| + @DomName('DOMPath.bezierCurveTo')
|
| @DocsEditable
|
| - factory ParamElement() => document.$dom_createElement("param");
|
| + void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) native "DOMPath_bezierCurveTo_Callback";
|
|
|
| - @DomName('HTMLParamElement.name')
|
| + @DomName('DOMPath.closePath')
|
| @DocsEditable
|
| - String get name native "HTMLParamElement_name_Getter";
|
| + void closePath() native "DOMPath_closePath_Callback";
|
|
|
| - @DomName('HTMLParamElement.name')
|
| + @DomName('DOMPath.lineTo')
|
| @DocsEditable
|
| - void set name(String value) native "HTMLParamElement_name_Setter";
|
| + void lineTo(num x, num y) native "DOMPath_lineTo_Callback";
|
|
|
| - @DomName('HTMLParamElement.value')
|
| + @DomName('DOMPath.moveTo')
|
| @DocsEditable
|
| - String get value native "HTMLParamElement_value_Getter";
|
| + void moveTo(num x, num y) native "DOMPath_moveTo_Callback";
|
|
|
| - @DomName('HTMLParamElement.value')
|
| + @DomName('DOMPath.quadraticCurveTo')
|
| @DocsEditable
|
| - void set value(String value) native "HTMLParamElement_value_Setter";
|
| + void quadraticCurveTo(num cpx, num cpy, num x, num y) native "DOMPath_quadraticCurveTo_Callback";
|
| +
|
| + @DomName('DOMPath.rect')
|
| + @DocsEditable
|
| + void rect(num x, num y, num width, num height) native "DOMPath_rect_Callback";
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -18277,37 +17876,303 @@ class PerformanceTiming extends NativeFieldWrapperClass1 {
|
| @DocsEditable
|
| int get navigationStart native "PerformanceTiming_navigationStart_Getter";
|
|
|
| - @DomName('PerformanceTiming.redirectEnd')
|
| - @DocsEditable
|
| - int get redirectEnd native "PerformanceTiming_redirectEnd_Getter";
|
| + @DomName('PerformanceTiming.redirectEnd')
|
| + @DocsEditable
|
| + int get redirectEnd native "PerformanceTiming_redirectEnd_Getter";
|
| +
|
| + @DomName('PerformanceTiming.redirectStart')
|
| + @DocsEditable
|
| + int get redirectStart native "PerformanceTiming_redirectStart_Getter";
|
| +
|
| + @DomName('PerformanceTiming.requestStart')
|
| + @DocsEditable
|
| + int get requestStart native "PerformanceTiming_requestStart_Getter";
|
| +
|
| + @DomName('PerformanceTiming.responseEnd')
|
| + @DocsEditable
|
| + int get responseEnd native "PerformanceTiming_responseEnd_Getter";
|
| +
|
| + @DomName('PerformanceTiming.responseStart')
|
| + @DocsEditable
|
| + int get responseStart native "PerformanceTiming_responseStart_Getter";
|
| +
|
| + @DomName('PerformanceTiming.secureConnectionStart')
|
| + @DocsEditable
|
| + int get secureConnectionStart native "PerformanceTiming_secureConnectionStart_Getter";
|
| +
|
| + @DomName('PerformanceTiming.unloadEventEnd')
|
| + @DocsEditable
|
| + int get unloadEventEnd native "PerformanceTiming_unloadEventEnd_Getter";
|
| +
|
| + @DomName('PerformanceTiming.unloadEventStart')
|
| + @DocsEditable
|
| + int get unloadEventStart native "PerformanceTiming_unloadEventStart_Getter";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| +@DomName('Plugin')
|
| +class Plugin extends NativeFieldWrapperClass1 {
|
| + Plugin.internal();
|
| +
|
| + @DomName('DOMPlugin.description')
|
| + @DocsEditable
|
| + String get description native "DOMPlugin_description_Getter";
|
| +
|
| + @DomName('DOMPlugin.filename')
|
| + @DocsEditable
|
| + String get filename native "DOMPlugin_filename_Getter";
|
| +
|
| + @DomName('DOMPlugin.length')
|
| + @DocsEditable
|
| + int get length native "DOMPlugin_length_Getter";
|
| +
|
| + @DomName('DOMPlugin.name')
|
| + @DocsEditable
|
| + String get name native "DOMPlugin_name_Getter";
|
| +
|
| + @DomName('DOMPlugin.item')
|
| + @DocsEditable
|
| + MimeType item(int index) native "DOMPlugin_item_Callback";
|
| +
|
| + @DomName('DOMPlugin.namedItem')
|
| + @DocsEditable
|
| + MimeType namedItem(String name) native "DOMPlugin_namedItem_Callback";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| +@DomName('PluginArray')
|
| +class PluginArray extends NativeFieldWrapperClass1 implements List<Plugin> {
|
| + PluginArray.internal();
|
| +
|
| + @DomName('DOMPluginArray.length')
|
| + @DocsEditable
|
| + int get length native "DOMPluginArray_length_Getter";
|
| +
|
| + Plugin operator[](int index) native "DOMPluginArray_item_Callback";
|
| +
|
| + void operator[]=(int index, Plugin value) {
|
| + throw new UnsupportedError("Cannot assign element of immutable List.");
|
| + }
|
| + // -- start List<Plugin> mixins.
|
| + // Plugin is the element type.
|
| +
|
| + // From Iterable<Plugin>:
|
| +
|
| + Iterator<Plugin> get iterator {
|
| + // Note: NodeLists are not fixed size. And most probably length shouldn't
|
| + // be cached in both iterator _and_ forEach method. For now caching it
|
| + // for consistency.
|
| + return new FixedSizeListIterator<Plugin>(this);
|
| + }
|
| +
|
| + Plugin reduce(Plugin combine(Plugin value, Plugin element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| + }
|
| +
|
| + dynamic fold(dynamic initialValue,
|
| + dynamic combine(dynamic previousValue, Plugin element)) {
|
| + return IterableMixinWorkaround.fold(this, initialValue, combine);
|
| + }
|
| +
|
| + bool contains(Plugin element) => IterableMixinWorkaround.contains(this, element);
|
| +
|
| + void forEach(void f(Plugin element)) => IterableMixinWorkaround.forEach(this, f);
|
| +
|
| + String join([String separator = ""]) =>
|
| + IterableMixinWorkaround.joinList(this, separator);
|
| +
|
| + Iterable map(f(Plugin element)) =>
|
| + IterableMixinWorkaround.mapList(this, f);
|
| +
|
| + Iterable<Plugin> where(bool f(Plugin element)) =>
|
| + IterableMixinWorkaround.where(this, f);
|
| +
|
| + Iterable expand(Iterable f(Plugin element)) =>
|
| + IterableMixinWorkaround.expand(this, f);
|
| +
|
| + bool every(bool f(Plugin element)) => IterableMixinWorkaround.every(this, f);
|
| +
|
| + bool any(bool f(Plugin element)) => IterableMixinWorkaround.any(this, f);
|
| +
|
| + List<Plugin> toList({ bool growable: true }) =>
|
| + new List<Plugin>.from(this, growable: growable);
|
| +
|
| + Set<Plugin> toSet() => new Set<Plugin>.from(this);
|
| +
|
| + bool get isEmpty => this.length == 0;
|
| +
|
| + Iterable<Plugin> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
| +
|
| + Iterable<Plugin> takeWhile(bool test(Plugin value)) {
|
| + return IterableMixinWorkaround.takeWhile(this, test);
|
| + }
|
| +
|
| + Iterable<Plugin> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
| +
|
| + Iterable<Plugin> skipWhile(bool test(Plugin value)) {
|
| + return IterableMixinWorkaround.skipWhile(this, test);
|
| + }
|
| +
|
| + Plugin firstWhere(bool test(Plugin value), { Plugin orElse() }) {
|
| + return IterableMixinWorkaround.firstWhere(this, test, orElse);
|
| + }
|
| +
|
| + Plugin lastWhere(bool test(Plugin value), {Plugin orElse()}) {
|
| + return IterableMixinWorkaround.lastWhereList(this, test, orElse);
|
| + }
|
| +
|
| + Plugin singleWhere(bool test(Plugin value)) {
|
| + return IterableMixinWorkaround.singleWhere(this, test);
|
| + }
|
| +
|
| + Plugin elementAt(int index) {
|
| + return this[index];
|
| + }
|
| +
|
| + // From Collection<Plugin>:
|
| +
|
| + void add(Plugin value) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
| +
|
| + void addAll(Iterable<Plugin> iterable) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
| +
|
| + // From List<Plugin>:
|
| + void set length(int value) {
|
| + throw new UnsupportedError("Cannot resize immutable List.");
|
| + }
|
| +
|
| + void clear() {
|
| + throw new UnsupportedError("Cannot clear immutable List.");
|
| + }
|
| +
|
| + Iterable<Plugin> get reversed {
|
| + return IterableMixinWorkaround.reversedList(this);
|
| + }
|
| +
|
| + void sort([int compare(Plugin a, Plugin b)]) {
|
| + throw new UnsupportedError("Cannot sort immutable List.");
|
| + }
|
| +
|
| + int indexOf(Plugin element, [int start = 0]) =>
|
| + Lists.indexOf(this, element, start, this.length);
|
| +
|
| + int lastIndexOf(Plugin element, [int start]) {
|
| + if (start == null) start = length - 1;
|
| + return Lists.lastIndexOf(this, element, start);
|
| + }
|
| +
|
| + Plugin get first {
|
| + if (this.length > 0) return this[0];
|
| + throw new StateError("No elements");
|
| + }
|
| +
|
| + Plugin get last {
|
| + if (this.length > 0) return this[this.length - 1];
|
| + throw new StateError("No elements");
|
| + }
|
| +
|
| + Plugin get single {
|
| + if (length == 1) return this[0];
|
| + if (length == 0) throw new StateError("No elements");
|
| + throw new StateError("More than one element");
|
| + }
|
| +
|
| + void insert(int index, Plugin element) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
| +
|
| + void insertAll(int index, Iterable<Plugin> iterable) {
|
| + throw new UnsupportedError("Cannot add to immutable List.");
|
| + }
|
| +
|
| + void setAll(int index, Iterable<Plugin> iterable) {
|
| + throw new UnsupportedError("Cannot modify an immutable List.");
|
| + }
|
| +
|
| + Plugin removeAt(int pos) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + Plugin removeLast() {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + bool remove(Object object) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeWhere(bool test(Plugin element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainWhere(bool test(Plugin element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void setRange(int start, int end, Iterable<Plugin> iterable, [int skipCount=0]) {
|
| + throw new UnsupportedError("Cannot setRange on immutable List.");
|
| + }
|
| +
|
| + void removeRange(int start, int end) {
|
| + throw new UnsupportedError("Cannot removeRange on immutable List.");
|
| + }
|
| +
|
| + void replaceRange(int start, int end, Iterable<Plugin> iterable) {
|
| + throw new UnsupportedError("Cannot modify an immutable List.");
|
| + }
|
| +
|
| + void fillRange(int start, int end, [Plugin fillValue]) {
|
| + throw new UnsupportedError("Cannot modify an immutable List.");
|
| + }
|
| +
|
| + Iterable<Plugin> getRange(int start, int end) =>
|
| + IterableMixinWorkaround.getRangeList(this, start, end);
|
|
|
| - @DomName('PerformanceTiming.redirectStart')
|
| - @DocsEditable
|
| - int get redirectStart native "PerformanceTiming_redirectStart_Getter";
|
| + List<Plugin> sublist(int start, [int end]) {
|
| + if (end == null) end = length;
|
| + return Lists.getRange(this, start, end, <Plugin>[]);
|
| + }
|
|
|
| - @DomName('PerformanceTiming.requestStart')
|
| - @DocsEditable
|
| - int get requestStart native "PerformanceTiming_requestStart_Getter";
|
| + Map<int, Plugin> asMap() =>
|
| + IterableMixinWorkaround.asMapList(this);
|
|
|
| - @DomName('PerformanceTiming.responseEnd')
|
| - @DocsEditable
|
| - int get responseEnd native "PerformanceTiming_responseEnd_Getter";
|
| + String toString() {
|
| + StringBuffer buffer = new StringBuffer('[');
|
| + buffer.writeAll(this, ', ');
|
| + buffer.write(']');
|
| + return buffer.toString();
|
| + }
|
|
|
| - @DomName('PerformanceTiming.responseStart')
|
| - @DocsEditable
|
| - int get responseStart native "PerformanceTiming_responseStart_Getter";
|
| + // -- end List<Plugin> mixins.
|
|
|
| - @DomName('PerformanceTiming.secureConnectionStart')
|
| + @DomName('DOMPluginArray.item')
|
| @DocsEditable
|
| - int get secureConnectionStart native "PerformanceTiming_secureConnectionStart_Getter";
|
| + Plugin item(int index) native "DOMPluginArray_item_Callback";
|
|
|
| - @DomName('PerformanceTiming.unloadEventEnd')
|
| + @DomName('DOMPluginArray.namedItem')
|
| @DocsEditable
|
| - int get unloadEventEnd native "PerformanceTiming_unloadEventEnd_Getter";
|
| + Plugin namedItem(String name) native "DOMPluginArray_namedItem_Callback";
|
|
|
| - @DomName('PerformanceTiming.unloadEventStart')
|
| + @DomName('DOMPluginArray.refresh')
|
| @DocsEditable
|
| - int get unloadEventStart native "PerformanceTiming_unloadEventStart_Getter";
|
| + void refresh(bool reload) native "DOMPluginArray_refresh_Callback";
|
|
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -19547,6 +19412,79 @@ class ScriptProfileNode extends NativeFieldWrapperClass1 {
|
|
|
|
|
| @DocsEditable
|
| +@DomName('SecurityPolicy')
|
| +class SecurityPolicy extends NativeFieldWrapperClass1 {
|
| + SecurityPolicy.internal();
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsEval')
|
| + @DocsEditable
|
| + bool get allowsEval native "DOMSecurityPolicy_allowsEval_Getter";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsInlineScript')
|
| + @DocsEditable
|
| + bool get allowsInlineScript native "DOMSecurityPolicy_allowsInlineScript_Getter";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsInlineStyle')
|
| + @DocsEditable
|
| + bool get allowsInlineStyle native "DOMSecurityPolicy_allowsInlineStyle_Getter";
|
| +
|
| + @DomName('DOMSecurityPolicy.isActive')
|
| + @DocsEditable
|
| + bool get isActive native "DOMSecurityPolicy_isActive_Getter";
|
| +
|
| + @DomName('DOMSecurityPolicy.reportURIs')
|
| + @DocsEditable
|
| + List<String> get reportURIs native "DOMSecurityPolicy_reportURIs_Getter";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsConnectionTo')
|
| + @DocsEditable
|
| + bool allowsConnectionTo(String url) native "DOMSecurityPolicy_allowsConnectionTo_Callback";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsFontFrom')
|
| + @DocsEditable
|
| + bool allowsFontFrom(String url) native "DOMSecurityPolicy_allowsFontFrom_Callback";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsFormAction')
|
| + @DocsEditable
|
| + bool allowsFormAction(String url) native "DOMSecurityPolicy_allowsFormAction_Callback";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsFrameFrom')
|
| + @DocsEditable
|
| + bool allowsFrameFrom(String url) native "DOMSecurityPolicy_allowsFrameFrom_Callback";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsImageFrom')
|
| + @DocsEditable
|
| + bool allowsImageFrom(String url) native "DOMSecurityPolicy_allowsImageFrom_Callback";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsMediaFrom')
|
| + @DocsEditable
|
| + bool allowsMediaFrom(String url) native "DOMSecurityPolicy_allowsMediaFrom_Callback";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsObjectFrom')
|
| + @DocsEditable
|
| + bool allowsObjectFrom(String url) native "DOMSecurityPolicy_allowsObjectFrom_Callback";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsPluginType')
|
| + @DocsEditable
|
| + bool allowsPluginType(String type) native "DOMSecurityPolicy_allowsPluginType_Callback";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsScriptFrom')
|
| + @DocsEditable
|
| + bool allowsScriptFrom(String url) native "DOMSecurityPolicy_allowsScriptFrom_Callback";
|
| +
|
| + @DomName('DOMSecurityPolicy.allowsStyleFrom')
|
| + @DocsEditable
|
| + bool allowsStyleFrom(String url) native "DOMSecurityPolicy_allowsStyleFrom_Callback";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| @DomName('SecurityPolicyViolationEvent')
|
| class SecurityPolicyViolationEvent extends Event {
|
| SecurityPolicyViolationEvent.internal() : super.internal();
|
| @@ -19735,6 +19673,123 @@ class SelectElement extends _Element_Merged {
|
|
|
|
|
| @DocsEditable
|
| +@DomName('Selection')
|
| +class Selection extends NativeFieldWrapperClass1 {
|
| + Selection.internal();
|
| +
|
| + @DomName('DOMSelection.anchorNode')
|
| + @DocsEditable
|
| + Node get anchorNode native "DOMSelection_anchorNode_Getter";
|
| +
|
| + @DomName('DOMSelection.anchorOffset')
|
| + @DocsEditable
|
| + int get anchorOffset native "DOMSelection_anchorOffset_Getter";
|
| +
|
| + @DomName('DOMSelection.baseNode')
|
| + @DocsEditable
|
| + Node get baseNode native "DOMSelection_baseNode_Getter";
|
| +
|
| + @DomName('DOMSelection.baseOffset')
|
| + @DocsEditable
|
| + int get baseOffset native "DOMSelection_baseOffset_Getter";
|
| +
|
| + @DomName('DOMSelection.extentNode')
|
| + @DocsEditable
|
| + Node get extentNode native "DOMSelection_extentNode_Getter";
|
| +
|
| + @DomName('DOMSelection.extentOffset')
|
| + @DocsEditable
|
| + int get extentOffset native "DOMSelection_extentOffset_Getter";
|
| +
|
| + @DomName('DOMSelection.focusNode')
|
| + @DocsEditable
|
| + Node get focusNode native "DOMSelection_focusNode_Getter";
|
| +
|
| + @DomName('DOMSelection.focusOffset')
|
| + @DocsEditable
|
| + int get focusOffset native "DOMSelection_focusOffset_Getter";
|
| +
|
| + @DomName('DOMSelection.isCollapsed')
|
| + @DocsEditable
|
| + bool get isCollapsed native "DOMSelection_isCollapsed_Getter";
|
| +
|
| + @DomName('DOMSelection.rangeCount')
|
| + @DocsEditable
|
| + int get rangeCount native "DOMSelection_rangeCount_Getter";
|
| +
|
| + @DomName('DOMSelection.type')
|
| + @DocsEditable
|
| + String get type native "DOMSelection_type_Getter";
|
| +
|
| + @DomName('DOMSelection.addRange')
|
| + @DocsEditable
|
| + void addRange(Range range) native "DOMSelection_addRange_Callback";
|
| +
|
| + @DomName('DOMSelection.collapse')
|
| + @DocsEditable
|
| + void collapse(Node node, int index) native "DOMSelection_collapse_Callback";
|
| +
|
| + @DomName('DOMSelection.collapseToEnd')
|
| + @DocsEditable
|
| + void collapseToEnd() native "DOMSelection_collapseToEnd_Callback";
|
| +
|
| + @DomName('DOMSelection.collapseToStart')
|
| + @DocsEditable
|
| + void collapseToStart() native "DOMSelection_collapseToStart_Callback";
|
| +
|
| + @DomName('DOMSelection.containsNode')
|
| + @DocsEditable
|
| + bool containsNode(Node node, bool allowPartial) native "DOMSelection_containsNode_Callback";
|
| +
|
| + @DomName('DOMSelection.deleteFromDocument')
|
| + @DocsEditable
|
| + void deleteFromDocument() native "DOMSelection_deleteFromDocument_Callback";
|
| +
|
| + @DomName('DOMSelection.empty')
|
| + @DocsEditable
|
| + void empty() native "DOMSelection_empty_Callback";
|
| +
|
| + @DomName('DOMSelection.extend')
|
| + @DocsEditable
|
| + void extend(Node node, int offset) native "DOMSelection_extend_Callback";
|
| +
|
| + @DomName('DOMSelection.getRangeAt')
|
| + @DocsEditable
|
| + Range getRangeAt(int index) native "DOMSelection_getRangeAt_Callback";
|
| +
|
| + @DomName('DOMSelection.modify')
|
| + @DocsEditable
|
| + void modify(String alter, String direction, String granularity) native "DOMSelection_modify_Callback";
|
| +
|
| + @DomName('DOMSelection.removeAllRanges')
|
| + @DocsEditable
|
| + void removeAllRanges() native "DOMSelection_removeAllRanges_Callback";
|
| +
|
| + @DomName('DOMSelection.selectAllChildren')
|
| + @DocsEditable
|
| + void selectAllChildren(Node node) native "DOMSelection_selectAllChildren_Callback";
|
| +
|
| + @DomName('DOMSelection.setBaseAndExtent')
|
| + @DocsEditable
|
| + void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset) native "DOMSelection_setBaseAndExtent_Callback";
|
| +
|
| + @DomName('DOMSelection.setPosition')
|
| + @DocsEditable
|
| + void setPosition(Node node, int offset) native "DOMSelection_setPosition_Callback";
|
| +
|
| + @DomName('DOMSelection.toString')
|
| + @DocsEditable
|
| + String toString() native "DOMSelection_toString_Callback";
|
| +
|
| +}
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DocsEditable
|
| @DomName('HTMLShadowElement')
|
| @SupportedBrowser(SupportedBrowser.CHROME, '26')
|
| @Experimental
|
| @@ -19820,7 +19875,7 @@ class ShadowRoot extends DocumentFragment {
|
|
|
| @DomName('ShadowRoot.getSelection')
|
| @DocsEditable
|
| - DomSelection getSelection() native "ShadowRoot_getSelection_Callback";
|
| + Selection getSelection() native "ShadowRoot_getSelection_Callback";
|
|
|
| static bool get supported => _Utils.shadowRootSupported(window.document);
|
| }
|
| @@ -23341,40 +23396,6 @@ typedef void VoidCallback();
|
|
|
|
|
| @DocsEditable
|
| -@DomName('WebKitCSSFilterRule')
|
| -class WebKitCssFilterRule extends CssRule {
|
| - WebKitCssFilterRule.internal() : super.internal();
|
| -
|
| - @DomName('WebKitCSSFilterRule.style')
|
| - @DocsEditable
|
| - CssStyleDeclaration get style native "WebKitCSSFilterRule_style_Getter";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| -@DomName('WebKitCSSRegionRule')
|
| -class WebKitCssRegionRule extends CssRule {
|
| - WebKitCssRegionRule.internal() : super.internal();
|
| -
|
| - @DomName('WebKitCSSRegionRule.cssRules')
|
| - @DocsEditable
|
| - List<CssRule> get cssRules native "WebKitCSSRegionRule_cssRules_Getter";
|
| -
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| -
|
| -@DocsEditable
|
| /**
|
| * Use the WebSocket interface to connect to a WebSocket,
|
| * and to send and receive data on that WebSocket.
|
| @@ -24107,7 +24128,7 @@ class Window extends EventTarget implements WindowBase {
|
|
|
| @DomName('DOMWindow.getSelection')
|
| @DocsEditable
|
| - DomSelection getSelection() native "DOMWindow_getSelection_Callback";
|
| + Selection getSelection() native "DOMWindow_getSelection_Callback";
|
|
|
| @DomName('DOMWindow.matchMedia')
|
| @DocsEditable
|
| @@ -25717,6 +25738,9 @@ abstract class _DirectoryReaderSync extends NativeFieldWrapperClass1 {
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @SupportedBrowser(SupportedBrowser.SAFARI)
|
| @Experimental
|
| +@SupportedBrowser(SupportedBrowser.CHROME)
|
| +@SupportedBrowser(SupportedBrowser.SAFARI)
|
| +@Experimental
|
| class _DomPoint extends NativeFieldWrapperClass1 {
|
| _DomPoint.internal();
|
| factory _DomPoint(num x, num y) => _create(x, y);
|
| @@ -30288,6 +30312,7 @@ class _DocumentFragmentFactoryProvider {
|
| * on how we can make this class work with as many international keyboards as
|
| * possible. Bugs welcome!
|
| */
|
| +
|
| class KeyEvent extends _WrappedEvent implements KeyboardEvent {
|
| /** The parent KeyboardEvent that this KeyEvent is wrapping and "fixing". */
|
| KeyboardEvent _parent;
|
|
|