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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 11398002: Splitting SVG types out of dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Passing dartc. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index fd002f45d555d99b78cc7e5d4f28159723a9427c..5669906a7d62908cccb09dac1c09d7490674c8cc 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -2,6 +2,7 @@ library html;
import 'dart:isolate';
import 'dart:json';
+import 'dart:svg' as svg;
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -5324,7 +5325,7 @@ class DOMMimeTypeArray implements JavaScriptIndexingBehavior, List<DOMMimeType>
// 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<DOMMimeType>(this);
Anton Muhin 2012/11/09 13:13:23 why all those changes?
blois 2012/11/09 18:21:56 These are used by the SVG types as well. So I coul
}
// From Collection<DOMMimeType>:
@@ -5463,7 +5464,7 @@ class DOMPluginArray implements JavaScriptIndexingBehavior, List<DOMPlugin> nati
// 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);
+ return new FixedSizeListIterator<DOMPlugin>(this);
}
// From Collection<DOMPlugin>:
@@ -6387,105 +6388,6 @@ class DocumentEvents extends ElementEvents {
// BSD-style license that can be found in the LICENSE file.
-class _FilteredElementList implements List {
- final Node _node;
- final List<Node> _childNodes;
-
- _FilteredElementList(Node node): _childNodes = node.nodes, _node = node;
-
- // We can't memoize this, since it's possible that children will be messed
- // with externally to this class.
- //
- // TODO(nweiz): Do we really need to copy the list to make the types work out?
- List<Element> get _filtered =>
- new List.from(_childNodes.filter((n) => n is Element));
-
- void forEach(void f(Element element)) {
- _filtered.forEach(f);
- }
-
- void operator []=(int index, Element value) {
- this[index].replaceWith(value);
- }
-
- void set length(int newLength) {
- final len = this.length;
- if (newLength >= len) {
- return;
- } else if (newLength < 0) {
- throw new ArgumentError("Invalid list length");
- }
-
- removeRange(newLength - 1, len - newLength);
- }
-
- void add(Element value) {
- _childNodes.add(value);
- }
-
- void addAll(Collection<Element> collection) {
- collection.forEach(add);
- }
-
- void addLast(Element value) {
- add(value);
- }
-
- bool contains(Element element) {
- return element is Element && _childNodes.contains(element);
- }
-
- void sort([Comparator<Element> compare = Comparable.compare]) {
- throw new UnsupportedError('TODO(jacobr): should we impl?');
- }
-
- void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
- throw new UnimplementedError();
- }
-
- void removeRange(int start, int rangeLength) {
- _filtered.getRange(start, rangeLength).forEach((el) => el.remove());
- }
-
- void insertRange(int start, int rangeLength, [initialValue = null]) {
- throw new UnimplementedError();
- }
-
- void clear() {
- // Currently, ElementList#clear clears even non-element nodes, so we follow
- // that behavior.
- _childNodes.clear();
- }
-
- Element removeLast() {
- final result = this.last;
- if (result != null) {
- result.remove();
- }
- return result;
- }
-
- Collection map(f(Element element)) => _filtered.map(f);
- Collection<Element> filter(bool f(Element element)) => _filtered.filter(f);
- bool every(bool f(Element element)) => _filtered.every(f);
- bool some(bool f(Element element)) => _filtered.some(f);
- bool get isEmpty => _filtered.isEmpty;
- int get length => _filtered.length;
- Element operator [](int index) => _filtered[index];
- Iterator<Element> iterator() => _filtered.iterator();
- List<Element> getRange(int start, int rangeLength) =>
- _filtered.getRange(start, rangeLength);
- int indexOf(Element element, [int start = 0]) =>
- _filtered.indexOf(element, start);
-
- int lastIndexOf(Element element, [int start = null]) {
- if (start == null) start = length - 1;
- return _filtered.lastIndexOf(element, start);
- }
-
- Element get last => _filtered.last;
-}
-
Future<CSSStyleDeclaration> _emptyStyleFuture() {
return _createMeasurementFuture(() => new Element.tag('div').style,
new Completer<CSSStyleDeclaration>());
@@ -6501,14 +6403,12 @@ class EmptyElementRect implements ElementRect {
const EmptyElementRect();
}
-class _FrozenCssClassSet extends _CssClassSet {
- _FrozenCssClassSet() : super(null);
-
- void _write(Set s) {
+class _FrozenCssClassSet extends CssClassSet {
+ void writeClasses(Set s) {
throw new UnsupportedError(
'frozen class set cannot be modified');
}
- Set<String> _read() => new Set<String>();
+ Set<String> readClasses() => new Set<String>();
bool get frozen => true;
}
@@ -6519,14 +6419,14 @@ class DocumentFragment extends Node native "*DocumentFragment" {
factory DocumentFragment.html(String html) =>
_DocumentFragmentFactoryProvider.createDocumentFragment_html(html);
- factory DocumentFragment.svg(String svg) =>
- new _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svg);
+ factory DocumentFragment.svg(String svgContent) =>
+ new _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent);
List<Element> _elements;
List<Element> get elements {
if (_elements == null) {
- _elements = new _FilteredElementList(this);
+ _elements = new FilteredElementList(this);
}
return _elements;
}
@@ -7304,136 +7204,17 @@ class _DataAttributeMap extends AttributeMap {
String _strip(String key) => key.substring(5);
}
-abstract class CssClassSet implements Set<String> {
- /**
- * Adds the class [token] to the element if it is not on it, removes it if it
- * is.
- */
- bool toggle(String token);
-
- /**
- * Returns [:true:] if classes cannot be added or removed from this
- * [:CssClassSet:].
- */
- bool get frozen;
-}
-
-class _CssClassSet extends CssClassSet {
+class _ElementCssClassSet extends CssClassSet {
final Element _element;
- _CssClassSet(this._element);
-
- String toString() => _formatSet(_read());
-
- // interface Iterable - BEGIN
- Iterator<String> iterator() => _read().iterator();
- // interface Iterable - END
-
- // interface Collection - BEGIN
- void forEach(void f(String element)) {
- _read().forEach(f);
- }
-
- Collection map(f(String element)) => _read().map(f);
-
- Collection<String> filter(bool f(String element)) => _read().filter(f);
-
- bool every(bool f(String element)) => _read().every(f);
-
- bool some(bool f(String element)) => _read().some(f);
-
- bool get isEmpty => _read().isEmpty;
-
- /**
- * Returns [:true:] if classes cannot be added or removed from this
- * [:CssClassSet:].
- */
- bool get frozen => false;
-
- int get length =>_read().length;
-
- // interface Collection - END
-
- // interface Set - BEGIN
- bool contains(String value) => _read().contains(value);
-
- void add(String value) {
- // TODO - figure out if we need to do any validation here
- // or if the browser natively does enough
- _modify((s) => s.add(value));
- }
-
- bool remove(String value) {
- Set<String> s = _read();
- bool result = s.remove(value);
- _write(s);
- return result;
- }
-
- /**
- * Adds the class [token] to the element if it is not on it, removes it if it
- * is.
- */
- bool toggle(String value) {
- Set<String> s = _read();
- bool result = false;
- if (s.contains(value)) {
- s.remove(value);
- } else {
- s.add(value);
- result = true;
- }
- _write(s);
- return result;
- }
-
- void addAll(Collection<String> collection) {
- // TODO - see comment above about validation
- _modify((s) => s.addAll(collection));
- }
-
- void removeAll(Collection<String> collection) {
- _modify((s) => s.removeAll(collection));
- }
-
- bool isSubsetOf(Collection<String> collection) =>
- _read().isSubsetOf(collection);
-
- bool containsAll(Collection<String> collection) =>
- _read().containsAll(collection);
-
- Set<String> intersection(Collection<String> other) =>
- _read().intersection(other);
-
- void clear() {
- _modify((s) => s.clear());
- }
- // interface Set - END
+ _ElementCssClassSet(this._element);
- /**
- * Helper method used to modify the set of css classes on this element.
- *
- * f - callback with:
- * s - a Set of all the css class name currently on this element.
- *
- * After f returns, the modified set is written to the
- * className property of this element.
- */
- void _modify( f(Set<String> s)) {
- Set<String> s = _read();
- f(s);
- _write(s);
- }
+ Set<String> readClasses() {
+ var s = new Set<String>();
+ var classname = _element.$dom_className;
- /**
- * Read the class names from the Element class property,
- * and put them into a set (duplicates are discarded).
- */
- Set<String> _read() {
- // TODO(mattsh) simplify this once split can take regex.
- Set<String> s = new Set<String>();
- for (String name in _classname().split(' ')) {
+ for (String name in classname.split(' ')) {
String trimmed = name.trim();
if (!trimmed.isEmpty) {
s.add(trimmed);
@@ -7442,24 +7223,9 @@ class _CssClassSet extends CssClassSet {
return s;
}
- /**
- * Read the class names as a space-separated string. This is meant to be
- * overridden by subclasses.
- */
- String _classname() => _element.$dom_className;
-
- /**
- * Join all the elements of a set into one string and write
- * back to the element.
- */
- void _write(Set s) {
- _element.$dom_className = _formatSet(s);
- }
-
- String _formatSet(Set<String> s) {
- // TODO(mattsh) should be able to pass Set to String.joins http:/b/5398605
+ void writeClasses(Set<String> s) {
List list = new List.from(s);
- return Strings.join(list, ' ');
+ _element.$dom_className = Strings.join(list, ' ');
}
}
@@ -7567,7 +7333,7 @@ class Element extends Node implements ElementTraversal native "*Element" {
new _FrozenElementList._wrap($dom_querySelectorAll(selectors));
/** @domName className, classList */
- CssClassSet get classes => new _CssClassSet(this);
+ CssClassSet get classes => new _ElementCssClassSet(this);
void set classes(Collection<String> value) {
CssClassSet classSet = classes;
@@ -8916,7 +8682,7 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
// 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<num>(this);
+ return new FixedSizeListIterator<num>(this);
}
// From Collection<num>:
@@ -9025,7 +8791,7 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
// 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<num>(this);
+ return new FixedSizeListIterator<num>(this);
}
// From Collection<num>:
@@ -9391,7 +9157,7 @@ class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native
// 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<Node>(this);
+ return new FixedSizeListIterator<Node>(this);
}
// From Collection<Node>:
@@ -9494,7 +9260,7 @@ class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "*
// 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<Node>(this);
+ return new FixedSizeListIterator<Node>(this);
}
// From Collection<Node>:
@@ -11070,7 +10836,7 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
// 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<int>(this);
+ return new FixedSizeListIterator<int>(this);
}
// From Collection<int>:
@@ -11179,7 +10945,7 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
// 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<int>(this);
+ return new FixedSizeListIterator<int>(this);
}
// From Collection<int>:
@@ -11288,7 +11054,7 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
// 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<int>(this);
+ return new FixedSizeListIterator<int>(this);
}
// From Collection<int>:
@@ -13439,7 +13205,7 @@ class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na
// 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<Node>(this);
+ return new FixedSizeListIterator<Node>(this);
}
// From Collection<Node>:
@@ -14064,7 +13830,7 @@ class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
// 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<Node>(this);
+ return new FixedSizeListIterator<Node>(this);
}
// From Collection<Node>:
@@ -15755,7 +15521,7 @@ class SQLResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ
// 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<Map>(this);
+ return new FixedSizeListIterator<Map>(this);
}
// From Collection<Map>:
@@ -15897,334 +15663,431 @@ typedef void SQLTransactionSyncCallback(SQLTransactionSync transaction);
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGAElement
-class SVGAElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable native "*SVGAElement" {
-
- /** @domName SVGAElement.target */
- final SVGAnimatedString target;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGLocatable
+/// @domName Screen
+class Screen native "*Screen" {
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
+ /** @domName Screen.availHeight */
+ final int availHeight;
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
+ /** @domName Screen.availLeft */
+ final int availLeft;
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
+ /** @domName Screen.availTop */
+ final int availTop;
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
+ /** @domName Screen.availWidth */
+ final int availWidth;
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
+ /** @domName Screen.colorDepth */
+ final int colorDepth;
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
+ /** @domName Screen.height */
+ final int height;
- // From SVGStylable
+ /** @domName Screen.pixelDepth */
+ final int pixelDepth;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName Screen.width */
+ final int width;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+/// @domName HTMLScriptElement
+class ScriptElement extends Element implements Element native "*HTMLScriptElement" {
- // From SVGTests
+ factory ScriptElement() => _Elements.createScriptElement();
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
+ /** @domName HTMLScriptElement.async */
+ bool async;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+ /** @domName HTMLScriptElement.charset */
+ String charset;
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ /** @domName HTMLScriptElement.crossOrigin */
+ String crossOrigin;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ /** @domName HTMLScriptElement.defer */
+ bool defer;
- // From SVGTransformable
+ /** @domName HTMLScriptElement.event */
+ String event;
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
+ /** @domName HTMLScriptElement.htmlFor */
+ String htmlFor;
- // From SVGURIReference
+ /** @domName HTMLScriptElement.src */
+ String src;
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
+ /** @domName HTMLScriptElement.type */
+ String type;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGAltGlyphDefElement
-class SVGAltGlyphDefElement extends SVGElement native "*SVGAltGlyphDefElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGAltGlyphElement
-class SVGAltGlyphElement extends SVGTextPositioningElement implements SVGURIReference native "*SVGAltGlyphElement" {
+/// @domName ScriptProcessorNode
+class ScriptProcessorNode extends AudioNode implements EventTarget native "*ScriptProcessorNode" {
- /** @domName SVGAltGlyphElement.format */
- String format;
+ /**
+ * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
+ */
+ ScriptProcessorNodeEvents get on =>
+ new ScriptProcessorNodeEvents(this);
- /** @domName SVGAltGlyphElement.glyphRef */
- String glyphRef;
+ /** @domName ScriptProcessorNode.bufferSize */
+ final int bufferSize;
+}
- // From SVGURIReference
+class ScriptProcessorNodeEvents extends Events {
+ ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr);
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
+ EventListenerList get audioProcess => this['audioprocess'];
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGAltGlyphItemElement
-class SVGAltGlyphItemElement extends SVGElement native "*SVGAltGlyphItemElement" {
+/// @domName ScriptProfile
+class ScriptProfile native "*ScriptProfile" {
+
+ /** @domName ScriptProfile.head */
+ final ScriptProfileNode head;
+
+ /** @domName ScriptProfile.title */
+ final String title;
+
+ /** @domName ScriptProfile.uid */
+ final int uid;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGAngle
-class SVGAngle native "*SVGAngle" {
-
- static const int SVG_ANGLETYPE_DEG = 2;
-
- static const int SVG_ANGLETYPE_GRAD = 4;
+/// @domName ScriptProfileNode
+class ScriptProfileNode native "*ScriptProfileNode" {
- static const int SVG_ANGLETYPE_RAD = 3;
+ /** @domName ScriptProfileNode.callUID */
+ final int callUID;
- static const int SVG_ANGLETYPE_UNKNOWN = 0;
+ /** @domName ScriptProfileNode.functionName */
+ final String functionName;
- static const int SVG_ANGLETYPE_UNSPECIFIED = 1;
+ /** @domName ScriptProfileNode.lineNumber */
+ final int lineNumber;
- /** @domName SVGAngle.unitType */
- final int unitType;
+ /** @domName ScriptProfileNode.numberOfCalls */
+ final int numberOfCalls;
- /** @domName SVGAngle.value */
- num value;
+ /** @domName ScriptProfileNode.selfTime */
+ final num selfTime;
- /** @domName SVGAngle.valueAsString */
- String valueAsString;
+ /** @domName ScriptProfileNode.totalTime */
+ final num totalTime;
- /** @domName SVGAngle.valueInSpecifiedUnits */
- num valueInSpecifiedUnits;
+ /** @domName ScriptProfileNode.url */
+ final String url;
- /** @domName SVGAngle.convertToSpecifiedUnits */
- void convertToSpecifiedUnits(int unitType) native;
+ /** @domName ScriptProfileNode.visible */
+ final bool visible;
- /** @domName SVGAngle.newValueSpecifiedUnits */
- void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native;
+ /** @domName ScriptProfileNode.children */
+ List<ScriptProfileNode> children() native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGAnimateColorElement
-class SVGAnimateColorElement extends SVGAnimationElement native "*SVGAnimateColorElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SelectElement extends Element implements Element native "*HTMLSelectElement" {
+
+ factory SelectElement() => _Elements.createSelectElement();
+
+ /** @domName HTMLSelectElement.autofocus */
+ bool autofocus;
+
+ /** @domName HTMLSelectElement.disabled */
+ bool disabled;
+
+ /** @domName HTMLSelectElement.form */
+ final FormElement form;
+
+ /** @domName HTMLSelectElement.labels */
+ final List<Node> labels;
+
+ /** @domName HTMLSelectElement.length */
+ int length;
+
+ /** @domName HTMLSelectElement.multiple */
+ bool multiple;
+
+ /** @domName HTMLSelectElement.name */
+ String name;
+
+ /** @domName HTMLSelectElement.required */
+ bool required;
+
+ /** @domName HTMLSelectElement.selectedIndex */
+ int selectedIndex;
+
+ /** @domName HTMLSelectElement.size */
+ int size;
+
+ /** @domName HTMLSelectElement.type */
+ final String type;
+
+ /** @domName HTMLSelectElement.validationMessage */
+ final String validationMessage;
+
+ /** @domName HTMLSelectElement.validity */
+ final ValidityState validity;
+ /** @domName HTMLSelectElement.value */
+ String value;
+
+ /** @domName HTMLSelectElement.willValidate */
+ final bool willValidate;
+
+ /** @domName HTMLSelectElement.checkValidity */
+ bool checkValidity() native;
+
+ /** @domName HTMLSelectElement.item */
+ Node item(int index) native;
+
+ /** @domName HTMLSelectElement.namedItem */
+ Node namedItem(String name) native;
+
+ /** @domName HTMLSelectElement.setCustomValidity */
+ void setCustomValidity(String error) native;
+
+
+ // Override default options, since IE returns SelectElement itself and it
+ // does not operate as a List.
+ List<OptionElement> get options {
+ return this.elements.filter((e) => e is OptionElement);
+ }
-/// @domName SVGAnimateElement
-class SVGAnimateElement extends SVGAnimationElement native "*SVGAnimateElement" {
+ List<OptionElement> get selectedOptions {
+ // IE does not change the selected flag for single-selection items.
+ if (this.multiple) {
+ return this.options.filter((o) => o.selected);
+ } else {
+ return [this.options[this.selectedIndex]];
+ }
+ }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGAnimateMotionElement
-class SVGAnimateMotionElement extends SVGAnimationElement native "*SVGAnimateMotionElement" {
+/// @domName SessionDescription
+class SessionDescription native "*SessionDescription" {
+
+ factory SessionDescription(String sdp) => _SessionDescriptionFactoryProvider.createSessionDescription(sdp);
+
+ /** @domName SessionDescription.addCandidate */
+ void addCandidate(IceCandidate candidate) native;
+
+ /** @domName SessionDescription.toSdp */
+ String toSdp() native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGAnimateTransformElement
-class SVGAnimateTransformElement extends SVGAnimationElement native "*SVGAnimateTransformElement" {
+/// @domName HTMLShadowElement
+class ShadowElement extends Element implements Element native "*HTMLShadowElement" {
+
+ /** @domName HTMLShadowElement.resetStyleInheritance */
+ bool resetStyleInheritance;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+// WARNING: Do not edit - generated code.
+
-/// @domName SVGAnimatedAngle
-class SVGAnimatedAngle native "*SVGAnimatedAngle" {
+class ShadowRoot extends DocumentFragment native "*ShadowRoot" {
- /** @domName SVGAnimatedAngle.animVal */
- final SVGAngle animVal;
+ factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoot(host);
- /** @domName SVGAnimatedAngle.baseVal */
- final SVGAngle baseVal;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 ShadowRoot.activeElement */
+ final Element activeElement;
+
+ /** @domName ShadowRoot.applyAuthorStyles */
+ bool applyAuthorStyles;
+
+ /** @domName ShadowRoot.innerHTML */
+ String innerHTML;
+
+ /** @domName ShadowRoot.resetStyleInheritance */
+ bool resetStyleInheritance;
+
+ /** @domName ShadowRoot.cloneNode */
+ Node clone(bool deep) native "cloneNode";
+
+ /** @domName ShadowRoot.getElementById */
+ Element $dom_getElementById(String elementId) native "getElementById";
+ /** @domName ShadowRoot.getElementsByClassName */
+ List<Node> $dom_getElementsByClassName(String className) native "getElementsByClassName";
-/// @domName SVGAnimatedBoolean
-class SVGAnimatedBoolean native "*SVGAnimatedBoolean" {
+ /** @domName ShadowRoot.getElementsByTagName */
+ List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagName";
- /** @domName SVGAnimatedBoolean.animVal */
- final bool animVal;
+ /** @domName ShadowRoot.getSelection */
+ DOMSelection getSelection() native;
- /** @domName SVGAnimatedBoolean.baseVal */
- bool baseVal;
+ static bool get supported =>
+ JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)');
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGAnimatedEnumeration
-class SVGAnimatedEnumeration native "*SVGAnimatedEnumeration" {
+/// @domName SharedWorker
+class SharedWorker extends AbstractWorker native "*SharedWorker" {
- /** @domName SVGAnimatedEnumeration.animVal */
- final int animVal;
+ factory SharedWorker(String scriptURL, [String name]) {
+ if (!?name) {
+ return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL);
+ }
+ return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL, name);
+ }
- /** @domName SVGAnimatedEnumeration.baseVal */
- int baseVal;
+ /** @domName SharedWorker.port */
+ final MessagePort port;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGAnimatedInteger
-class SVGAnimatedInteger native "*SVGAnimatedInteger" {
+/// @domName SharedWorkerContext
+class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" {
+
+ /**
+ * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
+ */
+ SharedWorkerContextEvents get on =>
+ new SharedWorkerContextEvents(this);
+
+ /** @domName SharedWorkerContext.name */
+ final String name;
+}
- /** @domName SVGAnimatedInteger.animVal */
- final int animVal;
+class SharedWorkerContextEvents extends WorkerContextEvents {
+ SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
- /** @domName SVGAnimatedInteger.baseVal */
- int baseVal;
+ EventListenerList get connect => this['connect'];
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGAnimatedLength
-class SVGAnimatedLength native "*SVGAnimatedLength" {
+/// @domName SourceBuffer
+class SourceBuffer native "*SourceBuffer" {
+
+ /** @domName SourceBuffer.buffered */
+ final TimeRanges buffered;
+
+ /** @domName SourceBuffer.timestampOffset */
+ num timestampOffset;
- /** @domName SVGAnimatedLength.animVal */
- final SVGLength animVal;
+ /** @domName SourceBuffer.abort */
+ void abort() native;
- /** @domName SVGAnimatedLength.baseVal */
- final SVGLength baseVal;
+ /** @domName SourceBuffer.append */
+ void append(Uint8Array data) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGAnimatedLengthList
-class SVGAnimatedLengthList implements JavaScriptIndexingBehavior, List<SVGAnimatedLength> native "*SVGAnimatedLengthList" {
-
- /** @domName SVGAnimatedLengthList.animVal */
- final SVGLengthList animVal;
+/// @domName SourceBufferList
+class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior, List<SourceBuffer> native "*SourceBufferList" {
- /** @domName SVGAnimatedLengthList.baseVal */
- final SVGLengthList baseVal;
+ /** @domName SourceBufferList.length */
+ final int length;
- SVGAnimatedLength operator[](int index) => JS("SVGAnimatedLength", "#[#]", this, index);
+ SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index);
- void operator[]=(int index, SVGAnimatedLength value) {
+ void operator[]=(int index, SourceBuffer value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
- // -- start List<SVGAnimatedLength> mixins.
- // SVGAnimatedLength is the element type.
+ // -- start List<SourceBuffer> mixins.
+ // SourceBuffer is the element type.
- // From Iterable<SVGAnimatedLength>:
+ // From Iterable<SourceBuffer>:
- Iterator<SVGAnimatedLength> iterator() {
+ Iterator<SourceBuffer> 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<SVGAnimatedLength>(this);
+ return new FixedSizeListIterator<SourceBuffer>(this);
}
- // From Collection<SVGAnimatedLength>:
+ // From Collection<SourceBuffer>:
- void add(SVGAnimatedLength value) {
+ void add(SourceBuffer value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
- void addLast(SVGAnimatedLength value) {
+ void addLast(SourceBuffer value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
- void addAll(Collection<SVGAnimatedLength> collection) {
+ void addAll(Collection<SourceBuffer> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
- bool contains(SVGAnimatedLength element) => _Collections.contains(this, element);
+ bool contains(SourceBuffer element) => _Collections.contains(this, element);
- void forEach(void f(SVGAnimatedLength element)) => _Collections.forEach(this, f);
+ void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f);
- Collection map(f(SVGAnimatedLength element)) => _Collections.map(this, [], f);
+ Collection map(f(SourceBuffer element)) => _Collections.map(this, [], f);
- Collection<SVGAnimatedLength> filter(bool f(SVGAnimatedLength element)) =>
- _Collections.filter(this, <SVGAnimatedLength>[], f);
+ Collection<SourceBuffer> filter(bool f(SourceBuffer element)) =>
+ _Collections.filter(this, <SourceBuffer>[], f);
- bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f);
+ bool every(bool f(SourceBuffer element)) => _Collections.every(this, f);
- bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f);
+ bool some(bool f(SourceBuffer element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
- // From List<SVGAnimatedLength>:
+ // From List<SourceBuffer>:
- void sort([Comparator<SVGAnimatedLength> compare = Comparable.compare]) {
+ void sort([Comparator<SourceBuffer> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
- int indexOf(SVGAnimatedLength element, [int start = 0]) =>
+ int indexOf(SourceBuffer element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
- int lastIndexOf(SVGAnimatedLength element, [int start]) {
+ int lastIndexOf(SourceBuffer element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
- SVGAnimatedLength get last => this[length - 1];
+ SourceBuffer get last => this[length - 1];
- SVGAnimatedLength removeLast() {
+ SourceBuffer removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
- void setRange(int start, int rangeLength, List<SVGAnimatedLength> from, [int startFrom]) {
+ void setRange(int start, int rangeLength, List<SourceBuffer> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
@@ -16232,249 +16095,152 @@ class SVGAnimatedLengthList implements JavaScriptIndexingBehavior, List<SVGAnima
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [SVGAnimatedLength initialValue]) {
+ void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
- List<SVGAnimatedLength> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGAnimatedLength>[]);
+ List<SourceBuffer> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <SourceBuffer>[]);
- // -- end List<SVGAnimatedLength> mixins.
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ // -- end List<SourceBuffer> mixins.
+ /** @domName SourceBufferList.addEventListener */
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener";
-/// @domName SVGAnimatedNumber
-class SVGAnimatedNumber native "*SVGAnimatedNumber" {
+ /** @domName SourceBufferList.dispatchEvent */
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent";
- /** @domName SVGAnimatedNumber.animVal */
- final num animVal;
+ /** @domName SourceBufferList.item */
+ SourceBuffer item(int index) native;
- /** @domName SVGAnimatedNumber.baseVal */
- num baseVal;
+ /** @domName SourceBufferList.removeEventListener */
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener";
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGAnimatedNumberList
-class SVGAnimatedNumberList implements JavaScriptIndexingBehavior, List<SVGAnimatedNumber> native "*SVGAnimatedNumberList" {
-
- /** @domName SVGAnimatedNumberList.animVal */
- final SVGNumberList animVal;
-
- /** @domName SVGAnimatedNumberList.baseVal */
- final SVGNumberList baseVal;
-
- SVGAnimatedNumber operator[](int index) => JS("SVGAnimatedNumber", "#[#]", this, index);
-
- void operator[]=(int index, SVGAnimatedNumber value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<SVGAnimatedNumber> mixins.
- // SVGAnimatedNumber is the element type.
-
- // From Iterable<SVGAnimatedNumber>:
-
- Iterator<SVGAnimatedNumber> 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<SVGAnimatedNumber>(this);
- }
-
- // From Collection<SVGAnimatedNumber>:
-
- void add(SVGAnimatedNumber value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(SVGAnimatedNumber value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGAnimatedNumber> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(SVGAnimatedNumber element) => _Collections.contains(this, element);
-
- void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGAnimatedNumber element)) => _Collections.map(this, [], f);
-
- Collection<SVGAnimatedNumber> filter(bool f(SVGAnimatedNumber element)) =>
- _Collections.filter(this, <SVGAnimatedNumber>[], f);
-
- bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<SVGAnimatedNumber>:
-
- void sort([Comparator<SVGAnimatedNumber> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(SVGAnimatedNumber element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGAnimatedNumber element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGAnimatedNumber get last => this[length - 1];
-
- SVGAnimatedNumber removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<SVGAnimatedNumber> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
+/// @domName HTMLSourceElement
+class SourceElement extends Element implements Element native "*HTMLSourceElement" {
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
+ factory SourceElement() => _Elements.createSourceElement();
- void insertRange(int start, int rangeLength, [SVGAnimatedNumber initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
+ /** @domName HTMLSourceElement.media */
+ String media;
- List<SVGAnimatedNumber> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGAnimatedNumber>[]);
+ /** @domName HTMLSourceElement.src */
+ String src;
- // -- end List<SVGAnimatedNumber> mixins.
+ /** @domName HTMLSourceElement.type */
+ String type;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGAnimatedPreserveAspectRatio
-class SVGAnimatedPreserveAspectRatio native "*SVGAnimatedPreserveAspectRatio" {
-
- /** @domName SVGAnimatedPreserveAspectRatio.animVal */
- final SVGPreserveAspectRatio animVal;
+/// @domName HTMLSpanElement
+class SpanElement extends Element implements Element native "*HTMLSpanElement" {
- /** @domName SVGAnimatedPreserveAspectRatio.baseVal */
- final SVGPreserveAspectRatio baseVal;
+ factory SpanElement() => _Elements.createSpanElement();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGAnimatedRect
-class SVGAnimatedRect native "*SVGAnimatedRect" {
-
- /** @domName SVGAnimatedRect.animVal */
- final SVGRect animVal;
-
- /** @domName SVGAnimatedRect.baseVal */
- final SVGRect baseVal;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SpeechGrammar
+class SpeechGrammar native "*SpeechGrammar" {
-/// @domName SVGAnimatedString
-class SVGAnimatedString native "*SVGAnimatedString" {
+ factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar();
- /** @domName SVGAnimatedString.animVal */
- final String animVal;
+ /** @domName SpeechGrammar.src */
+ String src;
- /** @domName SVGAnimatedString.baseVal */
- String baseVal;
+ /** @domName SpeechGrammar.weight */
+ num weight;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGAnimatedTransformList
-class SVGAnimatedTransformList implements JavaScriptIndexingBehavior, List<SVGAnimateTransformElement> native "*SVGAnimatedTransformList" {
+/// @domName SpeechGrammarList
+class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGrammar> native "*SpeechGrammarList" {
- /** @domName SVGAnimatedTransformList.animVal */
- final SVGTransformList animVal;
+ factory SpeechGrammarList() => _SpeechGrammarListFactoryProvider.createSpeechGrammarList();
- /** @domName SVGAnimatedTransformList.baseVal */
- final SVGTransformList baseVal;
+ /** @domName SpeechGrammarList.length */
+ final int length;
- SVGAnimateTransformElement operator[](int index) => JS("SVGAnimateTransformElement", "#[#]", this, index);
+ SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index);
- void operator[]=(int index, SVGAnimateTransformElement value) {
+ void operator[]=(int index, SpeechGrammar value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
- // -- start List<SVGAnimateTransformElement> mixins.
- // SVGAnimateTransformElement is the element type.
+ // -- start List<SpeechGrammar> mixins.
+ // SpeechGrammar is the element type.
- // From Iterable<SVGAnimateTransformElement>:
+ // From Iterable<SpeechGrammar>:
- Iterator<SVGAnimateTransformElement> iterator() {
+ Iterator<SpeechGrammar> 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<SVGAnimateTransformElement>(this);
+ return new FixedSizeListIterator<SpeechGrammar>(this);
}
- // From Collection<SVGAnimateTransformElement>:
+ // From Collection<SpeechGrammar>:
- void add(SVGAnimateTransformElement value) {
+ void add(SpeechGrammar value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
- void addLast(SVGAnimateTransformElement value) {
+ void addLast(SpeechGrammar value) {
throw new UnsupportedError("Cannot add to immutable List.");
}
- void addAll(Collection<SVGAnimateTransformElement> collection) {
+ void addAll(Collection<SpeechGrammar> collection) {
throw new UnsupportedError("Cannot add to immutable List.");
}
- bool contains(SVGAnimateTransformElement element) => _Collections.contains(this, element);
+ bool contains(SpeechGrammar element) => _Collections.contains(this, element);
- void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEach(this, f);
+ void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f);
- Collection map(f(SVGAnimateTransformElement element)) => _Collections.map(this, [], f);
+ Collection map(f(SpeechGrammar element)) => _Collections.map(this, [], f);
- Collection<SVGAnimateTransformElement> filter(bool f(SVGAnimateTransformElement element)) =>
- _Collections.filter(this, <SVGAnimateTransformElement>[], f);
+ Collection<SpeechGrammar> filter(bool f(SpeechGrammar element)) =>
+ _Collections.filter(this, <SpeechGrammar>[], f);
- bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(this, f);
+ bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f);
- bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(this, f);
+ bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
- // From List<SVGAnimateTransformElement>:
+ // From List<SpeechGrammar>:
- void sort([Comparator<SVGAnimateTransformElement> compare = Comparable.compare]) {
+ void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
- int indexOf(SVGAnimateTransformElement element, [int start = 0]) =>
+ int indexOf(SpeechGrammar element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
- int lastIndexOf(SVGAnimateTransformElement element, [int start]) {
+ int lastIndexOf(SpeechGrammar element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
- SVGAnimateTransformElement get last => this[length - 1];
+ SpeechGrammar get last => this[length - 1];
- SVGAnimateTransformElement removeLast() {
+ SpeechGrammar removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
- void setRange(int start, int rangeLength, List<SVGAnimateTransformElement> from, [int startFrom]) {
+ void setRange(int start, int rangeLength, List<SpeechGrammar> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
@@ -16482,8873 +16248,3001 @@ class SVGAnimatedTransformList implements JavaScriptIndexingBehavior, List<SVGAn
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [SVGAnimateTransformElement initialValue]) {
+ void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
- List<SVGAnimateTransformElement> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGAnimateTransformElement>[]);
+ List<SpeechGrammar> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]);
+
+ // -- end List<SpeechGrammar> mixins.
+
+ /** @domName SpeechGrammarList.addFromString */
+ void addFromString(String string, [num weight]) native;
+
+ /** @domName SpeechGrammarList.addFromUri */
+ void addFromUri(String src, [num weight]) native;
- // -- end List<SVGAnimateTransformElement> mixins.
+ /** @domName SpeechGrammarList.item */
+ SpeechGrammar item(int index) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGAnimationElement
-class SVGAnimationElement extends SVGElement implements ElementTimeControl, SVGTests, SVGExternalResourcesRequired native "*SVGAnimationElement" {
-
- /** @domName SVGAnimationElement.targetElement */
- final SVGElement targetElement;
-
- /** @domName SVGAnimationElement.getCurrentTime */
- num getCurrentTime() native;
-
- /** @domName SVGAnimationElement.getSimpleDuration */
- num getSimpleDuration() native;
-
- /** @domName SVGAnimationElement.getStartTime */
- num getStartTime() native;
-
- // From ElementTimeControl
-
- /** @domName ElementTimeControl.beginElement */
- void beginElement() native;
-
- /** @domName ElementTimeControl.beginElementAt */
- void beginElementAt(num offset) native;
-
- /** @domName ElementTimeControl.endElement */
- void endElement() native;
-
- /** @domName ElementTimeControl.endElementAt */
- void endElementAt(num offset) native;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+/// @domName SpeechInputEvent
+class SpeechInputEvent extends Event native "*SpeechInputEvent" {
- // From SVGTests
+ /** @domName SpeechInputEvent.results */
+ final List<SpeechInputResult> results;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+/// @domName SpeechInputResult
+class SpeechInputResult native "*SpeechInputResult" {
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ /** @domName SpeechInputResult.confidence */
+ final num confidence;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ /** @domName SpeechInputResult.utterance */
+ final String utterance;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGCircleElement
-class SVGCircleElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGCircleElement" {
-
- /** @domName SVGCircleElement.cx */
- final SVGAnimatedLength cx;
+/// @domName SpeechRecognition
+class SpeechRecognition extends EventTarget native "*SpeechRecognition" {
- /** @domName SVGCircleElement.cy */
- final SVGAnimatedLength cy;
+ factory SpeechRecognition() => _SpeechRecognitionFactoryProvider.createSpeechRecognition();
- /** @domName SVGCircleElement.r */
- final SVGAnimatedLength r;
+ /**
+ * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
+ */
+ SpeechRecognitionEvents get on =>
+ new SpeechRecognitionEvents(this);
- // From SVGExternalResourcesRequired
+ /** @domName SpeechRecognition.continuous */
+ bool continuous;
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ /** @domName SpeechRecognition.grammars */
+ SpeechGrammarList grammars;
- // From SVGLangSpace
+ /** @domName SpeechRecognition.interimResults */
+ bool interimResults;
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ /** @domName SpeechRecognition.lang */
+ String lang;
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ /** @domName SpeechRecognition.maxAlternatives */
+ int maxAlternatives;
- // From SVGLocatable
+ /** @domName SpeechRecognition.abort */
+ void abort() native;
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
+ /** @domName SpeechRecognition.addEventListener */
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener";
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
+ /** @domName SpeechRecognition.dispatchEvent */
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
+ /** @domName SpeechRecognition.removeEventListener */
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener";
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
+ /** @domName SpeechRecognition.start */
+ void start() native;
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
+ /** @domName SpeechRecognition.stop */
+ void stop() native;
+}
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
+class SpeechRecognitionEvents extends Events {
+ SpeechRecognitionEvents(EventTarget _ptr) : super(_ptr);
- // From SVGStylable
+ EventListenerList get audioEnd => this['audioend'];
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ EventListenerList get audioStart => this['audiostart'];
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ EventListenerList get end => this['end'];
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ EventListenerList get error => this['error'];
- // From SVGTests
+ EventListenerList get noMatch => this['nomatch'];
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
+ EventListenerList get result => this['result'];
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+ EventListenerList get soundEnd => this['soundend'];
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ EventListenerList get soundStart => this['soundstart'];
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ EventListenerList get speechEnd => this['speechend'];
- // From SVGTransformable
+ EventListenerList get speechStart => this['speechstart'];
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
+ EventListenerList get start => this['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.
-/// @domName SVGClipPathElement
-class SVGClipPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGClipPathElement" {
-
- /** @domName SVGClipPathElement.clipPathUnits */
- final SVGAnimatedEnumeration clipPathUnits;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGLocatable
-
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
-
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
+/// @domName SpeechRecognitionAlternative
+class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" {
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
+ /** @domName SpeechRecognitionAlternative.confidence */
+ final num confidence;
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
+ /** @domName SpeechRecognitionAlternative.transcript */
+ final String transcript;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
+/// @domName SpeechRecognitionError
+class SpeechRecognitionError extends Event native "*SpeechRecognitionError" {
- // From SVGStylable
+ static const int ABORTED = 2;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ static const int AUDIO_CAPTURE = 3;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ static const int BAD_GRAMMAR = 7;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ static const int LANGUAGE_NOT_SUPPORTED = 8;
- // From SVGTests
+ static const int NETWORK = 4;
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
+ static const int NOT_ALLOWED = 5;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+ static const int NO_SPEECH = 1;
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ static const int OTHER = 0;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ static const int SERVICE_NOT_ALLOWED = 6;
- // From SVGTransformable
+ /** @domName SpeechRecognitionError.code */
+ final int code;
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
+ /** @domName SpeechRecognitionError.message */
+ final String message;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGColor
-class SVGColor extends CSSValue native "*SVGColor" {
+/// @domName SpeechRecognitionEvent
+class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" {
- static const int SVG_COLORTYPE_CURRENTCOLOR = 3;
+ /** @domName SpeechRecognitionEvent.result */
+ final SpeechRecognitionResult result;
- static const int SVG_COLORTYPE_RGBCOLOR = 1;
+ /** @domName SpeechRecognitionEvent.resultHistory */
+ final List<SpeechRecognitionResult> resultHistory;
- static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
+ /** @domName SpeechRecognitionEvent.resultIndex */
+ final int resultIndex;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- static const int SVG_COLORTYPE_UNKNOWN = 0;
- /** @domName SVGColor.colorType */
- final int colorType;
+/// @domName SpeechRecognitionResult
+class SpeechRecognitionResult native "*SpeechRecognitionResult" {
- /** @domName SVGColor.rgbColor */
- final RGBColor rgbColor;
+ /** @domName SpeechRecognitionResult.emma */
+ final Document emma;
- /** @domName SVGColor.setColor */
- void setColor(int colorType, String rgbColor, String iccColor) native;
+ /** @domName SpeechRecognitionResult.finalValue */
+ bool get finalValue => JS("bool", "#.final", this);
- /** @domName SVGColor.setRGBColor */
- void setRGBColor(String rgbColor) native;
+ /** @domName SpeechRecognitionResult.length */
+ final int length;
- /** @domName SVGColor.setRGBColorICCColor */
- void setRGBColorICCColor(String rgbColor, String iccColor) native;
+ /** @domName SpeechRecognitionResult.item */
+ SpeechRecognitionAlternative item(int index) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGComponentTransferFunctionElement
-class SVGComponentTransferFunctionElement extends SVGElement native "*SVGComponentTransferFunctionElement" {
+class Storage implements Map<String, String> native "*Storage" {
- static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3;
+ // TODO(nweiz): update this when maps support lazy iteration
+ bool containsValue(String value) => values.some((e) => e == value);
- static const int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5;
+ bool containsKey(String key) => $dom_getItem(key) != null;
+
+ String operator [](String key) => $dom_getItem(key);
+
+ void operator []=(String key, String value) => $dom_setItem(key, value);
+
+ String putIfAbsent(String key, String ifAbsent()) {
+ if (!containsKey(key)) this[key] = ifAbsent();
+ return this[key];
+ }
+
+ String remove(String key) {
+ final value = this[key];
+ $dom_removeItem(key);
+ return value;
+ }
- static const int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1;
+ void clear() => $dom_clear();
+
+ void forEach(void f(String key, String value)) {
+ for (var i = 0; true; i++) {
+ final key = $dom_key(i);
+ if (key == null) return;
+
+ f(key, this[key]);
+ }
+ }
+
+ Collection<String> get keys {
+ final keys = [];
+ forEach((k, v) => keys.add(k));
+ return keys;
+ }
- static const int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4;
+ Collection<String> get values {
+ final values = [];
+ forEach((k, v) => values.add(v));
+ return values;
+ }
- static const int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2;
+ int get length => $dom_length;
- static const int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0;
+ bool get isEmpty => $dom_key(0) == null;
- /** @domName SVGComponentTransferFunctionElement.amplitude */
- final SVGAnimatedNumber amplitude;
+ /** @domName Storage.length */
+ int get $dom_length => JS("int", "#.length", this);
- /** @domName SVGComponentTransferFunctionElement.exponent */
- final SVGAnimatedNumber exponent;
+ /** @domName Storage.clear */
+ void $dom_clear() native "clear";
- /** @domName SVGComponentTransferFunctionElement.intercept */
- final SVGAnimatedNumber intercept;
+ /** @domName Storage.getItem */
+ String $dom_getItem(String key) native "getItem";
- /** @domName SVGComponentTransferFunctionElement.offset */
- final SVGAnimatedNumber offset;
+ /** @domName Storage.key */
+ String $dom_key(int index) native "key";
- /** @domName SVGComponentTransferFunctionElement.slope */
- final SVGAnimatedNumber slope;
+ /** @domName Storage.removeItem */
+ void $dom_removeItem(String key) native "removeItem";
- /** @domName SVGComponentTransferFunctionElement.tableValues */
- final SVGAnimatedNumberList tableValues;
+ /** @domName Storage.setItem */
+ void $dom_setItem(String key, String data) native "setItem";
- /** @domName SVGComponentTransferFunctionElement.type */
- final SVGAnimatedEnumeration 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.
-/// @domName SVGCursorElement
-class SVGCursorElement extends SVGElement implements SVGURIReference, SVGTests, SVGExternalResourcesRequired native "*SVGCursorElement" {
+/// @domName StorageEvent
+class StorageEvent extends Event native "*StorageEvent" {
+
+ /** @domName StorageEvent.key */
+ final String key;
- /** @domName SVGCursorElement.x */
- final SVGAnimatedLength x;
+ /** @domName StorageEvent.newValue */
+ final String newValue;
- /** @domName SVGCursorElement.y */
- final SVGAnimatedLength y;
+ /** @domName StorageEvent.oldValue */
+ final String oldValue;
- // From SVGExternalResourcesRequired
+ /** @domName StorageEvent.storageArea */
+ final Storage storageArea;
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ /** @domName StorageEvent.url */
+ final String url;
- // From SVGTests
+ /** @domName StorageEvent.initStorageEvent */
+ void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg) native;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+/// @domName StorageInfo
+class StorageInfo native "*StorageInfo" {
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ static const int PERSISTENT = 1;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ static const int TEMPORARY = 0;
- // From SVGURIReference
+ /** @domName StorageInfo.queryUsageAndQuota */
+ void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallback, StorageInfoErrorCallback errorCallback]) native;
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
+ /** @domName StorageInfo.requestQuota */
+ void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallback quotaCallback, StorageInfoErrorCallback errorCallback]) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+// WARNING: Do not edit - generated code.
-/// @domName SVGDefsElement
-class SVGDefsElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGDefsElement" {
-
- // From SVGExternalResourcesRequired
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+typedef void StorageInfoErrorCallback(DOMException error);
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- // From SVGLangSpace
+// WARNING: Do not edit - generated code.
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+typedef void StorageInfoQuotaCallback(int grantedQuotaInBytes);
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGLocatable
+// WARNING: Do not edit - generated code.
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
+typedef void StorageInfoUsageCallback(int currentUsageInBytes, int currentQuotaInBytes);
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGLocatable.getBBox */
- SVGRect getBBox() native;
+// WARNING: Do not edit - generated code.
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
+typedef void StringCallback(String data);
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
- // From SVGStylable
+/// @domName HTMLStyleElement
+class StyleElement extends Element implements Element native "*HTMLStyleElement" {
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ factory StyleElement() => _Elements.createStyleElement();
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName HTMLStyleElement.disabled */
+ bool disabled;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName HTMLStyleElement.media */
+ String media;
- // From SVGTests
+ /** @domName HTMLStyleElement.scoped */
+ bool scoped;
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
+ /** @domName HTMLStyleElement.sheet */
+ final StyleSheet sheet;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+ /** @domName HTMLStyleElement.type */
+ String type;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+/// @domName StyleMedia
+class StyleMedia native "*StyleMedia" {
- // From SVGTransformable
+ /** @domName StyleMedia.type */
+ final String type;
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
+ /** @domName StyleMedia.matchMedium */
+ bool matchMedium(String mediaquery) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGDescElement
-class SVGDescElement extends SVGElement implements SVGLangSpace, SVGStylable native "*SVGDescElement" {
+/// @domName StyleSheet
+class StyleSheet native "*StyleSheet" {
- // From SVGLangSpace
+ /** @domName StyleSheet.disabled */
+ bool disabled;
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ /** @domName StyleSheet.href */
+ final String href;
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ /** @domName StyleSheet.media */
+ final MediaList media;
- // From SVGStylable
+ /** @domName StyleSheet.ownerNode */
+ final Node ownerNode;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName StyleSheet.parentStyleSheet */
+ final StyleSheet parentStyleSheet;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName StyleSheet.title */
+ final String title;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName StyleSheet.type */
+ final String type;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGDocument
-class SVGDocument extends Document native "*SVGDocument" {
+/// @domName HTMLTableCaptionElement
+class TableCaptionElement extends Element implements Element native "*HTMLTableCaptionElement" {
- /** @domName SVGDocument.rootElement */
- final SVGSVGElement rootElement;
+ factory TableCaptionElement() => _Elements.createTableCaptionElement();
- /** @domName SVGDocument.createEvent */
- Event $dom_createEvent(String eventType) native "createEvent";
+ /** @domName HTMLTableCaptionElement.align */
+ String align;
}
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class _AttributeClassSet extends _CssClassSet {
- _AttributeClassSet(element) : super(element);
+/// @domName HTMLTableCellElement
+class TableCellElement extends Element implements Element native "*HTMLTableCellElement" {
- String $dom_className() => _element.attributes['class'];
+ factory TableCellElement() => _Elements.createTableCellElement();
- void _write(Set s) {
- _element.attributes['class'] = _formatSet(s);
- }
-}
+ /** @domName HTMLTableCellElement.abbr */
+ String abbr;
-class SVGElement extends Element native "*SVGElement" {
- factory SVGElement.tag(String tag) =>
- _SVGElementFactoryProvider.createSVGElement_tag(tag);
- factory SVGElement.svg(String svg) =>
- _SVGElementFactoryProvider.createSVGElement_svg(svg);
+ /** @domName HTMLTableCellElement.align */
+ String align;
- CssClassSet get classes {
- if (_cssClassSet == null) {
- _cssClassSet = new _AttributeClassSet(_ptr);
- }
- return _cssClassSet;
- }
+ /** @domName HTMLTableCellElement.axis */
+ String axis;
- List<Element> get elements => new _FilteredElementList(this);
+ /** @domName HTMLTableCellElement.bgColor */
+ String bgColor;
- void set elements(Collection<Element> value) {
- final elements = this.elements;
- elements.clear();
- elements.addAll(value);
- }
+ /** @domName HTMLTableCellElement.cellIndex */
+ final int cellIndex;
- String get outerHTML {
- final container = new Element.tag("div");
- final SVGElement cloned = this.clone(true);
- container.elements.add(cloned);
- return container.innerHTML;
- }
+ /** @domName HTMLTableCellElement.ch */
+ String ch;
- String get innerHTML {
- final container = new Element.tag("div");
- final SVGElement cloned = this.clone(true);
- container.elements.addAll(cloned.elements);
- return container.innerHTML;
- }
+ /** @domName HTMLTableCellElement.chOff */
+ String chOff;
- void set innerHTML(String svg) {
- final container = new Element.tag("div");
- // Wrap the SVG string in <svg> so that SVGElements are created, rather than
- // HTMLElements.
- container.innerHTML = '<svg version="1.1">$svg</svg>';
- this.elements = container.elements[0].elements;
- }
+ /** @domName HTMLTableCellElement.colSpan */
+ int colSpan;
+ /** @domName HTMLTableCellElement.headers */
+ String headers;
- // Shadowing definition.
- /** @domName SVGElement.id */
- String get id => JS("String", "#.id", this);
+ /** @domName HTMLTableCellElement.height */
+ String height;
- /** @domName SVGElement.id */
- void set id(String value) {
- JS("void", "#.id = #", this, value);
- }
+ /** @domName HTMLTableCellElement.noWrap */
+ bool noWrap;
- /** @domName SVGElement.ownerSVGElement */
- final SVGSVGElement ownerSVGElement;
+ /** @domName HTMLTableCellElement.rowSpan */
+ int rowSpan;
- /** @domName SVGElement.viewportElement */
- final SVGElement viewportElement;
+ /** @domName HTMLTableCellElement.scope */
+ String scope;
- /** @domName SVGElement.xmlbase */
- String xmlbase;
+ /** @domName HTMLTableCellElement.vAlign */
+ String vAlign;
+ /** @domName HTMLTableCellElement.width */
+ String width;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGElementInstance
-class SVGElementInstance extends EventTarget native "*SVGElementInstance" {
-
- /**
- * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
- */
- SVGElementInstanceEvents get on =>
- new SVGElementInstanceEvents(this);
-
- /** @domName SVGElementInstance.childNodes */
- final List<SVGElementInstance> childNodes;
+/// @domName HTMLTableColElement
+class TableColElement extends Element implements Element native "*HTMLTableColElement" {
- /** @domName SVGElementInstance.correspondingElement */
- final SVGElement correspondingElement;
+ factory TableColElement() => _Elements.createTableColElement();
- /** @domName SVGElementInstance.correspondingUseElement */
- final SVGUseElement correspondingUseElement;
+ /** @domName HTMLTableColElement.align */
+ String align;
- /** @domName SVGElementInstance.firstChild */
- final SVGElementInstance firstChild;
+ /** @domName HTMLTableColElement.ch */
+ String ch;
- /** @domName SVGElementInstance.lastChild */
- final SVGElementInstance lastChild;
+ /** @domName HTMLTableColElement.chOff */
+ String chOff;
- /** @domName SVGElementInstance.nextSibling */
- final SVGElementInstance nextSibling;
+ /** @domName HTMLTableColElement.span */
+ int span;
- /** @domName SVGElementInstance.parentNode */
- final SVGElementInstance parentNode;
+ /** @domName HTMLTableColElement.vAlign */
+ String vAlign;
- /** @domName SVGElementInstance.previousSibling */
- final SVGElementInstance previousSibling;
+ /** @domName HTMLTableColElement.width */
+ String width;
}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
-class SVGElementInstanceEvents extends Events {
- SVGElementInstanceEvents(EventTarget _ptr) : super(_ptr);
- EventListenerList get abort => this['abort'];
+class TableElement extends Element implements Element native "*HTMLTableElement" {
- EventListenerList get beforeCopy => this['beforecopy'];
+ factory TableElement() => _Elements.createTableElement();
- EventListenerList get beforeCut => this['beforecut'];
+ /** @domName HTMLTableElement.align */
+ String align;
- EventListenerList get beforePaste => this['beforepaste'];
+ /** @domName HTMLTableElement.bgColor */
+ String bgColor;
- EventListenerList get blur => this['blur'];
+ /** @domName HTMLTableElement.border */
+ String border;
- EventListenerList get change => this['change'];
+ /** @domName HTMLTableElement.caption */
+ TableCaptionElement caption;
- EventListenerList get click => this['click'];
+ /** @domName HTMLTableElement.cellPadding */
+ String cellPadding;
- EventListenerList get contextMenu => this['contextmenu'];
+ /** @domName HTMLTableElement.cellSpacing */
+ String cellSpacing;
- EventListenerList get copy => this['copy'];
+ /** @domName HTMLTableElement.frame */
+ String frame;
- EventListenerList get cut => this['cut'];
+ /** @domName HTMLTableElement.rows */
+ final HTMLCollection rows;
- EventListenerList get doubleClick => this['dblclick'];
+ /** @domName HTMLTableElement.rules */
+ String rules;
- EventListenerList get drag => this['drag'];
+ /** @domName HTMLTableElement.summary */
+ String summary;
- EventListenerList get dragEnd => this['dragend'];
+ /** @domName HTMLTableElement.tBodies */
+ final HTMLCollection tBodies;
- EventListenerList get dragEnter => this['dragenter'];
-
- EventListenerList get dragLeave => this['dragleave'];
-
- EventListenerList get dragOver => this['dragover'];
-
- EventListenerList get dragStart => this['dragstart'];
-
- EventListenerList get drop => this['drop'];
-
- EventListenerList get error => this['error'];
-
- EventListenerList get focus => this['focus'];
-
- EventListenerList get input => this['input'];
-
- EventListenerList get keyDown => this['keydown'];
-
- EventListenerList get keyPress => this['keypress'];
-
- EventListenerList get keyUp => this['keyup'];
-
- EventListenerList get load => this['load'];
-
- EventListenerList get mouseDown => this['mousedown'];
-
- EventListenerList get mouseMove => this['mousemove'];
+ /** @domName HTMLTableElement.tFoot */
+ TableSectionElement tFoot;
- EventListenerList get mouseOut => this['mouseout'];
+ /** @domName HTMLTableElement.tHead */
+ TableSectionElement tHead;
- EventListenerList get mouseOver => this['mouseover'];
+ /** @domName HTMLTableElement.width */
+ String width;
- EventListenerList get mouseUp => this['mouseup'];
+ /** @domName HTMLTableElement.createCaption */
+ Element createCaption() native;
- EventListenerList get mouseWheel => this['mousewheel'];
+ /** @domName HTMLTableElement.createTFoot */
+ Element createTFoot() native;
- EventListenerList get paste => this['paste'];
+ /** @domName HTMLTableElement.createTHead */
+ Element createTHead() native;
- EventListenerList get reset => this['reset'];
+ /** @domName HTMLTableElement.deleteCaption */
+ void deleteCaption() native;
- EventListenerList get resize => this['resize'];
+ /** @domName HTMLTableElement.deleteRow */
+ void deleteRow(int index) native;
- EventListenerList get scroll => this['scroll'];
+ /** @domName HTMLTableElement.deleteTFoot */
+ void deleteTFoot() native;
- EventListenerList get search => this['search'];
+ /** @domName HTMLTableElement.deleteTHead */
+ void deleteTHead() native;
- EventListenerList get select => this['select'];
+ /** @domName HTMLTableElement.insertRow */
+ Element insertRow(int index) native;
- EventListenerList get selectStart => this['selectstart'];
- EventListenerList get submit => this['submit'];
+ Element createTBody() {
+ if (JS('bool', '!!#.createTBody', this)) {
+ return this._createTBody();
+ }
+ var tbody = new Element.tag('tbody');
+ this.elements.add(tbody);
+ return tbody;
+ }
- EventListenerList get unload => this['unload'];
+ Element _createTBody() native 'createTBody';
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGEllipseElement
-class SVGEllipseElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGEllipseElement" {
+/// @domName HTMLTableRowElement
+class TableRowElement extends Element implements Element native "*HTMLTableRowElement" {
- /** @domName SVGEllipseElement.cx */
- final SVGAnimatedLength cx;
+ factory TableRowElement() => _Elements.createTableRowElement();
- /** @domName SVGEllipseElement.cy */
- final SVGAnimatedLength cy;
+ /** @domName HTMLTableRowElement.align */
+ String align;
- /** @domName SVGEllipseElement.rx */
- final SVGAnimatedLength rx;
+ /** @domName HTMLTableRowElement.bgColor */
+ String bgColor;
- /** @domName SVGEllipseElement.ry */
- final SVGAnimatedLength ry;
+ /** @domName HTMLTableRowElement.cells */
+ final HTMLCollection cells;
- // From SVGExternalResourcesRequired
+ /** @domName HTMLTableRowElement.ch */
+ String ch;
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ /** @domName HTMLTableRowElement.chOff */
+ String chOff;
- // From SVGLangSpace
+ /** @domName HTMLTableRowElement.rowIndex */
+ final int rowIndex;
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ /** @domName HTMLTableRowElement.sectionRowIndex */
+ final int sectionRowIndex;
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ /** @domName HTMLTableRowElement.vAlign */
+ String vAlign;
- // From SVGLocatable
+ /** @domName HTMLTableRowElement.deleteCell */
+ void deleteCell(int index) native;
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
+ /** @domName HTMLTableRowElement.insertCell */
+ Element insertCell(int index) native;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
+/// @domName HTMLTableSectionElement
+class TableSectionElement extends Element implements Element native "*HTMLTableSectionElement" {
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
+ /** @domName HTMLTableSectionElement.align */
+ String align;
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
+ /** @domName HTMLTableSectionElement.ch */
+ String ch;
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
+ /** @domName HTMLTableSectionElement.chOff */
+ String chOff;
- // From SVGStylable
+ /** @domName HTMLTableSectionElement.rows */
+ final HTMLCollection rows;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName HTMLTableSectionElement.vAlign */
+ String vAlign;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName HTMLTableSectionElement.deleteRow */
+ void deleteRow(int index) native;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName HTMLTableSectionElement.insertRow */
+ Element insertRow(int index) native;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- // From SVGTests
+// WARNING: Do not edit - generated code.
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+class Text extends CharacterData native "*Text" {
+ factory Text(String data) => _TextFactoryProvider.createText(data);
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ /** @domName Text.wholeText */
+ final String wholeText;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ /** @domName Text.replaceWholeText */
+ Text replaceWholeText(String content) native;
- // From SVGTransformable
+ /** @domName Text.splitText */
+ Text splitText(int offset) native;
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGException
-class SVGException native "*SVGException" {
+/// @domName HTMLTextAreaElement
+class TextAreaElement extends Element implements Element native "*HTMLTextAreaElement" {
+
+ factory TextAreaElement() => _Elements.createTextAreaElement();
+
+ /** @domName HTMLTextAreaElement.autofocus */
+ bool autofocus;
- static const int SVG_INVALID_VALUE_ERR = 1;
+ /** @domName HTMLTextAreaElement.cols */
+ int cols;
- static const int SVG_MATRIX_NOT_INVERTABLE = 2;
+ /** @domName HTMLTextAreaElement.defaultValue */
+ String defaultValue;
- static const int SVG_WRONG_TYPE_ERR = 0;
+ /** @domName HTMLTextAreaElement.dirName */
+ String dirName;
- /** @domName SVGException.code */
- final int code;
+ /** @domName HTMLTextAreaElement.disabled */
+ bool disabled;
- /** @domName SVGException.message */
- final String message;
+ /** @domName HTMLTextAreaElement.form */
+ final FormElement form;
- /** @domName SVGException.name */
- final String name;
+ /** @domName HTMLTextAreaElement.labels */
+ final List<Node> labels;
- /** @domName SVGException.toString */
- String toString() native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ /** @domName HTMLTextAreaElement.maxLength */
+ int maxLength;
+ /** @domName HTMLTextAreaElement.name */
+ String name;
-/// @domName SVGExternalResourcesRequired
-abstract class SVGExternalResourcesRequired {
+ /** @domName HTMLTextAreaElement.placeholder */
+ String placeholder;
- SVGAnimatedBoolean externalResourcesRequired;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 HTMLTextAreaElement.readOnly */
+ bool readOnly;
+ /** @domName HTMLTextAreaElement.required */
+ bool required;
-/// @domName SVGFEBlendElement
-class SVGFEBlendElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEBlendElement" {
+ /** @domName HTMLTextAreaElement.rows */
+ int rows;
- static const int SVG_FEBLEND_MODE_DARKEN = 4;
+ /** @domName HTMLTextAreaElement.selectionDirection */
+ String selectionDirection;
- static const int SVG_FEBLEND_MODE_LIGHTEN = 5;
+ /** @domName HTMLTextAreaElement.selectionEnd */
+ int selectionEnd;
- static const int SVG_FEBLEND_MODE_MULTIPLY = 2;
+ /** @domName HTMLTextAreaElement.selectionStart */
+ int selectionStart;
- static const int SVG_FEBLEND_MODE_NORMAL = 1;
+ /** @domName HTMLTextAreaElement.textLength */
+ final int textLength;
- static const int SVG_FEBLEND_MODE_SCREEN = 3;
+ /** @domName HTMLTextAreaElement.type */
+ final String type;
- static const int SVG_FEBLEND_MODE_UNKNOWN = 0;
+ /** @domName HTMLTextAreaElement.validationMessage */
+ final String validationMessage;
- /** @domName SVGFEBlendElement.in1 */
- final SVGAnimatedString in1;
+ /** @domName HTMLTextAreaElement.validity */
+ final ValidityState validity;
- /** @domName SVGFEBlendElement.in2 */
- final SVGAnimatedString in2;
+ /** @domName HTMLTextAreaElement.value */
+ String value;
- /** @domName SVGFEBlendElement.mode */
- final SVGAnimatedEnumeration mode;
+ /** @domName HTMLTextAreaElement.willValidate */
+ final bool willValidate;
- // From SVGFilterPrimitiveStandardAttributes
+ /** @domName HTMLTextAreaElement.wrap */
+ String wrap;
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ /** @domName HTMLTextAreaElement.checkValidity */
+ bool checkValidity() native;
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ /** @domName HTMLTextAreaElement.select */
+ void select() native;
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ /** @domName HTMLTextAreaElement.setCustomValidity */
+ void setCustomValidity(String error) native;
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ /** @domName HTMLTextAreaElement.setRangeText */
+ void setRangeText(String replacement, [int start, int end, String selectionMode]) native;
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ /** @domName HTMLTextAreaElement.setSelectionRange */
+ void setSelectionRange(int start, int end, [String direction]) native;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- // From SVGStylable
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+/// @domName TextEvent
+class TextEvent extends UIEvent native "*TextEvent" {
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName TextEvent.data */
+ final String data;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName TextEvent.initTextEvent */
+ void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, LocalWindow viewArg, String dataArg) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGFEColorMatrixElement
-class SVGFEColorMatrixElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEColorMatrixElement" {
-
- static const int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3;
+/// @domName TextMetrics
+class TextMetrics native "*TextMetrics" {
- static const int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4;
+ /** @domName TextMetrics.width */
+ final num width;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- static const int SVG_FECOLORMATRIX_TYPE_MATRIX = 1;
- static const int SVG_FECOLORMATRIX_TYPE_SATURATE = 2;
+/// @domName TextTrack
+class TextTrack extends EventTarget native "*TextTrack" {
- static const int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0;
+ /**
+ * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
+ */
+ TextTrackEvents get on =>
+ new TextTrackEvents(this);
- /** @domName SVGFEColorMatrixElement.in1 */
- final SVGAnimatedString in1;
+ /** @domName TextTrack.activeCues */
+ final TextTrackCueList activeCues;
- /** @domName SVGFEColorMatrixElement.type */
- final SVGAnimatedEnumeration type;
+ /** @domName TextTrack.cues */
+ final TextTrackCueList cues;
- /** @domName SVGFEColorMatrixElement.values */
- final SVGAnimatedNumberList values;
+ /** @domName TextTrack.kind */
+ final String kind;
- // From SVGFilterPrimitiveStandardAttributes
+ /** @domName TextTrack.label */
+ final String label;
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ /** @domName TextTrack.language */
+ final String language;
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ /** @domName TextTrack.mode */
+ String mode;
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ /** @domName TextTrack.addCue */
+ void addCue(TextTrackCue cue) native;
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ /** @domName TextTrack.addEventListener */
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener";
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ /** @domName TextTrack.dispatchEvent */
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
- // From SVGStylable
+ /** @domName TextTrack.removeCue */
+ void removeCue(TextTrackCue cue) native;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName TextTrack.removeEventListener */
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener";
+}
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+class TextTrackEvents extends Events {
+ TextTrackEvents(EventTarget _ptr) : super(_ptr);
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ EventListenerList get cueChange => this['cuechange'];
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGFEComponentTransferElement
-class SVGFEComponentTransferElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEComponentTransferElement" {
-
- /** @domName SVGFEComponentTransferElement.in1 */
- final SVGAnimatedString in1;
-
- // From SVGFilterPrimitiveStandardAttributes
+/// @domName TextTrackCue
+class TextTrackCue extends EventTarget native "*TextTrackCue" {
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ factory TextTrackCue(num startTime, num endTime, String text) => _TextTrackCueFactoryProvider.createTextTrackCue(startTime, endTime, text);
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
-
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
-
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
-
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGFECompositeElement
-class SVGFECompositeElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFECompositeElement" {
-
- static const int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
-
- static const int SVG_FECOMPOSITE_OPERATOR_ATOP = 4;
-
- static const int SVG_FECOMPOSITE_OPERATOR_IN = 2;
-
- static const int SVG_FECOMPOSITE_OPERATOR_OUT = 3;
-
- static const int SVG_FECOMPOSITE_OPERATOR_OVER = 1;
+ /**
+ * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
+ */
+ TextTrackCueEvents get on =>
+ new TextTrackCueEvents(this);
- static const int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0;
+ /** @domName TextTrackCue.align */
+ String align;
- static const int SVG_FECOMPOSITE_OPERATOR_XOR = 5;
+ /** @domName TextTrackCue.endTime */
+ num endTime;
- /** @domName SVGFECompositeElement.in1 */
- final SVGAnimatedString in1;
+ /** @domName TextTrackCue.id */
+ String id;
- /** @domName SVGFECompositeElement.in2 */
- final SVGAnimatedString in2;
+ /** @domName TextTrackCue.line */
+ int line;
- /** @domName SVGFECompositeElement.k1 */
- final SVGAnimatedNumber k1;
+ /** @domName TextTrackCue.pauseOnExit */
+ bool pauseOnExit;
- /** @domName SVGFECompositeElement.k2 */
- final SVGAnimatedNumber k2;
+ /** @domName TextTrackCue.position */
+ int position;
- /** @domName SVGFECompositeElement.k3 */
- final SVGAnimatedNumber k3;
+ /** @domName TextTrackCue.size */
+ int size;
- /** @domName SVGFECompositeElement.k4 */
- final SVGAnimatedNumber k4;
+ /** @domName TextTrackCue.snapToLines */
+ bool snapToLines;
- /** @domName SVGFECompositeElement.operator */
- final SVGAnimatedEnumeration operator;
+ /** @domName TextTrackCue.startTime */
+ num startTime;
- // From SVGFilterPrimitiveStandardAttributes
+ /** @domName TextTrackCue.text */
+ String text;
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ /** @domName TextTrackCue.track */
+ final TextTrack track;
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ /** @domName TextTrackCue.vertical */
+ String vertical;
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ /** @domName TextTrackCue.addEventListener */
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener";
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ /** @domName TextTrackCue.dispatchEvent */
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ /** @domName TextTrackCue.getCueAsHTML */
+ DocumentFragment getCueAsHTML() native;
- // From SVGStylable
+ /** @domName TextTrackCue.removeEventListener */
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener";
+}
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+class TextTrackCueEvents extends Events {
+ TextTrackCueEvents(EventTarget _ptr) : super(_ptr);
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ EventListenerList get enter => this['enter'];
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ EventListenerList get exit => this['exit'];
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGFEConvolveMatrixElement
-class SVGFEConvolveMatrixElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEConvolveMatrixElement" {
+/// @domName TextTrackCueList
+class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "*TextTrackCueList" {
+
+ /** @domName TextTrackCueList.length */
+ final int length;
+
+ TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index);
+
+ void operator[]=(int index, TextTrackCue value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
+ }
+ // -- start List<TextTrackCue> mixins.
+ // TextTrackCue is the element type.
- static const int SVG_EDGEMODE_DUPLICATE = 1;
+ // From Iterable<TextTrackCue>:
- static const int SVG_EDGEMODE_NONE = 3;
+ Iterator<TextTrackCue> 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<TextTrackCue>(this);
+ }
- static const int SVG_EDGEMODE_UNKNOWN = 0;
+ // From Collection<TextTrackCue>:
- static const int SVG_EDGEMODE_WRAP = 2;
+ void add(TextTrackCue value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- /** @domName SVGFEConvolveMatrixElement.bias */
- final SVGAnimatedNumber bias;
+ void addLast(TextTrackCue value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- /** @domName SVGFEConvolveMatrixElement.divisor */
- final SVGAnimatedNumber divisor;
+ void addAll(Collection<TextTrackCue> collection) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- /** @domName SVGFEConvolveMatrixElement.edgeMode */
- final SVGAnimatedEnumeration edgeMode;
+ bool contains(TextTrackCue element) => _Collections.contains(this, element);
- /** @domName SVGFEConvolveMatrixElement.in1 */
- final SVGAnimatedString in1;
+ void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f);
- /** @domName SVGFEConvolveMatrixElement.kernelMatrix */
- final SVGAnimatedNumberList kernelMatrix;
+ Collection map(f(TextTrackCue element)) => _Collections.map(this, [], f);
- /** @domName SVGFEConvolveMatrixElement.kernelUnitLengthX */
- final SVGAnimatedNumber kernelUnitLengthX;
+ Collection<TextTrackCue> filter(bool f(TextTrackCue element)) =>
+ _Collections.filter(this, <TextTrackCue>[], f);
- /** @domName SVGFEConvolveMatrixElement.kernelUnitLengthY */
- final SVGAnimatedNumber kernelUnitLengthY;
+ bool every(bool f(TextTrackCue element)) => _Collections.every(this, f);
- /** @domName SVGFEConvolveMatrixElement.orderX */
- final SVGAnimatedInteger orderX;
+ bool some(bool f(TextTrackCue element)) => _Collections.some(this, f);
- /** @domName SVGFEConvolveMatrixElement.orderY */
- final SVGAnimatedInteger orderY;
+ bool get isEmpty => this.length == 0;
- /** @domName SVGFEConvolveMatrixElement.preserveAlpha */
- final SVGAnimatedBoolean preserveAlpha;
+ // From List<TextTrackCue>:
- /** @domName SVGFEConvolveMatrixElement.targetX */
- final SVGAnimatedInteger targetX;
+ void sort([Comparator<TextTrackCue> compare = Comparable.compare]) {
+ throw new UnsupportedError("Cannot sort immutable List.");
+ }
- /** @domName SVGFEConvolveMatrixElement.targetY */
- final SVGAnimatedInteger targetY;
+ int indexOf(TextTrackCue element, [int start = 0]) =>
+ _Lists.indexOf(this, element, start, this.length);
- // From SVGFilterPrimitiveStandardAttributes
+ int lastIndexOf(TextTrackCue element, [int start]) {
+ if (start == null) start = length - 1;
+ return _Lists.lastIndexOf(this, element, start);
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ TextTrackCue get last => this[length - 1];
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ TextTrackCue removeLast() {
+ throw new UnsupportedError("Cannot removeLast on immutable List.");
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ void setRange(int start, int rangeLength, List<TextTrackCue> from, [int startFrom]) {
+ throw new UnsupportedError("Cannot setRange on immutable List.");
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ void removeRange(int start, int rangeLength) {
+ throw new UnsupportedError("Cannot removeRange on immutable List.");
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) {
+ throw new UnsupportedError("Cannot insertRange on immutable List.");
+ }
- // From SVGStylable
+ List<TextTrackCue> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <TextTrackCue>[]);
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ // -- end List<TextTrackCue> mixins.
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName TextTrackCueList.getCueById */
+ TextTrackCue getCueById(String id) native;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName TextTrackCueList.item */
+ TextTrackCue item(int index) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGFEDiffuseLightingElement
-class SVGFEDiffuseLightingElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEDiffuseLightingElement" {
-
- /** @domName SVGFEDiffuseLightingElement.diffuseConstant */
- final SVGAnimatedNumber diffuseConstant;
-
- /** @domName SVGFEDiffuseLightingElement.in1 */
- final SVGAnimatedString in1;
-
- /** @domName SVGFEDiffuseLightingElement.kernelUnitLengthX */
- final SVGAnimatedNumber kernelUnitLengthX;
+/// @domName TextTrackList
+class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, List<TextTrack> native "*TextTrackList" {
- /** @domName SVGFEDiffuseLightingElement.kernelUnitLengthY */
- final SVGAnimatedNumber kernelUnitLengthY;
+ /**
+ * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
+ */
+ TextTrackListEvents get on =>
+ new TextTrackListEvents(this);
- /** @domName SVGFEDiffuseLightingElement.surfaceScale */
- final SVGAnimatedNumber surfaceScale;
+ /** @domName TextTrackList.length */
+ final int length;
- // From SVGFilterPrimitiveStandardAttributes
+ TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index);
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ void operator[]=(int index, TextTrack value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
+ }
+ // -- start List<TextTrack> mixins.
+ // TextTrack is the element type.
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ // From Iterable<TextTrack>:
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ Iterator<TextTrack> 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<TextTrack>(this);
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ // From Collection<TextTrack>:
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ void add(TextTrack value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- // From SVGStylable
+ void addLast(TextTrack value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ void addAll(Collection<TextTrack> collection) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ bool contains(TextTrack element) => _Collections.contains(this, element);
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ void forEach(void f(TextTrack element)) => _Collections.forEach(this, f);
+ Collection map(f(TextTrack element)) => _Collections.map(this, [], f);
-/// @domName SVGFEDisplacementMapElement
-class SVGFEDisplacementMapElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEDisplacementMapElement" {
+ Collection<TextTrack> filter(bool f(TextTrack element)) =>
+ _Collections.filter(this, <TextTrack>[], f);
- static const int SVG_CHANNEL_A = 4;
+ bool every(bool f(TextTrack element)) => _Collections.every(this, f);
- static const int SVG_CHANNEL_B = 3;
+ bool some(bool f(TextTrack element)) => _Collections.some(this, f);
- static const int SVG_CHANNEL_G = 2;
+ bool get isEmpty => this.length == 0;
- static const int SVG_CHANNEL_R = 1;
+ // From List<TextTrack>:
- static const int SVG_CHANNEL_UNKNOWN = 0;
+ void sort([Comparator<TextTrack> compare = Comparable.compare]) {
+ throw new UnsupportedError("Cannot sort immutable List.");
+ }
- /** @domName SVGFEDisplacementMapElement.in1 */
- final SVGAnimatedString in1;
+ int indexOf(TextTrack element, [int start = 0]) =>
+ _Lists.indexOf(this, element, start, this.length);
- /** @domName SVGFEDisplacementMapElement.in2 */
- final SVGAnimatedString in2;
+ int lastIndexOf(TextTrack element, [int start]) {
+ if (start == null) start = length - 1;
+ return _Lists.lastIndexOf(this, element, start);
+ }
- /** @domName SVGFEDisplacementMapElement.scale */
- final SVGAnimatedNumber scale;
+ TextTrack get last => this[length - 1];
- /** @domName SVGFEDisplacementMapElement.xChannelSelector */
- final SVGAnimatedEnumeration xChannelSelector;
+ TextTrack removeLast() {
+ throw new UnsupportedError("Cannot removeLast on immutable List.");
+ }
- /** @domName SVGFEDisplacementMapElement.yChannelSelector */
- final SVGAnimatedEnumeration yChannelSelector;
+ void setRange(int start, int rangeLength, List<TextTrack> from, [int startFrom]) {
+ throw new UnsupportedError("Cannot setRange on immutable List.");
+ }
- // From SVGFilterPrimitiveStandardAttributes
+ void removeRange(int start, int rangeLength) {
+ throw new UnsupportedError("Cannot removeRange on immutable List.");
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ void insertRange(int start, int rangeLength, [TextTrack initialValue]) {
+ throw new UnsupportedError("Cannot insertRange on immutable List.");
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ List<TextTrack> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <TextTrack>[]);
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ // -- end List<TextTrack> mixins.
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ /** @domName TextTrackList.addEventListener */
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener";
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ /** @domName TextTrackList.dispatchEvent */
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
- // From SVGStylable
+ /** @domName TextTrackList.item */
+ TextTrack item(int index) native;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName TextTrackList.removeEventListener */
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener";
+}
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+class TextTrackListEvents extends Events {
+ TextTrackListEvents(EventTarget _ptr) : super(_ptr);
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ EventListenerList get addTrack => this['addtrack'];
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGFEDistantLightElement
-class SVGFEDistantLightElement extends SVGElement native "*SVGFEDistantLightElement" {
+/// @domName TimeRanges
+class TimeRanges native "*TimeRanges" {
+
+ /** @domName TimeRanges.length */
+ final int length;
- /** @domName SVGFEDistantLightElement.azimuth */
- final SVGAnimatedNumber azimuth;
+ /** @domName TimeRanges.end */
+ num end(int index) native;
- /** @domName SVGFEDistantLightElement.elevation */
- final SVGAnimatedNumber elevation;
+ /** @domName TimeRanges.start */
+ num start(int index) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+// WARNING: Do not edit - generated code.
-/// @domName SVGFEDropShadowElement
-class SVGFEDropShadowElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEDropShadowElement" {
-
- /** @domName SVGFEDropShadowElement.dx */
- final SVGAnimatedNumber dx;
-
- /** @domName SVGFEDropShadowElement.dy */
- final SVGAnimatedNumber dy;
-
- /** @domName SVGFEDropShadowElement.in1 */
- final SVGAnimatedString in1;
-
- /** @domName SVGFEDropShadowElement.stdDeviationX */
- final SVGAnimatedNumber stdDeviationX;
-
- /** @domName SVGFEDropShadowElement.stdDeviationY */
- final SVGAnimatedNumber stdDeviationY;
-
- /** @domName SVGFEDropShadowElement.setStdDeviation */
- void setStdDeviation(num stdDeviationX, num stdDeviationY) native;
-
- // From SVGFilterPrimitiveStandardAttributes
-
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
-
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
-
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
-
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
-
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
- // From SVGStylable
+typedef void TimeoutHandler();
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+/// @domName HTMLTitleElement
+class TitleElement extends Element implements Element native "*HTMLTitleElement" {
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ factory TitleElement() => _Elements.createTitleElement();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGFEFloodElement
-class SVGFEFloodElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEFloodElement" {
+/// @domName Touch
+class Touch native "*Touch" {
- // From SVGFilterPrimitiveStandardAttributes
+ /** @domName Touch.clientX */
+ final int clientX;
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ /** @domName Touch.clientY */
+ final int clientY;
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ /** @domName Touch.identifier */
+ final int identifier;
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ /** @domName Touch.pageX */
+ final int pageX;
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ /** @domName Touch.pageY */
+ final int pageY;
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ /** @domName Touch.screenX */
+ final int screenX;
- // From SVGStylable
+ /** @domName Touch.screenY */
+ final int screenY;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ /** @domName Touch.target */
+ EventTarget get target => _convertNativeToDart_EventTarget(this._target);
+ EventTarget get _target => JS("EventTarget", "#.target", this);
+ /** @domName Touch.webkitForce */
+ final num webkitForce;
-/// @domName SVGFEFuncAElement
-class SVGFEFuncAElement extends SVGComponentTransferFunctionElement native "*SVGFEFuncAElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 Touch.webkitRadiusX */
+ final int webkitRadiusX;
+ /** @domName Touch.webkitRadiusY */
+ final int webkitRadiusY;
-/// @domName SVGFEFuncBElement
-class SVGFEFuncBElement extends SVGComponentTransferFunctionElement native "*SVGFEFuncBElement" {
+ /** @domName Touch.webkitRotationAngle */
+ final num webkitRotationAngle;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGFEFuncGElement
-class SVGFEFuncGElement extends SVGComponentTransferFunctionElement native "*SVGFEFuncGElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 TouchEvent
+class TouchEvent extends UIEvent native "*TouchEvent" {
+ /** @domName TouchEvent.altKey */
+ final bool altKey;
-/// @domName SVGFEFuncRElement
-class SVGFEFuncRElement extends SVGComponentTransferFunctionElement native "*SVGFEFuncRElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 TouchEvent.changedTouches */
+ final TouchList changedTouches;
+ /** @domName TouchEvent.ctrlKey */
+ final bool ctrlKey;
-/// @domName SVGFEGaussianBlurElement
-class SVGFEGaussianBlurElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEGaussianBlurElement" {
+ /** @domName TouchEvent.metaKey */
+ final bool metaKey;
- /** @domName SVGFEGaussianBlurElement.in1 */
- final SVGAnimatedString in1;
+ /** @domName TouchEvent.shiftKey */
+ final bool shiftKey;
- /** @domName SVGFEGaussianBlurElement.stdDeviationX */
- final SVGAnimatedNumber stdDeviationX;
+ /** @domName TouchEvent.targetTouches */
+ final TouchList targetTouches;
- /** @domName SVGFEGaussianBlurElement.stdDeviationY */
- final SVGAnimatedNumber stdDeviationY;
+ /** @domName TouchEvent.touches */
+ final TouchList touches;
- /** @domName SVGFEGaussianBlurElement.setStdDeviation */
- void setStdDeviation(num stdDeviationX, num stdDeviationY) native;
+ /** @domName TouchEvent.initTouchEvent */
+ void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList changedTouches, String type, LocalWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- // From SVGFilterPrimitiveStandardAttributes
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+/// @domName TouchList
+class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*TouchList" {
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ /** @domName TouchList.length */
+ final int length;
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ Touch operator[](int index) => JS("Touch", "#[#]", this, index);
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ void operator[]=(int index, Touch value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
+ }
+ // -- start List<Touch> mixins.
+ // Touch is the element type.
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ // From Iterable<Touch>:
- // From SVGStylable
+ Iterator<Touch> 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<Touch>(this);
+ }
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ // From Collection<Touch>:
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ void add(Touch value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ void addLast(Touch value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+ void addAll(Collection<Touch> collection) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
-/// @domName SVGFEImageElement
-class SVGFEImageElement extends SVGElement implements SVGURIReference, SVGLangSpace, SVGFilterPrimitiveStandardAttributes, SVGExternalResourcesRequired native "*SVGFEImageElement" {
+ bool contains(Touch element) => _Collections.contains(this, element);
- /** @domName SVGFEImageElement.preserveAspectRatio */
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
+ void forEach(void f(Touch element)) => _Collections.forEach(this, f);
- // From SVGExternalResourcesRequired
+ Collection map(f(Touch element)) => _Collections.map(this, [], f);
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ Collection<Touch> filter(bool f(Touch element)) =>
+ _Collections.filter(this, <Touch>[], f);
- // From SVGFilterPrimitiveStandardAttributes
+ bool every(bool f(Touch element)) => _Collections.every(this, f);
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ bool some(bool f(Touch element)) => _Collections.some(this, f);
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ bool get isEmpty => this.length == 0;
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ // From List<Touch>:
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ void sort([Comparator<Touch> compare = Comparable.compare]) {
+ throw new UnsupportedError("Cannot sort immutable List.");
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ int indexOf(Touch element, [int start = 0]) =>
+ _Lists.indexOf(this, element, start, this.length);
- // From SVGLangSpace
+ int lastIndexOf(Touch element, [int start]) {
+ if (start == null) start = length - 1;
+ return _Lists.lastIndexOf(this, element, start);
+ }
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ Touch get last => this[length - 1];
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ Touch removeLast() {
+ throw new UnsupportedError("Cannot removeLast on immutable List.");
+ }
- // From SVGStylable
+ void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) {
+ throw new UnsupportedError("Cannot setRange on immutable List.");
+ }
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ void removeRange(int start, int rangeLength) {
+ throw new UnsupportedError("Cannot removeRange on immutable List.");
+ }
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ void insertRange(int start, int rangeLength, [Touch initialValue]) {
+ throw new UnsupportedError("Cannot insertRange on immutable List.");
+ }
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ List<Touch> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <Touch>[]);
- // From SVGURIReference
+ // -- end List<Touch> mixins.
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
+ /** @domName TouchList.item */
+ Touch item(int index) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGFEMergeElement
-class SVGFEMergeElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEMergeElement" {
+/// @domName HTMLTrackElement
+class TrackElement extends Element implements Element native "*HTMLTrackElement" {
+
+ factory TrackElement() => _Elements.createTrackElement();
+
+ static const int ERROR = 3;
+
+ static const int LOADED = 2;
- // From SVGFilterPrimitiveStandardAttributes
+ static const int LOADING = 1;
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ static const int NONE = 0;
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ /** @domName HTMLTrackElement.defaultValue */
+ bool get defaultValue => JS("bool", "#.default", this);
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ /** @domName HTMLTrackElement.defaultValue */
+ void set defaultValue(bool value) {
+ JS("void", "#.default = #", this, value);
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ /** @domName HTMLTrackElement.kind */
+ String kind;
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ /** @domName HTMLTrackElement.label */
+ String label;
- // From SVGStylable
+ /** @domName HTMLTrackElement.readyState */
+ final int readyState;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName HTMLTrackElement.src */
+ String src;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName HTMLTrackElement.srclang */
+ String srclang;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName HTMLTrackElement.track */
+ final TextTrack track;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGFEMergeNodeElement
-class SVGFEMergeNodeElement extends SVGElement native "*SVGFEMergeNodeElement" {
+/// @domName TrackEvent
+class TrackEvent extends Event native "*TrackEvent" {
- /** @domName SVGFEMergeNodeElement.in1 */
- final SVGAnimatedString in1;
+ /** @domName TrackEvent.track */
+ final Object track;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGFEMorphologyElement
-class SVGFEMorphologyElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEMorphologyElement" {
-
- static const int SVG_MORPHOLOGY_OPERATOR_DILATE = 2;
-
- static const int SVG_MORPHOLOGY_OPERATOR_ERODE = 1;
+/// @domName WebKitTransitionEvent
+class TransitionEvent extends Event native "*WebKitTransitionEvent" {
- static const int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0;
+ /** @domName WebKitTransitionEvent.elapsedTime */
+ final num elapsedTime;
- /** @domName SVGFEMorphologyElement.in1 */
- final SVGAnimatedString in1;
+ /** @domName WebKitTransitionEvent.propertyName */
+ final String propertyName;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGFEMorphologyElement.operator */
- final SVGAnimatedEnumeration operator;
- /** @domName SVGFEMorphologyElement.radiusX */
- final SVGAnimatedNumber radiusX;
+/// @domName TreeWalker
+class TreeWalker native "*TreeWalker" {
- /** @domName SVGFEMorphologyElement.radiusY */
- final SVGAnimatedNumber radiusY;
+ /** @domName TreeWalker.currentNode */
+ Node currentNode;
- /** @domName SVGFEMorphologyElement.setRadius */
- void setRadius(num radiusX, num radiusY) native;
+ /** @domName TreeWalker.expandEntityReferences */
+ final bool expandEntityReferences;
- // From SVGFilterPrimitiveStandardAttributes
+ /** @domName TreeWalker.filter */
+ final NodeFilter filter;
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ /** @domName TreeWalker.root */
+ final Node root;
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ /** @domName TreeWalker.whatToShow */
+ final int whatToShow;
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ /** @domName TreeWalker.firstChild */
+ Node firstChild() native;
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ /** @domName TreeWalker.lastChild */
+ Node lastChild() native;
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ /** @domName TreeWalker.nextNode */
+ Node nextNode() native;
- // From SVGStylable
+ /** @domName TreeWalker.nextSibling */
+ Node nextSibling() native;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName TreeWalker.parentNode */
+ Node parentNode() native;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName TreeWalker.previousNode */
+ Node previousNode() native;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName TreeWalker.previousSibling */
+ Node previousSibling() native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGFEOffsetElement
-class SVGFEOffsetElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFEOffsetElement" {
-
- /** @domName SVGFEOffsetElement.dx */
- final SVGAnimatedNumber dx;
-
- /** @domName SVGFEOffsetElement.dy */
- final SVGAnimatedNumber dy;
-
- /** @domName SVGFEOffsetElement.in1 */
- final SVGAnimatedString in1;
+/// @domName UIEvent
+class UIEvent extends Event native "*UIEvent" {
- // From SVGFilterPrimitiveStandardAttributes
+ /** @domName UIEvent.charCode */
+ final int charCode;
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ /** @domName UIEvent.detail */
+ final int detail;
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ /** @domName UIEvent.keyCode */
+ final int keyCode;
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ /** @domName UIEvent.layerX */
+ final int layerX;
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ /** @domName UIEvent.layerY */
+ final int layerY;
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ /** @domName UIEvent.pageX */
+ final int pageX;
- // From SVGStylable
+ /** @domName UIEvent.pageY */
+ final int pageY;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName UIEvent.view */
+ Window get view => _convertNativeToDart_Window(this._view);
+ Window get _view => JS("Window", "#.view", this);
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName UIEvent.which */
+ final int which;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName UIEvent.initUIEvent */
+ void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow view, int detail) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGFEPointLightElement
-class SVGFEPointLightElement extends SVGElement native "*SVGFEPointLightElement" {
+/// @domName HTMLUListElement
+class UListElement extends Element implements Element native "*HTMLUListElement" {
- /** @domName SVGFEPointLightElement.x */
- final SVGAnimatedNumber x;
+ factory UListElement() => _Elements.createUListElement();
- /** @domName SVGFEPointLightElement.y */
- final SVGAnimatedNumber y;
+ /** @domName HTMLUListElement.compact */
+ bool compact;
- /** @domName SVGFEPointLightElement.z */
- final SVGAnimatedNumber z;
+ /** @domName HTMLUListElement.type */
+ String type;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGFESpecularLightingElement
-class SVGFESpecularLightingElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFESpecularLightingElement" {
+/// @domName Uint16Array
+class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint16Array" {
- /** @domName SVGFESpecularLightingElement.in1 */
- final SVGAnimatedString in1;
+ factory Uint16Array(int length) =>
+ _TypedArrayFactoryProvider.createUint16Array(length);
- /** @domName SVGFESpecularLightingElement.specularConstant */
- final SVGAnimatedNumber specularConstant;
+ factory Uint16Array.fromList(List<int> list) =>
+ _TypedArrayFactoryProvider.createUint16Array_fromList(list);
- /** @domName SVGFESpecularLightingElement.specularExponent */
- final SVGAnimatedNumber specularExponent;
+ factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
+ _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length);
- /** @domName SVGFESpecularLightingElement.surfaceScale */
- final SVGAnimatedNumber surfaceScale;
+ static const int BYTES_PER_ELEMENT = 2;
- // From SVGFilterPrimitiveStandardAttributes
+ /** @domName Uint16Array.length */
+ final int length;
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ int operator[](int index) => JS("int", "#[#]", this, index);
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ void operator[]=(int index, int value) => JS("void", "#[#] = #", this, index, value);
+ // -- start List<int> mixins.
+ // int is the element type.
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ // From Iterable<int>:
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ Iterator<int> 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<int>(this);
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ // From Collection<int>:
- // From SVGStylable
+ void add(int value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ void addLast(int value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ void addAll(Collection<int> collection) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ bool contains(int element) => _Collections.contains(this, element);
+ void forEach(void f(int element)) => _Collections.forEach(this, f);
+
+ Collection map(f(int element)) => _Collections.map(this, [], f);
+
+ Collection<int> filter(bool f(int element)) =>
+ _Collections.filter(this, <int>[], f);
+
+ bool every(bool f(int element)) => _Collections.every(this, f);
+
+ bool some(bool f(int element)) => _Collections.some(this, f);
+
+ bool get isEmpty => this.length == 0;
+
+ // From List<int>:
+
+ void sort([Comparator<int> compare = Comparable.compare]) {
+ throw new UnsupportedError("Cannot sort immutable List.");
+ }
+
+ int indexOf(int element, [int start = 0]) =>
+ _Lists.indexOf(this, element, start, this.length);
+
+ int lastIndexOf(int element, [int start]) {
+ if (start == null) start = length - 1;
+ return _Lists.lastIndexOf(this, element, start);
+ }
-/// @domName SVGFESpotLightElement
-class SVGFESpotLightElement extends SVGElement native "*SVGFESpotLightElement" {
+ int get last => this[length - 1];
- /** @domName SVGFESpotLightElement.limitingConeAngle */
- final SVGAnimatedNumber limitingConeAngle;
+ int removeLast() {
+ throw new UnsupportedError("Cannot removeLast on immutable List.");
+ }
- /** @domName SVGFESpotLightElement.pointsAtX */
- final SVGAnimatedNumber pointsAtX;
+ void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
+ throw new UnsupportedError("Cannot setRange on immutable List.");
+ }
- /** @domName SVGFESpotLightElement.pointsAtY */
- final SVGAnimatedNumber pointsAtY;
+ void removeRange(int start, int rangeLength) {
+ throw new UnsupportedError("Cannot removeRange on immutable List.");
+ }
- /** @domName SVGFESpotLightElement.pointsAtZ */
- final SVGAnimatedNumber pointsAtZ;
+ void insertRange(int start, int rangeLength, [int initialValue]) {
+ throw new UnsupportedError("Cannot insertRange on immutable List.");
+ }
- /** @domName SVGFESpotLightElement.specularExponent */
- final SVGAnimatedNumber specularExponent;
+ List<int> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <int>[]);
- /** @domName SVGFESpotLightElement.x */
- final SVGAnimatedNumber x;
+ // -- end List<int> mixins.
- /** @domName SVGFESpotLightElement.y */
- final SVGAnimatedNumber y;
+ /** @domName Uint16Array.setElements */
+ void setElements(Object array, [int offset]) native "set";
- /** @domName SVGFESpotLightElement.z */
- final SVGAnimatedNumber z;
+ /** @domName Uint16Array.subarray */
+ Uint16Array subarray(int start, [int end]) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGFETileElement
-class SVGFETileElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFETileElement" {
-
- /** @domName SVGFETileElement.in1 */
- final SVGAnimatedString in1;
-
- // From SVGFilterPrimitiveStandardAttributes
+/// @domName Uint32Array
+class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint32Array" {
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ factory Uint32Array(int length) =>
+ _TypedArrayFactoryProvider.createUint32Array(length);
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ factory Uint32Array.fromList(List<int> list) =>
+ _TypedArrayFactoryProvider.createUint32Array_fromList(list);
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
+ _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length);
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ static const int BYTES_PER_ELEMENT = 4;
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ /** @domName Uint32Array.length */
+ final int length;
- // From SVGStylable
+ int operator[](int index) => JS("int", "#[#]", this, index);
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ void operator[]=(int index, int value) => JS("void", "#[#] = #", this, index, value);
+ // -- start List<int> mixins.
+ // int is the element type.
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ // From Iterable<int>:
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ Iterator<int> 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<int>(this);
+ }
+ // From Collection<int>:
-/// @domName SVGFETurbulenceElement
-class SVGFETurbulenceElement extends SVGElement implements SVGFilterPrimitiveStandardAttributes native "*SVGFETurbulenceElement" {
+ void add(int value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- static const int SVG_STITCHTYPE_NOSTITCH = 2;
+ void addLast(int value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- static const int SVG_STITCHTYPE_STITCH = 1;
+ void addAll(Collection<int> collection) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- static const int SVG_STITCHTYPE_UNKNOWN = 0;
+ bool contains(int element) => _Collections.contains(this, element);
- static const int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1;
+ void forEach(void f(int element)) => _Collections.forEach(this, f);
- static const int SVG_TURBULENCE_TYPE_TURBULENCE = 2;
+ Collection map(f(int element)) => _Collections.map(this, [], f);
- static const int SVG_TURBULENCE_TYPE_UNKNOWN = 0;
+ Collection<int> filter(bool f(int element)) =>
+ _Collections.filter(this, <int>[], f);
- /** @domName SVGFETurbulenceElement.baseFrequencyX */
- final SVGAnimatedNumber baseFrequencyX;
+ bool every(bool f(int element)) => _Collections.every(this, f);
- /** @domName SVGFETurbulenceElement.baseFrequencyY */
- final SVGAnimatedNumber baseFrequencyY;
+ bool some(bool f(int element)) => _Collections.some(this, f);
- /** @domName SVGFETurbulenceElement.numOctaves */
- final SVGAnimatedInteger numOctaves;
+ bool get isEmpty => this.length == 0;
- /** @domName SVGFETurbulenceElement.seed */
- final SVGAnimatedNumber seed;
+ // From List<int>:
- /** @domName SVGFETurbulenceElement.stitchTiles */
- final SVGAnimatedEnumeration stitchTiles;
+ void sort([Comparator<int> compare = Comparable.compare]) {
+ throw new UnsupportedError("Cannot sort immutable List.");
+ }
- /** @domName SVGFETurbulenceElement.type */
- final SVGAnimatedEnumeration type;
+ int indexOf(int element, [int start = 0]) =>
+ _Lists.indexOf(this, element, start, this.length);
- // From SVGFilterPrimitiveStandardAttributes
+ int lastIndexOf(int element, [int start]) {
+ if (start == null) start = length - 1;
+ return _Lists.lastIndexOf(this, element, start);
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.height */
- final SVGAnimatedLength height;
+ int get last => this[length - 1];
- /** @domName SVGFilterPrimitiveStandardAttributes.result */
- final SVGAnimatedString result;
+ int removeLast() {
+ throw new UnsupportedError("Cannot removeLast on immutable List.");
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.width */
- final SVGAnimatedLength width;
+ void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
+ throw new UnsupportedError("Cannot setRange on immutable List.");
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.x */
- final SVGAnimatedLength x;
+ void removeRange(int start, int rangeLength) {
+ throw new UnsupportedError("Cannot removeRange on immutable List.");
+ }
- /** @domName SVGFilterPrimitiveStandardAttributes.y */
- final SVGAnimatedLength y;
+ void insertRange(int start, int rangeLength, [int initialValue]) {
+ throw new UnsupportedError("Cannot insertRange on immutable List.");
+ }
- // From SVGStylable
+ List<int> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <int>[]);
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ // -- end List<int> mixins.
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName Uint32Array.setElements */
+ void setElements(Object array, [int offset]) native "set";
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName Uint32Array.subarray */
+ Uint32Array subarray(int start, [int end]) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGFilterElement
-class SVGFilterElement extends SVGElement implements SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable native "*SVGFilterElement" {
+/// @domName Uint8Array
+class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint8Array" {
+
+ factory Uint8Array(int length) =>
+ _TypedArrayFactoryProvider.createUint8Array(length);
+
+ factory Uint8Array.fromList(List<int> list) =>
+ _TypedArrayFactoryProvider.createUint8Array_fromList(list);
- /** @domName SVGFilterElement.filterResX */
- final SVGAnimatedInteger filterResX;
+ factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
+ _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, length);
- /** @domName SVGFilterElement.filterResY */
- final SVGAnimatedInteger filterResY;
+ static const int BYTES_PER_ELEMENT = 1;
- /** @domName SVGFilterElement.filterUnits */
- final SVGAnimatedEnumeration filterUnits;
+ /** @domName Uint8Array.length */
+ final int length;
- /** @domName SVGFilterElement.height */
- final SVGAnimatedLength height;
+ int operator[](int index) => JS("int", "#[#]", this, index);
- /** @domName SVGFilterElement.primitiveUnits */
- final SVGAnimatedEnumeration primitiveUnits;
+ void operator[]=(int index, int value) => JS("void", "#[#] = #", this, index, value);
+ // -- start List<int> mixins.
+ // int is the element type.
- /** @domName SVGFilterElement.width */
- final SVGAnimatedLength width;
+ // From Iterable<int>:
- /** @domName SVGFilterElement.x */
- final SVGAnimatedLength x;
+ Iterator<int> 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<int>(this);
+ }
- /** @domName SVGFilterElement.y */
- final SVGAnimatedLength y;
+ // From Collection<int>:
- /** @domName SVGFilterElement.setFilterRes */
- void setFilterRes(int filterResX, int filterResY) native;
+ void add(int value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- // From SVGExternalResourcesRequired
+ void addLast(int value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ void addAll(Collection<int> collection) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
- // From SVGLangSpace
+ bool contains(int element) => _Collections.contains(this, element);
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ void forEach(void f(int element)) => _Collections.forEach(this, f);
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ Collection map(f(int element)) => _Collections.map(this, [], f);
- // From SVGStylable
+ Collection<int> filter(bool f(int element)) =>
+ _Collections.filter(this, <int>[], f);
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ bool every(bool f(int element)) => _Collections.every(this, f);
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ bool some(bool f(int element)) => _Collections.some(this, f);
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ bool get isEmpty => this.length == 0;
- // From SVGURIReference
+ // From List<int>:
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 sort([Comparator<int> compare = Comparable.compare]) {
+ throw new UnsupportedError("Cannot sort immutable List.");
+ }
+ int indexOf(int element, [int start = 0]) =>
+ _Lists.indexOf(this, element, start, this.length);
-/// @domName SVGFilterPrimitiveStandardAttributes
-abstract class SVGFilterPrimitiveStandardAttributes implements SVGStylable {
+ int lastIndexOf(int element, [int start]) {
+ if (start == null) start = length - 1;
+ return _Lists.lastIndexOf(this, element, start);
+ }
- SVGAnimatedLength height;
+ int get last => this[length - 1];
- SVGAnimatedString result;
+ int removeLast() {
+ throw new UnsupportedError("Cannot removeLast on immutable List.");
+ }
- SVGAnimatedLength width;
+ void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
+ throw new UnsupportedError("Cannot setRange on immutable List.");
+ }
- SVGAnimatedLength x;
+ void removeRange(int start, int rangeLength) {
+ throw new UnsupportedError("Cannot removeRange on immutable List.");
+ }
- SVGAnimatedLength y;
+ void insertRange(int start, int rangeLength, [int initialValue]) {
+ throw new UnsupportedError("Cannot insertRange on immutable List.");
+ }
- // From SVGStylable
+ List<int> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <int>[]);
- SVGAnimatedString className;
+ // -- end List<int> mixins.
- CSSStyleDeclaration style;
+ /** @domName Uint8Array.setElements */
+ void setElements(Object array, [int offset]) native "set";
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name);
+ /** @domName Uint8Array.subarray */
+ Uint8Array subarray(int start, [int end]) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGFitToViewBox
-abstract class SVGFitToViewBox {
+/// @domName Uint8ClampedArray
+class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" {
- SVGAnimatedPreserveAspectRatio preserveAspectRatio;
+ factory Uint8ClampedArray(int length) =>
+ _TypedArrayFactoryProvider.createUint8ClampedArray(length);
- SVGAnimatedRect viewBox;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ factory Uint8ClampedArray.fromList(List<int> list) =>
+ _TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list);
+ factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
+ _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOffset, length);
-/// @domName SVGFontElement
-class SVGFontElement extends SVGElement native "*SVGFontElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ // Use implementation from Uint8Array.
+ // final int length;
+ /** @domName Uint8ClampedArray.setElements */
+ void setElements(Object array, [int offset]) native "set";
-/// @domName SVGFontFaceElement
-class SVGFontFaceElement extends SVGElement native "*SVGFontFaceElement" {
+ /** @domName Uint8ClampedArray.subarray */
+ Uint8ClampedArray subarray(int start, [int end]) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGFontFaceFormatElement
-class SVGFontFaceFormatElement extends SVGElement native "*SVGFontFaceFormatElement" {
+/// @domName HTMLUnknownElement
+class UnknownElement extends Element implements Element native "*HTMLUnknownElement" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGFontFaceNameElement
-class SVGFontFaceNameElement extends SVGElement native "*SVGFontFaceNameElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 Url native "*URL" {
-/// @domName SVGFontFaceSrcElement
-class SVGFontFaceSrcElement extends SVGElement native "*SVGFontFaceSrcElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static String createObjectUrl(blob_OR_source_OR_stream) =>
+ JS('String',
+ '(window.URL || window.webkitURL).createObjectURL(#)',
+ blob_OR_source_OR_stream);
+ static void revokeObjectUrl(String objectUrl) =>
+ JS('void',
+ '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl);
-/// @domName SVGFontFaceUriElement
-class SVGFontFaceUriElement extends SVGElement native "*SVGFontFaceUriElement" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGForeignObjectElement
-class SVGForeignObjectElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGForeignObjectElement" {
-
- /** @domName SVGForeignObjectElement.height */
- final SVGAnimatedLength height;
+/// @domName ValidityState
+class ValidityState native "*ValidityState" {
- /** @domName SVGForeignObjectElement.width */
- final SVGAnimatedLength width;
+ /** @domName ValidityState.customError */
+ final bool customError;
- /** @domName SVGForeignObjectElement.x */
- final SVGAnimatedLength x;
+ /** @domName ValidityState.patternMismatch */
+ final bool patternMismatch;
- /** @domName SVGForeignObjectElement.y */
- final SVGAnimatedLength y;
+ /** @domName ValidityState.rangeOverflow */
+ final bool rangeOverflow;
- // From SVGExternalResourcesRequired
+ /** @domName ValidityState.rangeUnderflow */
+ final bool rangeUnderflow;
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ /** @domName ValidityState.stepMismatch */
+ final bool stepMismatch;
- // From SVGLangSpace
+ /** @domName ValidityState.tooLong */
+ final bool tooLong;
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ /** @domName ValidityState.typeMismatch */
+ final bool typeMismatch;
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ /** @domName ValidityState.valid */
+ final bool valid;
- // From SVGLocatable
-
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
+ /** @domName ValidityState.valueMissing */
+ final bool valueMissing;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
+/// @domName HTMLVideoElement
+class VideoElement extends MediaElement native "*HTMLVideoElement" {
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
+ factory VideoElement() => _Elements.createVideoElement();
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
+ /** @domName HTMLVideoElement.height */
+ int height;
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
+ /** @domName HTMLVideoElement.poster */
+ String poster;
- // From SVGStylable
+ /** @domName HTMLVideoElement.videoHeight */
+ final int videoHeight;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName HTMLVideoElement.videoWidth */
+ final int videoWidth;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName HTMLVideoElement.webkitDecodedFrameCount */
+ final int webkitDecodedFrameCount;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName HTMLVideoElement.webkitDisplayingFullscreen */
+ final bool webkitDisplayingFullscreen;
- // From SVGTests
+ /** @domName HTMLVideoElement.webkitDroppedFrameCount */
+ final int webkitDroppedFrameCount;
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
+ /** @domName HTMLVideoElement.webkitSupportsFullscreen */
+ final bool webkitSupportsFullscreen;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+ /** @domName HTMLVideoElement.width */
+ int width;
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ /** @domName HTMLVideoElement.webkitEnterFullScreen */
+ void webkitEnterFullScreen() native;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ /** @domName HTMLVideoElement.webkitEnterFullscreen */
+ void webkitEnterFullscreen() native;
- // From SVGTransformable
+ /** @domName HTMLVideoElement.webkitExitFullScreen */
+ void webkitExitFullScreen() native;
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
+ /** @domName HTMLVideoElement.webkitExitFullscreen */
+ void webkitExitFullscreen() native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+// WARNING: Do not edit - generated code.
-/// @domName SVGGElement
-class SVGGElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGGElement" {
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGLocatable
-
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
-
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
-
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
-
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
-
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
-
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
- // From SVGStylable
+typedef void VoidCallback();
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+/// @domName WaveShaperNode
+class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName WaveShaperNode.curve */
+ Float32Array curve;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGTests
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
+/// @domName WaveTable
+class WaveTable native "*WaveTable" {
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+/// @domName WebGLActiveInfo
+class WebGLActiveInfo native "*WebGLActiveInfo" {
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ /** @domName WebGLActiveInfo.name */
+ final String name;
- // From SVGTransformable
+ /** @domName WebGLActiveInfo.size */
+ final int size;
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
+ /** @domName WebGLActiveInfo.type */
+ final int 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.
-/// @domName SVGGlyphElement
-class SVGGlyphElement extends SVGElement native "*SVGGlyphElement" {
+/// @domName WebGLBuffer
+class WebGLBuffer native "*WebGLBuffer" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGGlyphRefElement
-class SVGGlyphRefElement extends SVGElement implements SVGURIReference, SVGStylable native "*SVGGlyphRefElement" {
+/// @domName WebGLCompressedTextureS3TC
+class WebGLCompressedTextureS3TC native "*WebGLCompressedTextureS3TC" {
- /** @domName SVGGlyphRefElement.dx */
- num dx;
+ static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
- /** @domName SVGGlyphRefElement.dy */
- num dy;
+ static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
- /** @domName SVGGlyphRefElement.format */
- String format;
+ static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
- /** @domName SVGGlyphRefElement.glyphRef */
- String glyphRef;
+ static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGGlyphRefElement.x */
- num x;
- /** @domName SVGGlyphRefElement.y */
- num y;
+/// @domName WebGLContextAttributes
+class WebGLContextAttributes native "*WebGLContextAttributes" {
- // From SVGStylable
+ /** @domName WebGLContextAttributes.alpha */
+ bool alpha;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName WebGLContextAttributes.antialias */
+ bool antialias;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName WebGLContextAttributes.depth */
+ bool depth;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName WebGLContextAttributes.premultipliedAlpha */
+ bool premultipliedAlpha;
- // From SVGURIReference
+ /** @domName WebGLContextAttributes.preserveDrawingBuffer */
+ bool preserveDrawingBuffer;
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
+ /** @domName WebGLContextAttributes.stencil */
+ bool stencil;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGGradientElement
-class SVGGradientElement extends SVGElement implements SVGURIReference, SVGExternalResourcesRequired, SVGStylable native "*SVGGradientElement" {
+/// @domName WebGLContextEvent
+class WebGLContextEvent extends Event native "*WebGLContextEvent" {
+
+ /** @domName WebGLContextEvent.statusMessage */
+ final String statusMessage;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
- static const int SVG_SPREADMETHOD_PAD = 1;
+/// @domName WebGLDebugRendererInfo
+class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" {
- static const int SVG_SPREADMETHOD_REFLECT = 2;
+ static const int UNMASKED_RENDERER_WEBGL = 0x9246;
- static const int SVG_SPREADMETHOD_REPEAT = 3;
+ static const int UNMASKED_VENDOR_WEBGL = 0x9245;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- static const int SVG_SPREADMETHOD_UNKNOWN = 0;
- /** @domName SVGGradientElement.gradientTransform */
- final SVGAnimatedTransformList gradientTransform;
+/// @domName WebGLDebugShaders
+class WebGLDebugShaders native "*WebGLDebugShaders" {
- /** @domName SVGGradientElement.gradientUnits */
- final SVGAnimatedEnumeration gradientUnits;
+ /** @domName WebGLDebugShaders.getTranslatedShaderSource */
+ String getTranslatedShaderSource(WebGLShader shader) native;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- /** @domName SVGGradientElement.spreadMethod */
- final SVGAnimatedEnumeration spreadMethod;
- // From SVGExternalResourcesRequired
+/// @domName WebGLDepthTexture
+class WebGLDepthTexture native "*WebGLDepthTexture" {
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGStylable
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+/// @domName WebGLFramebuffer
+class WebGLFramebuffer native "*WebGLFramebuffer" {
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+/// @domName WebGLLoseContext
+class WebGLLoseContext native "*WebGLLoseContext" {
- // From SVGURIReference
+ /** @domName WebGLLoseContext.loseContext */
+ void loseContext() native;
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
+ /** @domName WebGLLoseContext.restoreContext */
+ void restoreContext() native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName SVGHKernElement
-class SVGHKernElement extends SVGElement native "*SVGHKernElement" {
+/// @domName WebGLProgram
+class WebGLProgram native "*WebGLProgram" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for 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 SVGImageElement
-class SVGImageElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable native "*SVGImageElement" {
+/// @domName WebGLRenderbuffer
+class WebGLRenderbuffer native "*WebGLRenderbuffer" {
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 SVGImageElement.height */
- final SVGAnimatedLength height;
- /** @domName SVGImageElement.preserveAspectRatio */
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
+/// @domName WebGLRenderingContext
+class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderingContext" {
- /** @domName SVGImageElement.width */
- final SVGAnimatedLength width;
+ static const int ACTIVE_ATTRIBUTES = 0x8B89;
- /** @domName SVGImageElement.x */
- final SVGAnimatedLength x;
+ static const int ACTIVE_TEXTURE = 0x84E0;
- /** @domName SVGImageElement.y */
- final SVGAnimatedLength y;
+ static const int ACTIVE_UNIFORMS = 0x8B86;
- // From SVGExternalResourcesRequired
+ static const int ALIASED_LINE_WIDTH_RANGE = 0x846E;
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ static const int ALIASED_POINT_SIZE_RANGE = 0x846D;
- // From SVGLangSpace
+ static const int ALPHA = 0x1906;
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ static const int ALPHA_BITS = 0x0D55;
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ static const int ALWAYS = 0x0207;
- // From SVGLocatable
+ static const int ARRAY_BUFFER = 0x8892;
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
+ static const int ARRAY_BUFFER_BINDING = 0x8894;
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
+ static const int ATTACHED_SHADERS = 0x8B85;
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
+ static const int BACK = 0x0405;
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
+ static const int BLEND = 0x0BE2;
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
+ static const int BLEND_COLOR = 0x8005;
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
+ static const int BLEND_DST_ALPHA = 0x80CA;
- // From SVGStylable
+ static const int BLEND_DST_RGB = 0x80C8;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ static const int BLEND_EQUATION = 0x8009;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ static const int BLEND_EQUATION_ALPHA = 0x883D;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ static const int BLEND_EQUATION_RGB = 0x8009;
- // From SVGTests
+ static const int BLEND_SRC_ALPHA = 0x80CB;
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
+ static const int BLEND_SRC_RGB = 0x80C9;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+ static const int BLUE_BITS = 0x0D54;
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ static const int BOOL = 0x8B56;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ static const int BOOL_VEC2 = 0x8B57;
- // From SVGTransformable
+ static const int BOOL_VEC3 = 0x8B58;
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
+ static const int BOOL_VEC4 = 0x8B59;
- // From SVGURIReference
+ static const int BROWSER_DEFAULT_WEBGL = 0x9244;
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int BUFFER_SIZE = 0x8764;
+ static const int BUFFER_USAGE = 0x8765;
-/// @domName SVGLangSpace
-abstract class SVGLangSpace {
+ static const int BYTE = 0x1400;
- String xmllang;
+ static const int CCW = 0x0901;
- String xmlspace;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int CLAMP_TO_EDGE = 0x812F;
+ static const int COLOR_ATTACHMENT0 = 0x8CE0;
-/// @domName SVGLength
-class SVGLength native "*SVGLength" {
+ static const int COLOR_BUFFER_BIT = 0x00004000;
- static const int SVG_LENGTHTYPE_CM = 6;
+ static const int COLOR_CLEAR_VALUE = 0x0C22;
- static const int SVG_LENGTHTYPE_EMS = 3;
+ static const int COLOR_WRITEMASK = 0x0C23;
- static const int SVG_LENGTHTYPE_EXS = 4;
+ static const int COMPILE_STATUS = 0x8B81;
- static const int SVG_LENGTHTYPE_IN = 8;
+ static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3;
- static const int SVG_LENGTHTYPE_MM = 7;
+ static const int CONSTANT_ALPHA = 0x8003;
- static const int SVG_LENGTHTYPE_NUMBER = 1;
+ static const int CONSTANT_COLOR = 0x8001;
- static const int SVG_LENGTHTYPE_PC = 10;
+ static const int CONTEXT_LOST_WEBGL = 0x9242;
- static const int SVG_LENGTHTYPE_PERCENTAGE = 2;
+ static const int CULL_FACE = 0x0B44;
- static const int SVG_LENGTHTYPE_PT = 9;
+ static const int CULL_FACE_MODE = 0x0B45;
- static const int SVG_LENGTHTYPE_PX = 5;
+ static const int CURRENT_PROGRAM = 0x8B8D;
- static const int SVG_LENGTHTYPE_UNKNOWN = 0;
+ static const int CURRENT_VERTEX_ATTRIB = 0x8626;
- /** @domName SVGLength.unitType */
- final int unitType;
+ static const int CW = 0x0900;
- /** @domName SVGLength.value */
- num value;
+ static const int DECR = 0x1E03;
- /** @domName SVGLength.valueAsString */
- String valueAsString;
+ static const int DECR_WRAP = 0x8508;
- /** @domName SVGLength.valueInSpecifiedUnits */
- num valueInSpecifiedUnits;
+ static const int DELETE_STATUS = 0x8B80;
- /** @domName SVGLength.convertToSpecifiedUnits */
- void convertToSpecifiedUnits(int unitType) native;
+ static const int DEPTH_ATTACHMENT = 0x8D00;
- /** @domName SVGLength.newValueSpecifiedUnits */
- void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int DEPTH_BITS = 0x0D56;
+ static const int DEPTH_BUFFER_BIT = 0x00000100;
-/// @domName SVGLengthList
-class SVGLengthList implements JavaScriptIndexingBehavior, List<SVGLength> native "*SVGLengthList" {
+ static const int DEPTH_CLEAR_VALUE = 0x0B73;
- /** @domName SVGLengthList.numberOfItems */
- final int numberOfItems;
+ static const int DEPTH_COMPONENT = 0x1902;
- SVGLength operator[](int index) => JS("SVGLength", "#[#]", this, index);
+ static const int DEPTH_COMPONENT16 = 0x81A5;
- void operator[]=(int index, SVGLength value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<SVGLength> mixins.
- // SVGLength is the element type.
+ static const int DEPTH_FUNC = 0x0B74;
- // From Iterable<SVGLength>:
+ static const int DEPTH_RANGE = 0x0B70;
- Iterator<SVGLength> 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<SVGLength>(this);
- }
+ static const int DEPTH_STENCIL = 0x84F9;
- // From Collection<SVGLength>:
+ static const int DEPTH_STENCIL_ATTACHMENT = 0x821A;
- void add(SVGLength value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ static const int DEPTH_TEST = 0x0B71;
- void addLast(SVGLength value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ static const int DEPTH_WRITEMASK = 0x0B72;
- void addAll(Collection<SVGLength> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ static const int DITHER = 0x0BD0;
- bool contains(SVGLength element) => _Collections.contains(this, element);
+ static const int DONT_CARE = 0x1100;
- void forEach(void f(SVGLength element)) => _Collections.forEach(this, f);
+ static const int DST_ALPHA = 0x0304;
- Collection map(f(SVGLength element)) => _Collections.map(this, [], f);
+ static const int DST_COLOR = 0x0306;
- Collection<SVGLength> filter(bool f(SVGLength element)) =>
- _Collections.filter(this, <SVGLength>[], f);
+ static const int DYNAMIC_DRAW = 0x88E8;
- bool every(bool f(SVGLength element)) => _Collections.every(this, f);
+ static const int ELEMENT_ARRAY_BUFFER = 0x8893;
- bool some(bool f(SVGLength element)) => _Collections.some(this, f);
+ static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
- bool get isEmpty => this.length == 0;
+ static const int EQUAL = 0x0202;
- // From List<SVGLength>:
+ static const int FASTEST = 0x1101;
- void sort([Comparator<SVGLength> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
+ static const int FLOAT = 0x1406;
- int indexOf(SVGLength element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
+ static const int FLOAT_MAT2 = 0x8B5A;
- int lastIndexOf(SVGLength element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
+ static const int FLOAT_MAT3 = 0x8B5B;
- SVGLength get last => this[length - 1];
+ static const int FLOAT_MAT4 = 0x8B5C;
- SVGLength removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
+ static const int FLOAT_VEC2 = 0x8B50;
- void setRange(int start, int rangeLength, List<SVGLength> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
+ static const int FLOAT_VEC3 = 0x8B51;
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
+ static const int FLOAT_VEC4 = 0x8B52;
- void insertRange(int start, int rangeLength, [SVGLength initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
+ static const int FRAGMENT_SHADER = 0x8B30;
- List<SVGLength> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGLength>[]);
+ static const int FRAMEBUFFER = 0x8D40;
- // -- end List<SVGLength> mixins.
+ static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
- /** @domName SVGLengthList.appendItem */
- SVGLength appendItem(SVGLength item) native;
+ static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
- /** @domName SVGLengthList.clear */
- void clear() native;
+ static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
- /** @domName SVGLengthList.getItem */
- SVGLength getItem(int index) native;
+ static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
- /** @domName SVGLengthList.initialize */
- SVGLength initialize(SVGLength item) native;
+ static const int FRAMEBUFFER_BINDING = 0x8CA6;
- /** @domName SVGLengthList.insertItemBefore */
- SVGLength insertItemBefore(SVGLength item, int index) native;
+ static const int FRAMEBUFFER_COMPLETE = 0x8CD5;
- /** @domName SVGLengthList.removeItem */
- SVGLength removeItem(int index) native;
+ static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
- /** @domName SVGLengthList.replaceItem */
- SVGLength replaceItem(SVGLength item, int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9;
+ static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
-/// @domName SVGLineElement
-class SVGLineElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGLineElement" {
+ static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
- /** @domName SVGLineElement.x1 */
- final SVGAnimatedLength x1;
+ static const int FRONT = 0x0404;
- /** @domName SVGLineElement.x2 */
- final SVGAnimatedLength x2;
+ static const int FRONT_AND_BACK = 0x0408;
- /** @domName SVGLineElement.y1 */
- final SVGAnimatedLength y1;
+ static const int FRONT_FACE = 0x0B46;
- /** @domName SVGLineElement.y2 */
- final SVGAnimatedLength y2;
+ static const int FUNC_ADD = 0x8006;
- // From SVGExternalResourcesRequired
+ static const int FUNC_REVERSE_SUBTRACT = 0x800B;
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ static const int FUNC_SUBTRACT = 0x800A;
- // From SVGLangSpace
+ static const int GENERATE_MIPMAP_HINT = 0x8192;
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ static const int GEQUAL = 0x0206;
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ static const int GREATER = 0x0204;
- // From SVGLocatable
+ static const int GREEN_BITS = 0x0D53;
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
+ static const int HIGH_FLOAT = 0x8DF2;
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
+ static const int HIGH_INT = 0x8DF5;
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
+ static const int INCR = 0x1E02;
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
+ static const int INCR_WRAP = 0x8507;
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
+ static const int INT = 0x1404;
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
+ static const int INT_VEC2 = 0x8B53;
- // From SVGStylable
+ static const int INT_VEC3 = 0x8B54;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ static const int INT_VEC4 = 0x8B55;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ static const int INVALID_ENUM = 0x0500;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506;
- // From SVGTests
+ static const int INVALID_OPERATION = 0x0502;
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
+ static const int INVALID_VALUE = 0x0501;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+ static const int INVERT = 0x150A;
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ static const int KEEP = 0x1E00;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ static const int LEQUAL = 0x0203;
- // From SVGTransformable
+ static const int LESS = 0x0201;
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int LINEAR = 0x2601;
+ static const int LINEAR_MIPMAP_LINEAR = 0x2703;
-/// @domName SVGLinearGradientElement
-class SVGLinearGradientElement extends SVGGradientElement native "*SVGLinearGradientElement" {
+ static const int LINEAR_MIPMAP_NEAREST = 0x2701;
- /** @domName SVGLinearGradientElement.x1 */
- final SVGAnimatedLength x1;
+ static const int LINES = 0x0001;
- /** @domName SVGLinearGradientElement.x2 */
- final SVGAnimatedLength x2;
+ static const int LINE_LOOP = 0x0002;
- /** @domName SVGLinearGradientElement.y1 */
- final SVGAnimatedLength y1;
+ static const int LINE_STRIP = 0x0003;
- /** @domName SVGLinearGradientElement.y2 */
- final SVGAnimatedLength y2;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int LINE_WIDTH = 0x0B21;
+ static const int LINK_STATUS = 0x8B82;
-/// @domName SVGLocatable
-abstract class SVGLocatable {
+ static const int LOW_FLOAT = 0x8DF0;
- SVGElement farthestViewportElement;
+ static const int LOW_INT = 0x8DF3;
- SVGElement nearestViewportElement;
+ static const int LUMINANCE = 0x1909;
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox();
+ static const int LUMINANCE_ALPHA = 0x190A;
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM();
+ static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM();
+ static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element);
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD;
+ static const int MAX_RENDERBUFFER_SIZE = 0x84E8;
-/// @domName SVGMPathElement
-class SVGMPathElement extends SVGElement implements SVGURIReference, SVGExternalResourcesRequired native "*SVGMPathElement" {
+ static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872;
- // From SVGExternalResourcesRequired
+ static const int MAX_TEXTURE_SIZE = 0x0D33;
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ static const int MAX_VARYING_VECTORS = 0x8DFC;
- // From SVGURIReference
+ static const int MAX_VERTEX_ATTRIBS = 0x8869;
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
+ static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB;
-/// @domName SVGMarkerElement
-class SVGMarkerElement extends SVGElement implements SVGLangSpace, SVGFitToViewBox, SVGExternalResourcesRequired, SVGStylable native "*SVGMarkerElement" {
+ static const int MAX_VIEWPORT_DIMS = 0x0D3A;
- static const int SVG_MARKERUNITS_STROKEWIDTH = 2;
+ static const int MEDIUM_FLOAT = 0x8DF1;
- static const int SVG_MARKERUNITS_UNKNOWN = 0;
+ static const int MEDIUM_INT = 0x8DF4;
- static const int SVG_MARKERUNITS_USERSPACEONUSE = 1;
+ static const int MIRRORED_REPEAT = 0x8370;
- static const int SVG_MARKER_ORIENT_ANGLE = 2;
+ static const int NEAREST = 0x2600;
- static const int SVG_MARKER_ORIENT_AUTO = 1;
+ static const int NEAREST_MIPMAP_LINEAR = 0x2702;
- static const int SVG_MARKER_ORIENT_UNKNOWN = 0;
+ static const int NEAREST_MIPMAP_NEAREST = 0x2700;
- /** @domName SVGMarkerElement.markerHeight */
- final SVGAnimatedLength markerHeight;
+ static const int NEVER = 0x0200;
- /** @domName SVGMarkerElement.markerUnits */
- final SVGAnimatedEnumeration markerUnits;
+ static const int NICEST = 0x1102;
- /** @domName SVGMarkerElement.markerWidth */
- final SVGAnimatedLength markerWidth;
+ static const int NONE = 0;
- /** @domName SVGMarkerElement.orientAngle */
- final SVGAnimatedAngle orientAngle;
+ static const int NOTEQUAL = 0x0205;
- /** @domName SVGMarkerElement.orientType */
- final SVGAnimatedEnumeration orientType;
+ static const int NO_ERROR = 0;
- /** @domName SVGMarkerElement.refX */
- final SVGAnimatedLength refX;
+ static const int ONE = 1;
- /** @domName SVGMarkerElement.refY */
- final SVGAnimatedLength refY;
+ static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004;
- /** @domName SVGMarkerElement.setOrientToAngle */
- void setOrientToAngle(SVGAngle angle) native;
+ static const int ONE_MINUS_CONSTANT_COLOR = 0x8002;
- /** @domName SVGMarkerElement.setOrientToAuto */
- void setOrientToAuto() native;
+ static const int ONE_MINUS_DST_ALPHA = 0x0305;
- // From SVGExternalResourcesRequired
+ static const int ONE_MINUS_DST_COLOR = 0x0307;
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ static const int ONE_MINUS_SRC_ALPHA = 0x0303;
- // From SVGFitToViewBox
+ static const int ONE_MINUS_SRC_COLOR = 0x0301;
- /** @domName SVGFitToViewBox.preserveAspectRatio */
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
+ static const int OUT_OF_MEMORY = 0x0505;
- /** @domName SVGFitToViewBox.viewBox */
- final SVGAnimatedRect viewBox;
+ static const int PACK_ALIGNMENT = 0x0D05;
- // From SVGLangSpace
+ static const int POINTS = 0x0000;
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ static const int POLYGON_OFFSET_FACTOR = 0x8038;
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ static const int POLYGON_OFFSET_FILL = 0x8037;
- // From SVGStylable
+ static const int POLYGON_OFFSET_UNITS = 0x2A00;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ static const int RED_BITS = 0x0D52;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ static const int RENDERBUFFER = 0x8D41;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53;
+ static const int RENDERBUFFER_BINDING = 0x8CA7;
-/// @domName SVGMaskElement
-class SVGMaskElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGExternalResourcesRequired native "*SVGMaskElement" {
+ static const int RENDERBUFFER_BLUE_SIZE = 0x8D52;
- /** @domName SVGMaskElement.height */
- final SVGAnimatedLength height;
+ static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54;
- /** @domName SVGMaskElement.maskContentUnits */
- final SVGAnimatedEnumeration maskContentUnits;
+ static const int RENDERBUFFER_GREEN_SIZE = 0x8D51;
- /** @domName SVGMaskElement.maskUnits */
- final SVGAnimatedEnumeration maskUnits;
+ static const int RENDERBUFFER_HEIGHT = 0x8D43;
- /** @domName SVGMaskElement.width */
- final SVGAnimatedLength width;
+ static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
- /** @domName SVGMaskElement.x */
- final SVGAnimatedLength x;
+ static const int RENDERBUFFER_RED_SIZE = 0x8D50;
- /** @domName SVGMaskElement.y */
- final SVGAnimatedLength y;
+ static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55;
- // From SVGExternalResourcesRequired
+ static const int RENDERBUFFER_WIDTH = 0x8D42;
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ static const int RENDERER = 0x1F01;
- // From SVGLangSpace
+ static const int REPEAT = 0x2901;
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ static const int REPLACE = 0x1E01;
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ static const int RGB = 0x1907;
- // From SVGStylable
+ static const int RGB565 = 0x8D62;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ static const int RGB5_A1 = 0x8057;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ static const int RGBA = 0x1908;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ static const int RGBA4 = 0x8056;
- // From SVGTests
+ static const int SAMPLER_2D = 0x8B5E;
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
+ static const int SAMPLER_CUBE = 0x8B60;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+ static const int SAMPLES = 0x80A9;
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int SAMPLE_BUFFERS = 0x80A8;
+ static const int SAMPLE_COVERAGE = 0x80A0;
-/// @domName SVGMatrix
-class SVGMatrix native "*SVGMatrix" {
+ static const int SAMPLE_COVERAGE_INVERT = 0x80AB;
- /** @domName SVGMatrix.a */
- num a;
+ static const int SAMPLE_COVERAGE_VALUE = 0x80AA;
- /** @domName SVGMatrix.b */
- num b;
+ static const int SCISSOR_BOX = 0x0C10;
- /** @domName SVGMatrix.c */
- num c;
+ static const int SCISSOR_TEST = 0x0C11;
- /** @domName SVGMatrix.d */
- num d;
+ static const int SHADER_TYPE = 0x8B4F;
- /** @domName SVGMatrix.e */
- num e;
+ static const int SHADING_LANGUAGE_VERSION = 0x8B8C;
- /** @domName SVGMatrix.f */
- num f;
+ static const int SHORT = 0x1402;
- /** @domName SVGMatrix.flipX */
- SVGMatrix flipX() native;
+ static const int SRC_ALPHA = 0x0302;
- /** @domName SVGMatrix.flipY */
- SVGMatrix flipY() native;
+ static const int SRC_ALPHA_SATURATE = 0x0308;
- /** @domName SVGMatrix.inverse */
- SVGMatrix inverse() native;
+ static const int SRC_COLOR = 0x0300;
- /** @domName SVGMatrix.multiply */
- SVGMatrix multiply(SVGMatrix secondMatrix) native;
+ static const int STATIC_DRAW = 0x88E4;
- /** @domName SVGMatrix.rotate */
- SVGMatrix rotate(num angle) native;
+ static const int STENCIL_ATTACHMENT = 0x8D20;
- /** @domName SVGMatrix.rotateFromVector */
- SVGMatrix rotateFromVector(num x, num y) native;
+ static const int STENCIL_BACK_FAIL = 0x8801;
- /** @domName SVGMatrix.scale */
- SVGMatrix scale(num scaleFactor) native;
+ static const int STENCIL_BACK_FUNC = 0x8800;
- /** @domName SVGMatrix.scaleNonUniform */
- SVGMatrix scaleNonUniform(num scaleFactorX, num scaleFactorY) native;
+ static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
- /** @domName SVGMatrix.skewX */
- SVGMatrix skewX(num angle) native;
+ static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
- /** @domName SVGMatrix.skewY */
- SVGMatrix skewY(num angle) native;
+ static const int STENCIL_BACK_REF = 0x8CA3;
- /** @domName SVGMatrix.translate */
- SVGMatrix translate(num x, num y) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int STENCIL_BACK_VALUE_MASK = 0x8CA4;
+ static const int STENCIL_BACK_WRITEMASK = 0x8CA5;
-/// @domName SVGMetadataElement
-class SVGMetadataElement extends SVGElement native "*SVGMetadataElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int STENCIL_BITS = 0x0D57;
+ static const int STENCIL_BUFFER_BIT = 0x00000400;
-/// @domName SVGMissingGlyphElement
-class SVGMissingGlyphElement extends SVGElement native "*SVGMissingGlyphElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int STENCIL_CLEAR_VALUE = 0x0B91;
+ static const int STENCIL_FAIL = 0x0B94;
-/// @domName SVGNumber
-class SVGNumber native "*SVGNumber" {
+ static const int STENCIL_FUNC = 0x0B92;
- /** @domName SVGNumber.value */
- num value;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int STENCIL_INDEX = 0x1901;
+ static const int STENCIL_INDEX8 = 0x8D48;
-/// @domName SVGNumberList
-class SVGNumberList implements JavaScriptIndexingBehavior, List<SVGNumber> native "*SVGNumberList" {
+ static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95;
- /** @domName SVGNumberList.numberOfItems */
- final int numberOfItems;
+ static const int STENCIL_PASS_DEPTH_PASS = 0x0B96;
- SVGNumber operator[](int index) => JS("SVGNumber", "#[#]", this, index);
+ static const int STENCIL_REF = 0x0B97;
- void operator[]=(int index, SVGNumber value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<SVGNumber> mixins.
- // SVGNumber is the element type.
+ static const int STENCIL_TEST = 0x0B90;
- // From Iterable<SVGNumber>:
+ static const int STENCIL_VALUE_MASK = 0x0B93;
- Iterator<SVGNumber> 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<SVGNumber>(this);
- }
+ static const int STENCIL_WRITEMASK = 0x0B98;
- // From Collection<SVGNumber>:
+ static const int STREAM_DRAW = 0x88E0;
- void add(SVGNumber value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ static const int SUBPIXEL_BITS = 0x0D50;
- void addLast(SVGNumber value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ static const int TEXTURE = 0x1702;
- void addAll(Collection<SVGNumber> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ static const int TEXTURE0 = 0x84C0;
- bool contains(SVGNumber element) => _Collections.contains(this, element);
+ static const int TEXTURE1 = 0x84C1;
- void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f);
+ static const int TEXTURE10 = 0x84CA;
- Collection map(f(SVGNumber element)) => _Collections.map(this, [], f);
+ static const int TEXTURE11 = 0x84CB;
- Collection<SVGNumber> filter(bool f(SVGNumber element)) =>
- _Collections.filter(this, <SVGNumber>[], f);
+ static const int TEXTURE12 = 0x84CC;
- bool every(bool f(SVGNumber element)) => _Collections.every(this, f);
+ static const int TEXTURE13 = 0x84CD;
- bool some(bool f(SVGNumber element)) => _Collections.some(this, f);
+ static const int TEXTURE14 = 0x84CE;
- bool get isEmpty => this.length == 0;
+ static const int TEXTURE15 = 0x84CF;
- // From List<SVGNumber>:
+ static const int TEXTURE16 = 0x84D0;
- void sort([Comparator<SVGNumber> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
+ static const int TEXTURE17 = 0x84D1;
- int indexOf(SVGNumber element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
+ static const int TEXTURE18 = 0x84D2;
- int lastIndexOf(SVGNumber element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
+ static const int TEXTURE19 = 0x84D3;
- SVGNumber get last => this[length - 1];
+ static const int TEXTURE2 = 0x84C2;
- SVGNumber removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
+ static const int TEXTURE20 = 0x84D4;
- void setRange(int start, int rangeLength, List<SVGNumber> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
+ static const int TEXTURE21 = 0x84D5;
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
+ static const int TEXTURE22 = 0x84D6;
- void insertRange(int start, int rangeLength, [SVGNumber initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
+ static const int TEXTURE23 = 0x84D7;
- List<SVGNumber> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGNumber>[]);
+ static const int TEXTURE24 = 0x84D8;
- // -- end List<SVGNumber> mixins.
+ static const int TEXTURE25 = 0x84D9;
- /** @domName SVGNumberList.appendItem */
- SVGNumber appendItem(SVGNumber item) native;
+ static const int TEXTURE26 = 0x84DA;
- /** @domName SVGNumberList.clear */
- void clear() native;
+ static const int TEXTURE27 = 0x84DB;
- /** @domName SVGNumberList.getItem */
- SVGNumber getItem(int index) native;
+ static const int TEXTURE28 = 0x84DC;
- /** @domName SVGNumberList.initialize */
- SVGNumber initialize(SVGNumber item) native;
+ static const int TEXTURE29 = 0x84DD;
- /** @domName SVGNumberList.insertItemBefore */
- SVGNumber insertItemBefore(SVGNumber item, int index) native;
+ static const int TEXTURE3 = 0x84C3;
- /** @domName SVGNumberList.removeItem */
- SVGNumber removeItem(int index) native;
+ static const int TEXTURE30 = 0x84DE;
- /** @domName SVGNumberList.replaceItem */
- SVGNumber replaceItem(SVGNumber item, int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int TEXTURE31 = 0x84DF;
+ static const int TEXTURE4 = 0x84C4;
-/// @domName SVGPaint
-class SVGPaint extends SVGColor native "*SVGPaint" {
+ static const int TEXTURE5 = 0x84C5;
- static const int SVG_PAINTTYPE_CURRENTCOLOR = 102;
+ static const int TEXTURE6 = 0x84C6;
- static const int SVG_PAINTTYPE_NONE = 101;
+ static const int TEXTURE7 = 0x84C7;
- static const int SVG_PAINTTYPE_RGBCOLOR = 1;
+ static const int TEXTURE8 = 0x84C8;
- static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
+ static const int TEXTURE9 = 0x84C9;
- static const int SVG_PAINTTYPE_UNKNOWN = 0;
+ static const int TEXTURE_2D = 0x0DE1;
- static const int SVG_PAINTTYPE_URI = 107;
+ static const int TEXTURE_BINDING_2D = 0x8069;
- static const int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
+ static const int TEXTURE_BINDING_CUBE_MAP = 0x8514;
- static const int SVG_PAINTTYPE_URI_NONE = 103;
+ static const int TEXTURE_CUBE_MAP = 0x8513;
- static const int SVG_PAINTTYPE_URI_RGBCOLOR = 105;
+ static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
- static const int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
+ static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
- /** @domName SVGPaint.paintType */
- final int paintType;
+ static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
- /** @domName SVGPaint.uri */
- final String uri;
+ static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
- /** @domName SVGPaint.setPaint */
- void setPaint(int paintType, String uri, String rgbColor, String iccColor) native;
+ static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
- /** @domName SVGPaint.setUri */
- void setUri(String uri) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
+ static const int TEXTURE_MAG_FILTER = 0x2800;
-/// @domName SVGPathElement
-class SVGPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGPathElement" {
+ static const int TEXTURE_MIN_FILTER = 0x2801;
- /** @domName SVGPathElement.animatedNormalizedPathSegList */
- final SVGPathSegList animatedNormalizedPathSegList;
+ static const int TEXTURE_WRAP_S = 0x2802;
- /** @domName SVGPathElement.animatedPathSegList */
- final SVGPathSegList animatedPathSegList;
+ static const int TEXTURE_WRAP_T = 0x2803;
- /** @domName SVGPathElement.normalizedPathSegList */
- final SVGPathSegList normalizedPathSegList;
+ static const int TRIANGLES = 0x0004;
- /** @domName SVGPathElement.pathLength */
- final SVGAnimatedNumber pathLength;
+ static const int TRIANGLE_FAN = 0x0006;
- /** @domName SVGPathElement.pathSegList */
- final SVGPathSegList pathSegList;
+ static const int TRIANGLE_STRIP = 0x0005;
- /** @domName SVGPathElement.createSVGPathSegArcAbs */
- SVGPathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native;
+ static const int UNPACK_ALIGNMENT = 0x0CF5;
- /** @domName SVGPathElement.createSVGPathSegArcRel */
- SVGPathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native;
+ static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
- /** @domName SVGPathElement.createSVGPathSegClosePath */
- SVGPathSegClosePath createSVGPathSegClosePath() native;
+ static const int UNPACK_FLIP_Y_WEBGL = 0x9240;
- /** @domName SVGPathElement.createSVGPathSegCurvetoCubicAbs */
- SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1, num y1, num x2, num y2) native;
+ static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
- /** @domName SVGPathElement.createSVGPathSegCurvetoCubicRel */
- SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1, num y1, num x2, num y2) native;
+ static const int UNSIGNED_BYTE = 0x1401;
- /** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs */
- SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, num y, num x2, num y2) native;
+ static const int UNSIGNED_INT = 0x1405;
- /** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel */
- SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, num y, num x2, num y2) native;
+ static const int UNSIGNED_SHORT = 0x1403;
- /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticAbs */
- SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y, num x1, num y1) native;
+ static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033;
- /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticRel */
- SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y, num x1, num y1) native;
+ static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034;
- /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs */
- SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(num x, num y) native;
+ static const int UNSIGNED_SHORT_5_6_5 = 0x8363;
- /** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel */
- SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(num x, num y) native;
+ static const int VALIDATE_STATUS = 0x8B83;
- /** @domName SVGPathElement.createSVGPathSegLinetoAbs */
- SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y) native;
+ static const int VENDOR = 0x1F00;
- /** @domName SVGPathElement.createSVGPathSegLinetoHorizontalAbs */
- SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x) native;
+ static const int VERSION = 0x1F02;
- /** @domName SVGPathElement.createSVGPathSegLinetoHorizontalRel */
- SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x) native;
+ static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
- /** @domName SVGPathElement.createSVGPathSegLinetoRel */
- SVGPathSegLinetoRel createSVGPathSegLinetoRel(num x, num y) native;
+ static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
- /** @domName SVGPathElement.createSVGPathSegLinetoVerticalAbs */
- SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y) native;
+ static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
- /** @domName SVGPathElement.createSVGPathSegLinetoVerticalRel */
- SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y) native;
+ static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
- /** @domName SVGPathElement.createSVGPathSegMovetoAbs */
- SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y) native;
+ static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
- /** @domName SVGPathElement.createSVGPathSegMovetoRel */
- SVGPathSegMovetoRel createSVGPathSegMovetoRel(num x, num y) native;
+ static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
- /** @domName SVGPathElement.getPathSegAtLength */
- int getPathSegAtLength(num distance) native;
+ static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
- /** @domName SVGPathElement.getPointAtLength */
- SVGPoint getPointAtLength(num distance) native;
+ static const int VERTEX_SHADER = 0x8B31;
- /** @domName SVGPathElement.getTotalLength */
- num getTotalLength() native;
+ static const int VIEWPORT = 0x0BA2;
- // From SVGExternalResourcesRequired
+ static const int ZERO = 0;
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
+ /** @domName WebGLRenderingContext.drawingBufferHeight */
+ final int drawingBufferHeight;
- // From SVGLangSpace
+ /** @domName WebGLRenderingContext.drawingBufferWidth */
+ final int drawingBufferWidth;
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
+ /** @domName WebGLRenderingContext.activeTexture */
+ void activeTexture(int texture) native;
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
+ /** @domName WebGLRenderingContext.attachShader */
+ void attachShader(WebGLProgram program, WebGLShader shader) native;
- // From SVGLocatable
+ /** @domName WebGLRenderingContext.bindAttribLocation */
+ void bindAttribLocation(WebGLProgram program, int index, String name) native;
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
+ /** @domName WebGLRenderingContext.bindBuffer */
+ void bindBuffer(int target, WebGLBuffer buffer) native;
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
+ /** @domName WebGLRenderingContext.bindFramebuffer */
+ void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native;
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
+ /** @domName WebGLRenderingContext.bindRenderbuffer */
+ void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native;
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
+ /** @domName WebGLRenderingContext.bindTexture */
+ void bindTexture(int target, WebGLTexture texture) native;
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
+ /** @domName WebGLRenderingContext.blendColor */
+ void blendColor(num red, num green, num blue, num alpha) native;
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
+ /** @domName WebGLRenderingContext.blendEquation */
+ void blendEquation(int mode) native;
- // From SVGStylable
+ /** @domName WebGLRenderingContext.blendEquationSeparate */
+ void blendEquationSeparate(int modeRGB, int modeAlpha) native;
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
+ /** @domName WebGLRenderingContext.blendFunc */
+ void blendFunc(int sfactor, int dfactor) native;
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
+ /** @domName WebGLRenderingContext.blendFuncSeparate */
+ void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) native;
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
+ /** @domName WebGLRenderingContext.bufferData */
+ void bufferData(int target, data_OR_size, int usage) native;
- // From SVGTests
+ /** @domName WebGLRenderingContext.bufferSubData */
+ void bufferSubData(int target, int offset, data) native;
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
+ /** @domName WebGLRenderingContext.checkFramebufferStatus */
+ int checkFramebufferStatus(int target) native;
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
+ /** @domName WebGLRenderingContext.clear */
+ void clear(int mask) native;
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
+ /** @domName WebGLRenderingContext.clearColor */
+ void clearColor(num red, num green, num blue, num alpha) native;
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
+ /** @domName WebGLRenderingContext.clearDepth */
+ void clearDepth(num depth) native;
- // From SVGTransformable
+ /** @domName WebGLRenderingContext.clearStencil */
+ void clearStencil(int s) native;
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLRenderingContext.colorMask */
+ void colorMask(bool red, bool green, bool blue, bool alpha) native;
+ /** @domName WebGLRenderingContext.compileShader */
+ void compileShader(WebGLShader shader) native;
-/// @domName SVGPathSeg
-class SVGPathSeg native "*SVGPathSeg" {
+ /** @domName WebGLRenderingContext.compressedTexImage2D */
+ void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, ArrayBufferView data) native;
- static const int PATHSEG_ARC_ABS = 10;
+ /** @domName WebGLRenderingContext.compressedTexSubImage2D */
+ void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) native;
- static const int PATHSEG_ARC_REL = 11;
+ /** @domName WebGLRenderingContext.copyTexImage2D */
+ void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) native;
- static const int PATHSEG_CLOSEPATH = 1;
+ /** @domName WebGLRenderingContext.copyTexSubImage2D */
+ void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native;
- static const int PATHSEG_CURVETO_CUBIC_ABS = 6;
+ /** @domName WebGLRenderingContext.createBuffer */
+ WebGLBuffer createBuffer() native;
- static const int PATHSEG_CURVETO_CUBIC_REL = 7;
+ /** @domName WebGLRenderingContext.createFramebuffer */
+ WebGLFramebuffer createFramebuffer() native;
- static const int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
+ /** @domName WebGLRenderingContext.createProgram */
+ WebGLProgram createProgram() native;
- static const int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
+ /** @domName WebGLRenderingContext.createRenderbuffer */
+ WebGLRenderbuffer createRenderbuffer() native;
- static const int PATHSEG_CURVETO_QUADRATIC_ABS = 8;
+ /** @domName WebGLRenderingContext.createShader */
+ WebGLShader createShader(int type) native;
- static const int PATHSEG_CURVETO_QUADRATIC_REL = 9;
+ /** @domName WebGLRenderingContext.createTexture */
+ WebGLTexture createTexture() native;
- static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
+ /** @domName WebGLRenderingContext.cullFace */
+ void cullFace(int mode) native;
- static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
+ /** @domName WebGLRenderingContext.deleteBuffer */
+ void deleteBuffer(WebGLBuffer buffer) native;
- static const int PATHSEG_LINETO_ABS = 4;
+ /** @domName WebGLRenderingContext.deleteFramebuffer */
+ void deleteFramebuffer(WebGLFramebuffer framebuffer) native;
- static const int PATHSEG_LINETO_HORIZONTAL_ABS = 12;
+ /** @domName WebGLRenderingContext.deleteProgram */
+ void deleteProgram(WebGLProgram program) native;
- static const int PATHSEG_LINETO_HORIZONTAL_REL = 13;
+ /** @domName WebGLRenderingContext.deleteRenderbuffer */
+ void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native;
- static const int PATHSEG_LINETO_REL = 5;
+ /** @domName WebGLRenderingContext.deleteShader */
+ void deleteShader(WebGLShader shader) native;
- static const int PATHSEG_LINETO_VERTICAL_ABS = 14;
+ /** @domName WebGLRenderingContext.deleteTexture */
+ void deleteTexture(WebGLTexture texture) native;
- static const int PATHSEG_LINETO_VERTICAL_REL = 15;
+ /** @domName WebGLRenderingContext.depthFunc */
+ void depthFunc(int func) native;
- static const int PATHSEG_MOVETO_ABS = 2;
+ /** @domName WebGLRenderingContext.depthMask */
+ void depthMask(bool flag) native;
- static const int PATHSEG_MOVETO_REL = 3;
+ /** @domName WebGLRenderingContext.depthRange */
+ void depthRange(num zNear, num zFar) native;
- static const int PATHSEG_UNKNOWN = 0;
+ /** @domName WebGLRenderingContext.detachShader */
+ void detachShader(WebGLProgram program, WebGLShader shader) native;
- /** @domName SVGPathSeg.pathSegType */
- final int pathSegType;
+ /** @domName WebGLRenderingContext.disable */
+ void disable(int cap) native;
- /** @domName SVGPathSeg.pathSegTypeAsLetter */
- final String pathSegTypeAsLetter;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLRenderingContext.disableVertexAttribArray */
+ void disableVertexAttribArray(int index) native;
+ /** @domName WebGLRenderingContext.drawArrays */
+ void drawArrays(int mode, int first, int count) native;
-/// @domName SVGPathSegArcAbs
-class SVGPathSegArcAbs extends SVGPathSeg native "*SVGPathSegArcAbs" {
+ /** @domName WebGLRenderingContext.drawElements */
+ void drawElements(int mode, int count, int type, int offset) native;
- /** @domName SVGPathSegArcAbs.angle */
- num angle;
+ /** @domName WebGLRenderingContext.enable */
+ void enable(int cap) native;
- /** @domName SVGPathSegArcAbs.largeArcFlag */
- bool largeArcFlag;
+ /** @domName WebGLRenderingContext.enableVertexAttribArray */
+ void enableVertexAttribArray(int index) native;
- /** @domName SVGPathSegArcAbs.r1 */
- num r1;
+ /** @domName WebGLRenderingContext.finish */
+ void finish() native;
- /** @domName SVGPathSegArcAbs.r2 */
- num r2;
+ /** @domName WebGLRenderingContext.flush */
+ void flush() native;
- /** @domName SVGPathSegArcAbs.sweepFlag */
- bool sweepFlag;
+ /** @domName WebGLRenderingContext.framebufferRenderbuffer */
+ void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, WebGLRenderbuffer renderbuffer) native;
- /** @domName SVGPathSegArcAbs.x */
- num x;
+ /** @domName WebGLRenderingContext.framebufferTexture2D */
+ void framebufferTexture2D(int target, int attachment, int textarget, WebGLTexture texture, int level) native;
- /** @domName SVGPathSegArcAbs.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ /** @domName WebGLRenderingContext.frontFace */
+ void frontFace(int mode) native;
+ /** @domName WebGLRenderingContext.generateMipmap */
+ void generateMipmap(int target) native;
-/// @domName SVGPathSegArcRel
-class SVGPathSegArcRel extends SVGPathSeg native "*SVGPathSegArcRel" {
+ /** @domName WebGLRenderingContext.getActiveAttrib */
+ WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native;
- /** @domName SVGPathSegArcRel.angle */
- num angle;
+ /** @domName WebGLRenderingContext.getActiveUniform */
+ WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native;
- /** @domName SVGPathSegArcRel.largeArcFlag */
- bool largeArcFlag;
+ /** @domName WebGLRenderingContext.getAttachedShaders */
+ void getAttachedShaders(WebGLProgram program) native;
- /** @domName SVGPathSegArcRel.r1 */
- num r1;
+ /** @domName WebGLRenderingContext.getAttribLocation */
+ int getAttribLocation(WebGLProgram program, String name) native;
- /** @domName SVGPathSegArcRel.r2 */
- num r2;
+ /** @domName WebGLRenderingContext.getBufferParameter */
+ Object getBufferParameter(int target, int pname) native;
- /** @domName SVGPathSegArcRel.sweepFlag */
- bool sweepFlag;
+ /** @domName WebGLRenderingContext.getContextAttributes */
+ WebGLContextAttributes getContextAttributes() native;
- /** @domName SVGPathSegArcRel.x */
- num x;
+ /** @domName WebGLRenderingContext.getError */
+ int getError() native;
- /** @domName SVGPathSegArcRel.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ /** @domName WebGLRenderingContext.getExtension */
+ Object getExtension(String name) native;
+ /** @domName WebGLRenderingContext.getFramebufferAttachmentParameter */
+ Object getFramebufferAttachmentParameter(int target, int attachment, int pname) native;
-/// @domName SVGPathSegClosePath
-class SVGPathSegClosePath extends SVGPathSeg native "*SVGPathSegClosePath" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLRenderingContext.getParameter */
+ Object getParameter(int pname) native;
+ /** @domName WebGLRenderingContext.getProgramInfoLog */
+ String getProgramInfoLog(WebGLProgram program) native;
-/// @domName SVGPathSegCurvetoCubicAbs
-class SVGPathSegCurvetoCubicAbs extends SVGPathSeg native "*SVGPathSegCurvetoCubicAbs" {
+ /** @domName WebGLRenderingContext.getProgramParameter */
+ Object getProgramParameter(WebGLProgram program, int pname) native;
- /** @domName SVGPathSegCurvetoCubicAbs.x */
- num x;
+ /** @domName WebGLRenderingContext.getRenderbufferParameter */
+ Object getRenderbufferParameter(int target, int pname) native;
- /** @domName SVGPathSegCurvetoCubicAbs.x1 */
- num x1;
+ /** @domName WebGLRenderingContext.getShaderInfoLog */
+ String getShaderInfoLog(WebGLShader shader) native;
- /** @domName SVGPathSegCurvetoCubicAbs.x2 */
- num x2;
+ /** @domName WebGLRenderingContext.getShaderParameter */
+ Object getShaderParameter(WebGLShader shader, int pname) native;
- /** @domName SVGPathSegCurvetoCubicAbs.y */
- num y;
+ /** @domName WebGLRenderingContext.getShaderPrecisionFormat */
+ WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisiontype) native;
- /** @domName SVGPathSegCurvetoCubicAbs.y1 */
- num y1;
+ /** @domName WebGLRenderingContext.getShaderSource */
+ String getShaderSource(WebGLShader shader) native;
- /** @domName SVGPathSegCurvetoCubicAbs.y2 */
- num y2;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLRenderingContext.getSupportedExtensions */
+ List<String> getSupportedExtensions() native;
+ /** @domName WebGLRenderingContext.getTexParameter */
+ Object getTexParameter(int target, int pname) native;
-/// @domName SVGPathSegCurvetoCubicRel
-class SVGPathSegCurvetoCubicRel extends SVGPathSeg native "*SVGPathSegCurvetoCubicRel" {
+ /** @domName WebGLRenderingContext.getUniform */
+ Object getUniform(WebGLProgram program, WebGLUniformLocation location) native;
- /** @domName SVGPathSegCurvetoCubicRel.x */
- num x;
-
- /** @domName SVGPathSegCurvetoCubicRel.x1 */
- num x1;
-
- /** @domName SVGPathSegCurvetoCubicRel.x2 */
- num x2;
-
- /** @domName SVGPathSegCurvetoCubicRel.y */
- num y;
-
- /** @domName SVGPathSegCurvetoCubicRel.y1 */
- num y1;
-
- /** @domName SVGPathSegCurvetoCubicRel.y2 */
- num y2;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGPathSegCurvetoCubicSmoothAbs
-class SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg native "*SVGPathSegCurvetoCubicSmoothAbs" {
-
- /** @domName SVGPathSegCurvetoCubicSmoothAbs.x */
- num x;
-
- /** @domName SVGPathSegCurvetoCubicSmoothAbs.x2 */
- num x2;
-
- /** @domName SVGPathSegCurvetoCubicSmoothAbs.y */
- num y;
-
- /** @domName SVGPathSegCurvetoCubicSmoothAbs.y2 */
- num y2;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGPathSegCurvetoCubicSmoothRel
-class SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg native "*SVGPathSegCurvetoCubicSmoothRel" {
-
- /** @domName SVGPathSegCurvetoCubicSmoothRel.x */
- num x;
-
- /** @domName SVGPathSegCurvetoCubicSmoothRel.x2 */
- num x2;
-
- /** @domName SVGPathSegCurvetoCubicSmoothRel.y */
- num y;
-
- /** @domName SVGPathSegCurvetoCubicSmoothRel.y2 */
- num y2;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGPathSegCurvetoQuadraticAbs
-class SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg native "*SVGPathSegCurvetoQuadraticAbs" {
-
- /** @domName SVGPathSegCurvetoQuadraticAbs.x */
- num x;
-
- /** @domName SVGPathSegCurvetoQuadraticAbs.x1 */
- num x1;
-
- /** @domName SVGPathSegCurvetoQuadraticAbs.y */
- num y;
-
- /** @domName SVGPathSegCurvetoQuadraticAbs.y1 */
- num y1;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGPathSegCurvetoQuadraticRel
-class SVGPathSegCurvetoQuadraticRel extends SVGPathSeg native "*SVGPathSegCurvetoQuadraticRel" {
-
- /** @domName SVGPathSegCurvetoQuadraticRel.x */
- num x;
-
- /** @domName SVGPathSegCurvetoQuadraticRel.x1 */
- num x1;
-
- /** @domName SVGPathSegCurvetoQuadraticRel.y */
- num y;
-
- /** @domName SVGPathSegCurvetoQuadraticRel.y1 */
- num y1;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGPathSegCurvetoQuadraticSmoothAbs
-class SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg native "*SVGPathSegCurvetoQuadraticSmoothAbs" {
-
- /** @domName SVGPathSegCurvetoQuadraticSmoothAbs.x */
- num x;
-
- /** @domName SVGPathSegCurvetoQuadraticSmoothAbs.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPathSegCurvetoQuadraticSmoothRel
-class SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg native "*SVGPathSegCurvetoQuadraticSmoothRel" {
-
- /** @domName SVGPathSegCurvetoQuadraticSmoothRel.x */
- num x;
-
- /** @domName SVGPathSegCurvetoQuadraticSmoothRel.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPathSegLinetoAbs
-class SVGPathSegLinetoAbs extends SVGPathSeg native "*SVGPathSegLinetoAbs" {
-
- /** @domName SVGPathSegLinetoAbs.x */
- num x;
-
- /** @domName SVGPathSegLinetoAbs.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPathSegLinetoHorizontalAbs
-class SVGPathSegLinetoHorizontalAbs extends SVGPathSeg native "*SVGPathSegLinetoHorizontalAbs" {
-
- /** @domName SVGPathSegLinetoHorizontalAbs.x */
- num x;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGPathSegLinetoHorizontalRel
-class SVGPathSegLinetoHorizontalRel extends SVGPathSeg native "*SVGPathSegLinetoHorizontalRel" {
-
- /** @domName SVGPathSegLinetoHorizontalRel.x */
- num x;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGPathSegLinetoRel
-class SVGPathSegLinetoRel extends SVGPathSeg native "*SVGPathSegLinetoRel" {
-
- /** @domName SVGPathSegLinetoRel.x */
- num x;
-
- /** @domName SVGPathSegLinetoRel.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPathSegLinetoVerticalAbs
-class SVGPathSegLinetoVerticalAbs extends SVGPathSeg native "*SVGPathSegLinetoVerticalAbs" {
-
- /** @domName SVGPathSegLinetoVerticalAbs.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPathSegLinetoVerticalRel
-class SVGPathSegLinetoVerticalRel extends SVGPathSeg native "*SVGPathSegLinetoVerticalRel" {
-
- /** @domName SVGPathSegLinetoVerticalRel.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPathSegList
-class SVGPathSegList implements JavaScriptIndexingBehavior, List<SVGPathSeg> native "*SVGPathSegList" {
-
- /** @domName SVGPathSegList.numberOfItems */
- final int numberOfItems;
-
- SVGPathSeg operator[](int index) => JS("SVGPathSeg", "#[#]", this, index);
-
- void operator[]=(int index, SVGPathSeg value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<SVGPathSeg> mixins.
- // SVGPathSeg is the element type.
-
- // From Iterable<SVGPathSeg>:
-
- Iterator<SVGPathSeg> 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<SVGPathSeg>(this);
- }
-
- // From Collection<SVGPathSeg>:
-
- void add(SVGPathSeg value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(SVGPathSeg value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGPathSeg> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(SVGPathSeg element) => _Collections.contains(this, element);
-
- void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGPathSeg element)) => _Collections.map(this, [], f);
-
- Collection<SVGPathSeg> filter(bool f(SVGPathSeg element)) =>
- _Collections.filter(this, <SVGPathSeg>[], f);
-
- bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<SVGPathSeg>:
-
- void sort([Comparator<SVGPathSeg> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(SVGPathSeg element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGPathSeg element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGPathSeg get last => this[length - 1];
-
- SVGPathSeg removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<SVGPathSeg> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SVGPathSeg initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<SVGPathSeg> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGPathSeg>[]);
-
- // -- end List<SVGPathSeg> mixins.
-
- /** @domName SVGPathSegList.appendItem */
- SVGPathSeg appendItem(SVGPathSeg newItem) native;
-
- /** @domName SVGPathSegList.clear */
- void clear() native;
-
- /** @domName SVGPathSegList.getItem */
- SVGPathSeg getItem(int index) native;
-
- /** @domName SVGPathSegList.initialize */
- SVGPathSeg initialize(SVGPathSeg newItem) native;
-
- /** @domName SVGPathSegList.insertItemBefore */
- SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index) native;
-
- /** @domName SVGPathSegList.removeItem */
- SVGPathSeg removeItem(int index) native;
-
- /** @domName SVGPathSegList.replaceItem */
- SVGPathSeg replaceItem(SVGPathSeg newItem, int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPathSegMovetoAbs
-class SVGPathSegMovetoAbs extends SVGPathSeg native "*SVGPathSegMovetoAbs" {
-
- /** @domName SVGPathSegMovetoAbs.x */
- num x;
-
- /** @domName SVGPathSegMovetoAbs.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPathSegMovetoRel
-class SVGPathSegMovetoRel extends SVGPathSeg native "*SVGPathSegMovetoRel" {
-
- /** @domName SVGPathSegMovetoRel.x */
- num x;
-
- /** @domName SVGPathSegMovetoRel.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPatternElement
-class SVGPatternElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGFitToViewBox, SVGExternalResourcesRequired native "*SVGPatternElement" {
-
- /** @domName SVGPatternElement.height */
- final SVGAnimatedLength height;
-
- /** @domName SVGPatternElement.patternContentUnits */
- final SVGAnimatedEnumeration patternContentUnits;
-
- /** @domName SVGPatternElement.patternTransform */
- final SVGAnimatedTransformList patternTransform;
-
- /** @domName SVGPatternElement.patternUnits */
- final SVGAnimatedEnumeration patternUnits;
-
- /** @domName SVGPatternElement.width */
- final SVGAnimatedLength width;
-
- /** @domName SVGPatternElement.x */
- final SVGAnimatedLength x;
-
- /** @domName SVGPatternElement.y */
- final SVGAnimatedLength y;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGFitToViewBox
-
- /** @domName SVGFitToViewBox.preserveAspectRatio */
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
-
- /** @domName SVGFitToViewBox.viewBox */
- final SVGAnimatedRect viewBox;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-
- // From SVGTests
-
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
-
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
-
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
-
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
-
- // From SVGURIReference
-
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGPoint
-class SVGPoint native "*SVGPoint" {
-
- /** @domName SVGPoint.x */
- num x;
-
- /** @domName SVGPoint.y */
- num y;
-
- /** @domName SVGPoint.matrixTransform */
- SVGPoint matrixTransform(SVGMatrix matrix) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPointList
-class SVGPointList native "*SVGPointList" {
-
- /** @domName SVGPointList.numberOfItems */
- final int numberOfItems;
-
- /** @domName SVGPointList.appendItem */
- SVGPoint appendItem(SVGPoint item) native;
-
- /** @domName SVGPointList.clear */
- void clear() native;
-
- /** @domName SVGPointList.getItem */
- SVGPoint getItem(int index) native;
-
- /** @domName SVGPointList.initialize */
- SVGPoint initialize(SVGPoint item) native;
-
- /** @domName SVGPointList.insertItemBefore */
- SVGPoint insertItemBefore(SVGPoint item, int index) native;
-
- /** @domName SVGPointList.removeItem */
- SVGPoint removeItem(int index) native;
-
- /** @domName SVGPointList.replaceItem */
- SVGPoint replaceItem(SVGPoint item, int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGPolygonElement
-class SVGPolygonElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGPolygonElement" {
-
- /** @domName SVGPolygonElement.animatedPoints */
- final SVGPointList animatedPoints;
-
- /** @domName SVGPolygonElement.points */
- final SVGPointList points;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGLocatable
-
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
-
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
-
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
-
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
-
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
-
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-
- // From SVGTests
-
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
-
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
-
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
-
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
-
- // From SVGTransformable
-
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGPolylineElement
-class SVGPolylineElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGPolylineElement" {
-
- /** @domName SVGPolylineElement.animatedPoints */
- final SVGPointList animatedPoints;
-
- /** @domName SVGPolylineElement.points */
- final SVGPointList points;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGLocatable
-
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
-
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
-
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
-
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
-
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
-
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-
- // From SVGTests
-
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
-
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
-
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
-
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
-
- // From SVGTransformable
-
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGPreserveAspectRatio
-class SVGPreserveAspectRatio native "*SVGPreserveAspectRatio" {
-
- static const int SVG_MEETORSLICE_MEET = 1;
-
- static const int SVG_MEETORSLICE_SLICE = 2;
-
- static const int SVG_MEETORSLICE_UNKNOWN = 0;
-
- static const int SVG_PRESERVEASPECTRATIO_NONE = 1;
-
- static const int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;
-
- static const int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;
-
- static const int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;
-
- static const int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4;
-
- static const int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9;
-
- static const int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6;
-
- static const int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3;
-
- static const int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8;
-
- static const int SVG_PRESERVEASPECTRATIO_XMINYMID = 5;
-
- static const int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2;
-
- /** @domName SVGPreserveAspectRatio.align */
- int align;
-
- /** @domName SVGPreserveAspectRatio.meetOrSlice */
- int meetOrSlice;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGRadialGradientElement
-class SVGRadialGradientElement extends SVGGradientElement native "*SVGRadialGradientElement" {
-
- /** @domName SVGRadialGradientElement.cx */
- final SVGAnimatedLength cx;
-
- /** @domName SVGRadialGradientElement.cy */
- final SVGAnimatedLength cy;
-
- /** @domName SVGRadialGradientElement.fr */
- final SVGAnimatedLength fr;
-
- /** @domName SVGRadialGradientElement.fx */
- final SVGAnimatedLength fx;
-
- /** @domName SVGRadialGradientElement.fy */
- final SVGAnimatedLength fy;
-
- /** @domName SVGRadialGradientElement.r */
- final SVGAnimatedLength r;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGRect
-class SVGRect native "*SVGRect" {
-
- /** @domName SVGRect.height */
- num height;
-
- /** @domName SVGRect.width */
- num width;
-
- /** @domName SVGRect.x */
- num x;
-
- /** @domName SVGRect.y */
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGRectElement
-class SVGRectElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGRectElement" {
-
- /** @domName SVGRectElement.height */
- final SVGAnimatedLength height;
-
- /** @domName SVGRectElement.rx */
- final SVGAnimatedLength rx;
-
- /** @domName SVGRectElement.ry */
- final SVGAnimatedLength ry;
-
- /** @domName SVGRectElement.width */
- final SVGAnimatedLength width;
-
- /** @domName SVGRectElement.x */
- final SVGAnimatedLength x;
-
- /** @domName SVGRectElement.y */
- final SVGAnimatedLength y;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGLocatable
-
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
-
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
-
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
-
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
-
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
-
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-
- // From SVGTests
-
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
-
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
-
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
-
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
-
- // From SVGTransformable
-
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGRenderingIntent
-class SVGRenderingIntent native "*SVGRenderingIntent" {
-
- static const int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5;
-
- static const int RENDERING_INTENT_AUTO = 1;
-
- static const int RENDERING_INTENT_PERCEPTUAL = 2;
-
- static const int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3;
-
- static const int RENDERING_INTENT_SATURATION = 4;
-
- static const int RENDERING_INTENT_UNKNOWN = 0;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGSVGElement extends SVGElement implements SVGZoomAndPan, SVGLocatable, SVGLangSpace, SVGTests, SVGStylable, SVGFitToViewBox, SVGExternalResourcesRequired native "*SVGSVGElement" {
- factory SVGSVGElement() => _SVGSVGElementFactoryProvider.createSVGSVGElement();
-
-
- /** @domName SVGSVGElement.contentScriptType */
- String contentScriptType;
-
- /** @domName SVGSVGElement.contentStyleType */
- String contentStyleType;
-
- /** @domName SVGSVGElement.currentScale */
- num currentScale;
-
- /** @domName SVGSVGElement.currentTranslate */
- final SVGPoint currentTranslate;
-
- /** @domName SVGSVGElement.currentView */
- final SVGViewSpec currentView;
-
- /** @domName SVGSVGElement.height */
- final SVGAnimatedLength height;
-
- /** @domName SVGSVGElement.pixelUnitToMillimeterX */
- final num pixelUnitToMillimeterX;
-
- /** @domName SVGSVGElement.pixelUnitToMillimeterY */
- final num pixelUnitToMillimeterY;
-
- /** @domName SVGSVGElement.screenPixelToMillimeterX */
- final num screenPixelToMillimeterX;
-
- /** @domName SVGSVGElement.screenPixelToMillimeterY */
- final num screenPixelToMillimeterY;
-
- /** @domName SVGSVGElement.useCurrentView */
- final bool useCurrentView;
-
- /** @domName SVGSVGElement.viewport */
- final SVGRect viewport;
-
- /** @domName SVGSVGElement.width */
- final SVGAnimatedLength width;
-
- /** @domName SVGSVGElement.x */
- final SVGAnimatedLength x;
-
- /** @domName SVGSVGElement.y */
- final SVGAnimatedLength y;
-
- /** @domName SVGSVGElement.animationsPaused */
- bool animationsPaused() native;
-
- /** @domName SVGSVGElement.checkEnclosure */
- bool checkEnclosure(SVGElement element, SVGRect rect) native;
-
- /** @domName SVGSVGElement.checkIntersection */
- bool checkIntersection(SVGElement element, SVGRect rect) native;
-
- /** @domName SVGSVGElement.createSVGAngle */
- SVGAngle createSVGAngle() native;
-
- /** @domName SVGSVGElement.createSVGLength */
- SVGLength createSVGLength() native;
-
- /** @domName SVGSVGElement.createSVGMatrix */
- SVGMatrix createSVGMatrix() native;
-
- /** @domName SVGSVGElement.createSVGNumber */
- SVGNumber createSVGNumber() native;
-
- /** @domName SVGSVGElement.createSVGPoint */
- SVGPoint createSVGPoint() native;
-
- /** @domName SVGSVGElement.createSVGRect */
- SVGRect createSVGRect() native;
-
- /** @domName SVGSVGElement.createSVGTransform */
- SVGTransform createSVGTransform() native;
-
- /** @domName SVGSVGElement.createSVGTransformFromMatrix */
- SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix) native;
-
- /** @domName SVGSVGElement.deselectAll */
- void deselectAll() native;
-
- /** @domName SVGSVGElement.forceRedraw */
- void forceRedraw() native;
-
- /** @domName SVGSVGElement.getCurrentTime */
- num getCurrentTime() native;
-
- /** @domName SVGSVGElement.getElementById */
- Element getElementById(String elementId) native;
-
- /** @domName SVGSVGElement.getEnclosureList */
- List<Node> getEnclosureList(SVGRect rect, SVGElement referenceElement) native;
-
- /** @domName SVGSVGElement.getIntersectionList */
- List<Node> getIntersectionList(SVGRect rect, SVGElement referenceElement) native;
-
- /** @domName SVGSVGElement.pauseAnimations */
- void pauseAnimations() native;
-
- /** @domName SVGSVGElement.setCurrentTime */
- void setCurrentTime(num seconds) native;
-
- /** @domName SVGSVGElement.suspendRedraw */
- int suspendRedraw(int maxWaitMilliseconds) native;
-
- /** @domName SVGSVGElement.unpauseAnimations */
- void unpauseAnimations() native;
-
- /** @domName SVGSVGElement.unsuspendRedraw */
- void unsuspendRedraw(int suspendHandleId) native;
-
- /** @domName SVGSVGElement.unsuspendRedrawAll */
- void unsuspendRedrawAll() native;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGFitToViewBox
-
- /** @domName SVGFitToViewBox.preserveAspectRatio */
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
-
- /** @domName SVGFitToViewBox.viewBox */
- final SVGAnimatedRect viewBox;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGLocatable
-
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
-
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
-
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
-
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
-
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
-
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-
- // From SVGTests
-
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
-
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
-
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
-
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
-
- // From SVGZoomAndPan
-
- /** @domName SVGZoomAndPan.zoomAndPan */
- int zoomAndPan;
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGScriptElement
-class SVGScriptElement extends SVGElement implements SVGURIReference, SVGExternalResourcesRequired native "*SVGScriptElement" {
-
- /** @domName SVGScriptElement.type */
- String type;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGURIReference
-
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGSetElement
-class SVGSetElement extends SVGAnimationElement native "*SVGSetElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGStopElement
-class SVGStopElement extends SVGElement implements SVGStylable native "*SVGStopElement" {
-
- /** @domName SVGStopElement.offset */
- final SVGAnimatedNumber offset;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGStringList
-class SVGStringList implements JavaScriptIndexingBehavior, List<String> native "*SVGStringList" {
-
- /** @domName SVGStringList.numberOfItems */
- final int numberOfItems;
-
- String operator[](int index) => JS("String", "#[#]", this, index);
-
- 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> 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);
- }
-
- // From Collection<String>:
-
- void add(String value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(String value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<String> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(String element) => _Collections.contains(this, element);
-
- void forEach(void f(String element)) => _Collections.forEach(this, f);
-
- Collection map(f(String element)) => _Collections.map(this, [], f);
-
- Collection<String> filter(bool f(String element)) =>
- _Collections.filter(this, <String>[], f);
-
- bool every(bool f(String element)) => _Collections.every(this, f);
-
- bool some(bool f(String element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<String>:
-
- void sort([Comparator<String> compare = Comparable.compare]) {
- 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 last => this[length - 1];
-
- String removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<String> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [String initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<String> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <String>[]);
-
- // -- end List<String> mixins.
-
- /** @domName SVGStringList.appendItem */
- String appendItem(String item) native;
-
- /** @domName SVGStringList.clear */
- void clear() native;
-
- /** @domName SVGStringList.getItem */
- String getItem(int index) native;
-
- /** @domName SVGStringList.initialize */
- String initialize(String item) native;
-
- /** @domName SVGStringList.insertItemBefore */
- String insertItemBefore(String item, int index) native;
-
- /** @domName SVGStringList.removeItem */
- String removeItem(int index) native;
-
- /** @domName SVGStringList.replaceItem */
- String replaceItem(String item, int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGStylable
-abstract class SVGStylable {
-
- SVGAnimatedString className;
-
- CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name);
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGStyleElement
-class SVGStyleElement extends SVGElement implements SVGLangSpace native "*SVGStyleElement" {
-
- /** @domName SVGStyleElement.disabled */
- bool disabled;
-
- /** @domName SVGStyleElement.media */
- String media;
-
- // Shadowing definition.
- /** @domName SVGStyleElement.title */
- String get title => JS("String", "#.title", this);
-
- /** @domName SVGStyleElement.title */
- void set title(String value) {
- JS("void", "#.title = #", this, value);
- }
-
- /** @domName SVGStyleElement.type */
- String type;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGSwitchElement
-class SVGSwitchElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired native "*SVGSwitchElement" {
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGLocatable
-
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
-
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
-
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
-
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
-
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
-
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-
- // From SVGTests
-
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
-
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
-
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
-
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
-
- // From SVGTransformable
-
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGSymbolElement
-class SVGSymbolElement extends SVGElement implements SVGLangSpace, SVGFitToViewBox, SVGExternalResourcesRequired, SVGStylable native "*SVGSymbolElement" {
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGFitToViewBox
-
- /** @domName SVGFitToViewBox.preserveAspectRatio */
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
-
- /** @domName SVGFitToViewBox.viewBox */
- final SVGAnimatedRect viewBox;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGTRefElement
-class SVGTRefElement extends SVGTextPositioningElement implements SVGURIReference native "*SVGTRefElement" {
-
- // From SVGURIReference
-
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGTSpanElement
-class SVGTSpanElement extends SVGTextPositioningElement native "*SVGTSpanElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGTests
-abstract class SVGTests {
-
- SVGStringList requiredExtensions;
-
- SVGStringList requiredFeatures;
-
- SVGStringList systemLanguage;
-
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension);
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGTextContentElement
-class SVGTextContentElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGExternalResourcesRequired native "*SVGTextContentElement" {
-
- static const int LENGTHADJUST_SPACING = 1;
-
- static const int LENGTHADJUST_SPACINGANDGLYPHS = 2;
-
- static const int LENGTHADJUST_UNKNOWN = 0;
-
- /** @domName SVGTextContentElement.lengthAdjust */
- final SVGAnimatedEnumeration lengthAdjust;
-
- /** @domName SVGTextContentElement.textLength */
- final SVGAnimatedLength textLength;
-
- /** @domName SVGTextContentElement.getCharNumAtPosition */
- int getCharNumAtPosition(SVGPoint point) native;
-
- /** @domName SVGTextContentElement.getComputedTextLength */
- num getComputedTextLength() native;
-
- /** @domName SVGTextContentElement.getEndPositionOfChar */
- SVGPoint getEndPositionOfChar(int offset) native;
-
- /** @domName SVGTextContentElement.getExtentOfChar */
- SVGRect getExtentOfChar(int offset) native;
-
- /** @domName SVGTextContentElement.getNumberOfChars */
- int getNumberOfChars() native;
-
- /** @domName SVGTextContentElement.getRotationOfChar */
- num getRotationOfChar(int offset) native;
-
- /** @domName SVGTextContentElement.getStartPositionOfChar */
- SVGPoint getStartPositionOfChar(int offset) native;
-
- /** @domName SVGTextContentElement.getSubStringLength */
- num getSubStringLength(int offset, int length) native;
-
- /** @domName SVGTextContentElement.selectSubString */
- void selectSubString(int offset, int length) native;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-
- // From SVGTests
-
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
-
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
-
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
-
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGTextElement
-class SVGTextElement extends SVGTextPositioningElement implements SVGTransformable native "*SVGTextElement" {
-
- // From SVGLocatable
-
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
-
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
-
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
-
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
-
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
-
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
-
- // From SVGTransformable
-
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGTextPathElement
-class SVGTextPathElement extends SVGTextContentElement implements SVGURIReference native "*SVGTextPathElement" {
-
- static const int TEXTPATH_METHODTYPE_ALIGN = 1;
-
- static const int TEXTPATH_METHODTYPE_STRETCH = 2;
-
- static const int TEXTPATH_METHODTYPE_UNKNOWN = 0;
-
- static const int TEXTPATH_SPACINGTYPE_AUTO = 1;
-
- static const int TEXTPATH_SPACINGTYPE_EXACT = 2;
-
- static const int TEXTPATH_SPACINGTYPE_UNKNOWN = 0;
-
- /** @domName SVGTextPathElement.method */
- final SVGAnimatedEnumeration method;
-
- /** @domName SVGTextPathElement.spacing */
- final SVGAnimatedEnumeration spacing;
-
- /** @domName SVGTextPathElement.startOffset */
- final SVGAnimatedLength startOffset;
-
- // From SVGURIReference
-
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGTextPositioningElement
-class SVGTextPositioningElement extends SVGTextContentElement native "*SVGTextPositioningElement" {
-
- /** @domName SVGTextPositioningElement.dx */
- final SVGAnimatedLengthList dx;
-
- /** @domName SVGTextPositioningElement.dy */
- final SVGAnimatedLengthList dy;
-
- /** @domName SVGTextPositioningElement.rotate */
- final SVGAnimatedNumberList rotate;
-
- /** @domName SVGTextPositioningElement.x */
- final SVGAnimatedLengthList x;
-
- /** @domName SVGTextPositioningElement.y */
- final SVGAnimatedLengthList y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGTitleElement
-class SVGTitleElement extends SVGElement implements SVGLangSpace, SVGStylable native "*SVGTitleElement" {
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGTransform
-class SVGTransform native "*SVGTransform" {
-
- static const int SVG_TRANSFORM_MATRIX = 1;
-
- static const int SVG_TRANSFORM_ROTATE = 4;
-
- static const int SVG_TRANSFORM_SCALE = 3;
-
- static const int SVG_TRANSFORM_SKEWX = 5;
-
- static const int SVG_TRANSFORM_SKEWY = 6;
-
- static const int SVG_TRANSFORM_TRANSLATE = 2;
-
- static const int SVG_TRANSFORM_UNKNOWN = 0;
-
- /** @domName SVGTransform.angle */
- final num angle;
-
- /** @domName SVGTransform.matrix */
- final SVGMatrix matrix;
-
- /** @domName SVGTransform.type */
- final int type;
-
- /** @domName SVGTransform.setMatrix */
- void setMatrix(SVGMatrix matrix) native;
-
- /** @domName SVGTransform.setRotate */
- void setRotate(num angle, num cx, num cy) native;
-
- /** @domName SVGTransform.setScale */
- void setScale(num sx, num sy) native;
-
- /** @domName SVGTransform.setSkewX */
- void setSkewX(num angle) native;
-
- /** @domName SVGTransform.setSkewY */
- void setSkewY(num angle) native;
-
- /** @domName SVGTransform.setTranslate */
- void setTranslate(num tx, num ty) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGTransformList
-class SVGTransformList implements JavaScriptIndexingBehavior, List<SVGTransform> native "*SVGTransformList" {
-
- /** @domName SVGTransformList.numberOfItems */
- final int numberOfItems;
-
- SVGTransform operator[](int index) => JS("SVGTransform", "#[#]", this, index);
-
- void operator[]=(int index, SVGTransform value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<SVGTransform> mixins.
- // SVGTransform is the element type.
-
- // From Iterable<SVGTransform>:
-
- Iterator<SVGTransform> 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<SVGTransform>(this);
- }
-
- // From Collection<SVGTransform>:
-
- void add(SVGTransform value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(SVGTransform value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGTransform> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(SVGTransform element) => _Collections.contains(this, element);
-
- void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGTransform element)) => _Collections.map(this, [], f);
-
- Collection<SVGTransform> filter(bool f(SVGTransform element)) =>
- _Collections.filter(this, <SVGTransform>[], f);
-
- bool every(bool f(SVGTransform element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGTransform element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<SVGTransform>:
-
- void sort([Comparator<SVGTransform> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(SVGTransform element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGTransform element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGTransform get last => this[length - 1];
-
- SVGTransform removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<SVGTransform> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SVGTransform initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<SVGTransform> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGTransform>[]);
-
- // -- end List<SVGTransform> mixins.
-
- /** @domName SVGTransformList.appendItem */
- SVGTransform appendItem(SVGTransform item) native;
-
- /** @domName SVGTransformList.clear */
- void clear() native;
-
- /** @domName SVGTransformList.consolidate */
- SVGTransform consolidate() native;
-
- /** @domName SVGTransformList.createSVGTransformFromMatrix */
- SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix) native;
-
- /** @domName SVGTransformList.getItem */
- SVGTransform getItem(int index) native;
-
- /** @domName SVGTransformList.initialize */
- SVGTransform initialize(SVGTransform item) native;
-
- /** @domName SVGTransformList.insertItemBefore */
- SVGTransform insertItemBefore(SVGTransform item, int index) native;
-
- /** @domName SVGTransformList.removeItem */
- SVGTransform removeItem(int index) native;
-
- /** @domName SVGTransformList.replaceItem */
- SVGTransform replaceItem(SVGTransform item, int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SVGTransformable
-abstract class SVGTransformable implements SVGLocatable {
-
- SVGAnimatedTransformList transform;
-
- // From SVGLocatable
-
- SVGElement farthestViewportElement;
-
- SVGElement nearestViewportElement;
-
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox();
-
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM();
-
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM();
-
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element);
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGURIReference
-abstract class SVGURIReference {
-
- SVGAnimatedString href;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGUnitTypes
-class SVGUnitTypes native "*SVGUnitTypes" {
-
- static const int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2;
-
- static const int SVG_UNIT_TYPE_UNKNOWN = 0;
-
- static const int SVG_UNIT_TYPE_USERSPACEONUSE = 1;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGUseElement
-class SVGUseElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable native "*SVGUseElement" {
-
- /** @domName SVGUseElement.animatedInstanceRoot */
- final SVGElementInstance animatedInstanceRoot;
-
- /** @domName SVGUseElement.height */
- final SVGAnimatedLength height;
-
- /** @domName SVGUseElement.instanceRoot */
- final SVGElementInstance instanceRoot;
-
- /** @domName SVGUseElement.width */
- final SVGAnimatedLength width;
-
- /** @domName SVGUseElement.x */
- final SVGAnimatedLength x;
-
- /** @domName SVGUseElement.y */
- final SVGAnimatedLength y;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGLangSpace
-
- /** @domName SVGLangSpace.xmllang */
- String xmllang;
-
- /** @domName SVGLangSpace.xmlspace */
- String xmlspace;
-
- // From SVGLocatable
-
- /** @domName SVGLocatable.farthestViewportElement */
- final SVGElement farthestViewportElement;
-
- /** @domName SVGLocatable.nearestViewportElement */
- final SVGElement nearestViewportElement;
-
- /** @domName SVGLocatable.getBBox */
- SVGRect getBBox() native;
-
- /** @domName SVGLocatable.getCTM */
- SVGMatrix getCTM() native;
-
- /** @domName SVGLocatable.getScreenCTM */
- SVGMatrix getScreenCTM() native;
-
- /** @domName SVGLocatable.getTransformToElement */
- SVGMatrix getTransformToElement(SVGElement element) native;
-
- // From SVGStylable
-
- /** @domName SVGStylable.className */
- SVGAnimatedString get $dom_svgClassName => JS("SVGAnimatedString", "#.className", this);
-
- // Use implementation from Element.
- // final CSSStyleDeclaration style;
-
- /** @domName SVGStylable.getPresentationAttribute */
- CSSValue getPresentationAttribute(String name) native;
-
- // From SVGTests
-
- /** @domName SVGTests.requiredExtensions */
- final SVGStringList requiredExtensions;
-
- /** @domName SVGTests.requiredFeatures */
- final SVGStringList requiredFeatures;
-
- /** @domName SVGTests.systemLanguage */
- final SVGStringList systemLanguage;
-
- /** @domName SVGTests.hasExtension */
- bool hasExtension(String extension) native;
-
- // From SVGTransformable
-
- /** @domName SVGTransformable.transform */
- final SVGAnimatedTransformList transform;
-
- // From SVGURIReference
-
- /** @domName SVGURIReference.href */
- final SVGAnimatedString href;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGVKernElement
-class SVGVKernElement extends SVGElement native "*SVGVKernElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGViewElement
-class SVGViewElement extends SVGElement implements SVGFitToViewBox, SVGZoomAndPan, SVGExternalResourcesRequired native "*SVGViewElement" {
-
- /** @domName SVGViewElement.viewTarget */
- final SVGStringList viewTarget;
-
- // From SVGExternalResourcesRequired
-
- /** @domName SVGExternalResourcesRequired.externalResourcesRequired */
- final SVGAnimatedBoolean externalResourcesRequired;
-
- // From SVGFitToViewBox
-
- /** @domName SVGFitToViewBox.preserveAspectRatio */
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
-
- /** @domName SVGFitToViewBox.viewBox */
- final SVGAnimatedRect viewBox;
-
- // From SVGZoomAndPan
-
- /** @domName SVGZoomAndPan.zoomAndPan */
- int zoomAndPan;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGViewSpec
-class SVGViewSpec native "*SVGViewSpec" {
-
- /** @domName SVGViewSpec.preserveAspectRatio */
- final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
-
- /** @domName SVGViewSpec.preserveAspectRatioString */
- final String preserveAspectRatioString;
-
- /** @domName SVGViewSpec.transform */
- final SVGTransformList transform;
-
- /** @domName SVGViewSpec.transformString */
- final String transformString;
-
- /** @domName SVGViewSpec.viewBox */
- final SVGAnimatedRect viewBox;
-
- /** @domName SVGViewSpec.viewBoxString */
- final String viewBoxString;
-
- /** @domName SVGViewSpec.viewTarget */
- final SVGElement viewTarget;
-
- /** @domName SVGViewSpec.viewTargetString */
- final String viewTargetString;
-
- /** @domName SVGViewSpec.zoomAndPan */
- int zoomAndPan;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGZoomAndPan
-abstract class SVGZoomAndPan {
-
- static const int SVG_ZOOMANDPAN_DISABLE = 1;
-
- static const int SVG_ZOOMANDPAN_MAGNIFY = 2;
-
- static const int SVG_ZOOMANDPAN_UNKNOWN = 0;
-
- int zoomAndPan;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGZoomEvent
-class SVGZoomEvent extends UIEvent native "*SVGZoomEvent" {
-
- /** @domName SVGZoomEvent.newScale */
- final num newScale;
-
- /** @domName SVGZoomEvent.newTranslate */
- final SVGPoint newTranslate;
-
- /** @domName SVGZoomEvent.previousScale */
- final num previousScale;
-
- /** @domName SVGZoomEvent.previousTranslate */
- final SVGPoint previousTranslate;
-
- /** @domName SVGZoomEvent.zoomRectScreen */
- final SVGRect zoomRectScreen;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 Screen
-class Screen native "*Screen" {
-
- /** @domName Screen.availHeight */
- final int availHeight;
-
- /** @domName Screen.availLeft */
- final int availLeft;
-
- /** @domName Screen.availTop */
- final int availTop;
-
- /** @domName Screen.availWidth */
- final int availWidth;
-
- /** @domName Screen.colorDepth */
- final int colorDepth;
-
- /** @domName Screen.height */
- final int height;
-
- /** @domName Screen.pixelDepth */
- final int pixelDepth;
-
- /** @domName Screen.width */
- final int width;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLScriptElement
-class ScriptElement extends Element implements Element native "*HTMLScriptElement" {
-
- factory ScriptElement() => _Elements.createScriptElement();
-
- /** @domName HTMLScriptElement.async */
- bool async;
-
- /** @domName HTMLScriptElement.charset */
- String charset;
-
- /** @domName HTMLScriptElement.crossOrigin */
- String crossOrigin;
-
- /** @domName HTMLScriptElement.defer */
- bool defer;
-
- /** @domName HTMLScriptElement.event */
- String event;
-
- /** @domName HTMLScriptElement.htmlFor */
- String htmlFor;
-
- /** @domName HTMLScriptElement.src */
- String src;
-
- /** @domName HTMLScriptElement.type */
- String type;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName ScriptProcessorNode
-class ScriptProcessorNode extends AudioNode implements EventTarget native "*ScriptProcessorNode" {
-
- /**
- * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
- */
- ScriptProcessorNodeEvents get on =>
- new ScriptProcessorNodeEvents(this);
-
- /** @domName ScriptProcessorNode.bufferSize */
- final int bufferSize;
-}
-
-class ScriptProcessorNodeEvents extends Events {
- ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get audioProcess => this['audioprocess'];
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 ScriptProfile
-class ScriptProfile native "*ScriptProfile" {
-
- /** @domName ScriptProfile.head */
- final ScriptProfileNode head;
-
- /** @domName ScriptProfile.title */
- final String title;
-
- /** @domName ScriptProfile.uid */
- final int uid;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 ScriptProfileNode
-class ScriptProfileNode native "*ScriptProfileNode" {
-
- /** @domName ScriptProfileNode.callUID */
- final int callUID;
-
- /** @domName ScriptProfileNode.functionName */
- final String functionName;
-
- /** @domName ScriptProfileNode.lineNumber */
- final int lineNumber;
-
- /** @domName ScriptProfileNode.numberOfCalls */
- final int numberOfCalls;
-
- /** @domName ScriptProfileNode.selfTime */
- final num selfTime;
-
- /** @domName ScriptProfileNode.totalTime */
- final num totalTime;
-
- /** @domName ScriptProfileNode.url */
- final String url;
-
- /** @domName ScriptProfileNode.visible */
- final bool visible;
-
- /** @domName ScriptProfileNode.children */
- List<ScriptProfileNode> children() native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-class SelectElement extends Element implements Element native "*HTMLSelectElement" {
-
- factory SelectElement() => _Elements.createSelectElement();
-
- /** @domName HTMLSelectElement.autofocus */
- bool autofocus;
-
- /** @domName HTMLSelectElement.disabled */
- bool disabled;
-
- /** @domName HTMLSelectElement.form */
- final FormElement form;
-
- /** @domName HTMLSelectElement.labels */
- final List<Node> labels;
-
- /** @domName HTMLSelectElement.length */
- int length;
-
- /** @domName HTMLSelectElement.multiple */
- bool multiple;
-
- /** @domName HTMLSelectElement.name */
- String name;
-
- /** @domName HTMLSelectElement.required */
- bool required;
-
- /** @domName HTMLSelectElement.selectedIndex */
- int selectedIndex;
-
- /** @domName HTMLSelectElement.size */
- int size;
-
- /** @domName HTMLSelectElement.type */
- final String type;
-
- /** @domName HTMLSelectElement.validationMessage */
- final String validationMessage;
-
- /** @domName HTMLSelectElement.validity */
- final ValidityState validity;
-
- /** @domName HTMLSelectElement.value */
- String value;
-
- /** @domName HTMLSelectElement.willValidate */
- final bool willValidate;
-
- /** @domName HTMLSelectElement.checkValidity */
- bool checkValidity() native;
-
- /** @domName HTMLSelectElement.item */
- Node item(int index) native;
-
- /** @domName HTMLSelectElement.namedItem */
- Node namedItem(String name) native;
-
- /** @domName HTMLSelectElement.setCustomValidity */
- void setCustomValidity(String error) native;
-
-
- // Override default options, since IE returns SelectElement itself and it
- // does not operate as a List.
- List<OptionElement> get options {
- return this.elements.filter((e) => e is OptionElement);
- }
-
- List<OptionElement> get selectedOptions {
- // IE does not change the selected flag for single-selection items.
- if (this.multiple) {
- return this.options.filter((o) => o.selected);
- } else {
- return [this.options[this.selectedIndex]];
- }
- }
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SessionDescription
-class SessionDescription native "*SessionDescription" {
-
- factory SessionDescription(String sdp) => _SessionDescriptionFactoryProvider.createSessionDescription(sdp);
-
- /** @domName SessionDescription.addCandidate */
- void addCandidate(IceCandidate candidate) native;
-
- /** @domName SessionDescription.toSdp */
- String toSdp() native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLShadowElement
-class ShadowElement extends Element implements Element native "*HTMLShadowElement" {
-
- /** @domName HTMLShadowElement.resetStyleInheritance */
- bool resetStyleInheritance;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 ShadowRoot extends DocumentFragment native "*ShadowRoot" {
-
- factory ShadowRoot(Element host) => _ShadowRootFactoryProvider.createShadowRoot(host);
-
- /** @domName ShadowRoot.activeElement */
- final Element activeElement;
-
- /** @domName ShadowRoot.applyAuthorStyles */
- bool applyAuthorStyles;
-
- /** @domName ShadowRoot.innerHTML */
- String innerHTML;
-
- /** @domName ShadowRoot.resetStyleInheritance */
- bool resetStyleInheritance;
-
- /** @domName ShadowRoot.cloneNode */
- Node clone(bool deep) native "cloneNode";
-
- /** @domName ShadowRoot.getElementById */
- Element $dom_getElementById(String elementId) native "getElementById";
-
- /** @domName ShadowRoot.getElementsByClassName */
- List<Node> $dom_getElementsByClassName(String className) native "getElementsByClassName";
-
- /** @domName ShadowRoot.getElementsByTagName */
- List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagName";
-
- /** @domName ShadowRoot.getSelection */
- DOMSelection getSelection() native;
-
- static bool get supported =>
- JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)');
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SharedWorker
-class SharedWorker extends AbstractWorker native "*SharedWorker" {
-
- factory SharedWorker(String scriptURL, [String name]) {
- if (!?name) {
- return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL);
- }
- return _SharedWorkerFactoryProvider.createSharedWorker(scriptURL, name);
- }
-
- /** @domName SharedWorker.port */
- final MessagePort port;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SharedWorkerContext
-class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" {
-
- /**
- * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
- */
- SharedWorkerContextEvents get on =>
- new SharedWorkerContextEvents(this);
-
- /** @domName SharedWorkerContext.name */
- final String name;
-}
-
-class SharedWorkerContextEvents extends WorkerContextEvents {
- SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get connect => this['connect'];
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SourceBuffer
-class SourceBuffer native "*SourceBuffer" {
-
- /** @domName SourceBuffer.buffered */
- final TimeRanges buffered;
-
- /** @domName SourceBuffer.timestampOffset */
- num timestampOffset;
-
- /** @domName SourceBuffer.abort */
- void abort() native;
-
- /** @domName SourceBuffer.append */
- void append(Uint8Array data) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SourceBufferList
-class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior, List<SourceBuffer> native "*SourceBufferList" {
-
- /** @domName SourceBufferList.length */
- final int length;
-
- SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index);
-
- void operator[]=(int index, SourceBuffer value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<SourceBuffer> mixins.
- // SourceBuffer is the element type.
-
- // From Iterable<SourceBuffer>:
-
- Iterator<SourceBuffer> 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<SourceBuffer>(this);
- }
-
- // From Collection<SourceBuffer>:
-
- void add(SourceBuffer value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(SourceBuffer value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SourceBuffer> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(SourceBuffer element) => _Collections.contains(this, element);
-
- void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f);
-
- Collection map(f(SourceBuffer element)) => _Collections.map(this, [], f);
-
- Collection<SourceBuffer> filter(bool f(SourceBuffer element)) =>
- _Collections.filter(this, <SourceBuffer>[], f);
-
- bool every(bool f(SourceBuffer element)) => _Collections.every(this, f);
-
- bool some(bool f(SourceBuffer element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<SourceBuffer>:
-
- void sort([Comparator<SourceBuffer> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(SourceBuffer element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SourceBuffer element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SourceBuffer get last => this[length - 1];
-
- SourceBuffer removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<SourceBuffer> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<SourceBuffer> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SourceBuffer>[]);
-
- // -- end List<SourceBuffer> mixins.
-
- /** @domName SourceBufferList.addEventListener */
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener";
-
- /** @domName SourceBufferList.dispatchEvent */
- bool $dom_dispatchEvent(Event event) native "dispatchEvent";
-
- /** @domName SourceBufferList.item */
- SourceBuffer item(int index) native;
-
- /** @domName SourceBufferList.removeEventListener */
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener";
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 HTMLSourceElement
-class SourceElement extends Element implements Element native "*HTMLSourceElement" {
-
- factory SourceElement() => _Elements.createSourceElement();
-
- /** @domName HTMLSourceElement.media */
- String media;
-
- /** @domName HTMLSourceElement.src */
- String src;
-
- /** @domName HTMLSourceElement.type */
- String type;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLSpanElement
-class SpanElement extends Element implements Element native "*HTMLSpanElement" {
-
- factory SpanElement() => _Elements.createSpanElement();
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SpeechGrammar
-class SpeechGrammar native "*SpeechGrammar" {
-
- factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar();
-
- /** @domName SpeechGrammar.src */
- String src;
-
- /** @domName SpeechGrammar.weight */
- num weight;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SpeechGrammarList
-class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGrammar> native "*SpeechGrammarList" {
-
- factory SpeechGrammarList() => _SpeechGrammarListFactoryProvider.createSpeechGrammarList();
-
- /** @domName SpeechGrammarList.length */
- final int length;
-
- SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index);
-
- void operator[]=(int index, SpeechGrammar value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<SpeechGrammar> mixins.
- // SpeechGrammar is the element type.
-
- // From Iterable<SpeechGrammar>:
-
- Iterator<SpeechGrammar> 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<SpeechGrammar>(this);
- }
-
- // From Collection<SpeechGrammar>:
-
- void add(SpeechGrammar value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(SpeechGrammar value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SpeechGrammar> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(SpeechGrammar element) => _Collections.contains(this, element);
-
- void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f);
-
- Collection map(f(SpeechGrammar element)) => _Collections.map(this, [], f);
-
- Collection<SpeechGrammar> filter(bool f(SpeechGrammar element)) =>
- _Collections.filter(this, <SpeechGrammar>[], f);
-
- bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f);
-
- bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<SpeechGrammar>:
-
- void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(SpeechGrammar element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SpeechGrammar element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SpeechGrammar get last => this[length - 1];
-
- SpeechGrammar removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<SpeechGrammar> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<SpeechGrammar> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]);
-
- // -- end List<SpeechGrammar> mixins.
-
- /** @domName SpeechGrammarList.addFromString */
- void addFromString(String string, [num weight]) native;
-
- /** @domName SpeechGrammarList.addFromUri */
- void addFromUri(String src, [num weight]) native;
-
- /** @domName SpeechGrammarList.item */
- SpeechGrammar item(int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SpeechInputEvent
-class SpeechInputEvent extends Event native "*SpeechInputEvent" {
-
- /** @domName SpeechInputEvent.results */
- final List<SpeechInputResult> results;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SpeechInputResult
-class SpeechInputResult native "*SpeechInputResult" {
-
- /** @domName SpeechInputResult.confidence */
- final num confidence;
-
- /** @domName SpeechInputResult.utterance */
- final String utterance;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SpeechRecognition
-class SpeechRecognition extends EventTarget native "*SpeechRecognition" {
-
- factory SpeechRecognition() => _SpeechRecognitionFactoryProvider.createSpeechRecognition();
-
- /**
- * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
- */
- SpeechRecognitionEvents get on =>
- new SpeechRecognitionEvents(this);
-
- /** @domName SpeechRecognition.continuous */
- bool continuous;
-
- /** @domName SpeechRecognition.grammars */
- SpeechGrammarList grammars;
-
- /** @domName SpeechRecognition.interimResults */
- bool interimResults;
-
- /** @domName SpeechRecognition.lang */
- String lang;
-
- /** @domName SpeechRecognition.maxAlternatives */
- int maxAlternatives;
-
- /** @domName SpeechRecognition.abort */
- void abort() native;
-
- /** @domName SpeechRecognition.addEventListener */
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener";
-
- /** @domName SpeechRecognition.dispatchEvent */
- bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
-
- /** @domName SpeechRecognition.removeEventListener */
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener";
-
- /** @domName SpeechRecognition.start */
- void start() native;
-
- /** @domName SpeechRecognition.stop */
- void stop() native;
-}
-
-class SpeechRecognitionEvents extends Events {
- SpeechRecognitionEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get audioEnd => this['audioend'];
-
- EventListenerList get audioStart => this['audiostart'];
-
- EventListenerList get end => this['end'];
-
- EventListenerList get error => this['error'];
-
- EventListenerList get noMatch => this['nomatch'];
-
- EventListenerList get result => this['result'];
-
- EventListenerList get soundEnd => this['soundend'];
-
- EventListenerList get soundStart => this['soundstart'];
-
- EventListenerList get speechEnd => this['speechend'];
-
- EventListenerList get speechStart => this['speechstart'];
-
- EventListenerList get start => this['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.
-
-
-/// @domName SpeechRecognitionAlternative
-class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" {
-
- /** @domName SpeechRecognitionAlternative.confidence */
- final num confidence;
-
- /** @domName SpeechRecognitionAlternative.transcript */
- final String transcript;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SpeechRecognitionError
-class SpeechRecognitionError extends Event native "*SpeechRecognitionError" {
-
- static const int ABORTED = 2;
-
- static const int AUDIO_CAPTURE = 3;
-
- static const int BAD_GRAMMAR = 7;
-
- static const int LANGUAGE_NOT_SUPPORTED = 8;
-
- static const int NETWORK = 4;
-
- static const int NOT_ALLOWED = 5;
-
- static const int NO_SPEECH = 1;
-
- static const int OTHER = 0;
-
- static const int SERVICE_NOT_ALLOWED = 6;
-
- /** @domName SpeechRecognitionError.code */
- final int code;
-
- /** @domName SpeechRecognitionError.message */
- final String message;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName SpeechRecognitionEvent
-class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" {
-
- /** @domName SpeechRecognitionEvent.result */
- final SpeechRecognitionResult result;
-
- /** @domName SpeechRecognitionEvent.resultHistory */
- final List<SpeechRecognitionResult> resultHistory;
-
- /** @domName SpeechRecognitionEvent.resultIndex */
- final int resultIndex;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SpeechRecognitionResult
-class SpeechRecognitionResult native "*SpeechRecognitionResult" {
-
- /** @domName SpeechRecognitionResult.emma */
- final Document emma;
-
- /** @domName SpeechRecognitionResult.finalValue */
- bool get finalValue => JS("bool", "#.final", this);
-
- /** @domName SpeechRecognitionResult.length */
- final int length;
-
- /** @domName SpeechRecognitionResult.item */
- SpeechRecognitionAlternative item(int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-class Storage implements Map<String, String> native "*Storage" {
-
- // TODO(nweiz): update this when maps support lazy iteration
- bool containsValue(String value) => values.some((e) => e == value);
-
- bool containsKey(String key) => $dom_getItem(key) != null;
-
- String operator [](String key) => $dom_getItem(key);
-
- void operator []=(String key, String value) => $dom_setItem(key, value);
-
- String putIfAbsent(String key, String ifAbsent()) {
- if (!containsKey(key)) this[key] = ifAbsent();
- return this[key];
- }
-
- String remove(String key) {
- final value = this[key];
- $dom_removeItem(key);
- return value;
- }
-
- void clear() => $dom_clear();
-
- void forEach(void f(String key, String value)) {
- for (var i = 0; true; i++) {
- final key = $dom_key(i);
- if (key == null) return;
-
- f(key, this[key]);
- }
- }
-
- Collection<String> get keys {
- final keys = [];
- forEach((k, v) => keys.add(k));
- return keys;
- }
-
- Collection<String> get values {
- final values = [];
- forEach((k, v) => values.add(v));
- return values;
- }
-
- int get length => $dom_length;
-
- bool get isEmpty => $dom_key(0) == null;
-
- /** @domName Storage.length */
- int get $dom_length => JS("int", "#.length", this);
-
- /** @domName Storage.clear */
- void $dom_clear() native "clear";
-
- /** @domName Storage.getItem */
- String $dom_getItem(String key) native "getItem";
-
- /** @domName Storage.key */
- String $dom_key(int index) native "key";
-
- /** @domName Storage.removeItem */
- void $dom_removeItem(String key) native "removeItem";
-
- /** @domName Storage.setItem */
- void $dom_setItem(String key, String data) native "setItem";
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 StorageEvent
-class StorageEvent extends Event native "*StorageEvent" {
-
- /** @domName StorageEvent.key */
- final String key;
-
- /** @domName StorageEvent.newValue */
- final String newValue;
-
- /** @domName StorageEvent.oldValue */
- final String oldValue;
-
- /** @domName StorageEvent.storageArea */
- final Storage storageArea;
-
- /** @domName StorageEvent.url */
- final String url;
-
- /** @domName StorageEvent.initStorageEvent */
- void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName StorageInfo
-class StorageInfo native "*StorageInfo" {
-
- static const int PERSISTENT = 1;
-
- static const int TEMPORARY = 0;
-
- /** @domName StorageInfo.queryUsageAndQuota */
- void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallback, StorageInfoErrorCallback errorCallback]) native;
-
- /** @domName StorageInfo.requestQuota */
- void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallback quotaCallback, StorageInfoErrorCallback errorCallback]) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-typedef void StorageInfoErrorCallback(DOMException error);
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-typedef void StorageInfoQuotaCallback(int grantedQuotaInBytes);
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 StorageInfoUsageCallback(int currentUsageInBytes, int currentQuotaInBytes);
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 StringCallback(String data);
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLStyleElement
-class StyleElement extends Element implements Element native "*HTMLStyleElement" {
-
- factory StyleElement() => _Elements.createStyleElement();
-
- /** @domName HTMLStyleElement.disabled */
- bool disabled;
-
- /** @domName HTMLStyleElement.media */
- String media;
-
- /** @domName HTMLStyleElement.scoped */
- bool scoped;
-
- /** @domName HTMLStyleElement.sheet */
- final StyleSheet sheet;
-
- /** @domName HTMLStyleElement.type */
- String type;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName StyleMedia
-class StyleMedia native "*StyleMedia" {
-
- /** @domName StyleMedia.type */
- final String type;
-
- /** @domName StyleMedia.matchMedium */
- bool matchMedium(String mediaquery) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName StyleSheet
-class StyleSheet native "*StyleSheet" {
-
- /** @domName StyleSheet.disabled */
- bool disabled;
-
- /** @domName StyleSheet.href */
- final String href;
-
- /** @domName StyleSheet.media */
- final MediaList media;
-
- /** @domName StyleSheet.ownerNode */
- final Node ownerNode;
-
- /** @domName StyleSheet.parentStyleSheet */
- final StyleSheet parentStyleSheet;
-
- /** @domName StyleSheet.title */
- final String title;
-
- /** @domName StyleSheet.type */
- final String type;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLTableCaptionElement
-class TableCaptionElement extends Element implements Element native "*HTMLTableCaptionElement" {
-
- factory TableCaptionElement() => _Elements.createTableCaptionElement();
-
- /** @domName HTMLTableCaptionElement.align */
- String align;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 HTMLTableCellElement
-class TableCellElement extends Element implements Element native "*HTMLTableCellElement" {
-
- factory TableCellElement() => _Elements.createTableCellElement();
-
- /** @domName HTMLTableCellElement.abbr */
- String abbr;
-
- /** @domName HTMLTableCellElement.align */
- String align;
-
- /** @domName HTMLTableCellElement.axis */
- String axis;
-
- /** @domName HTMLTableCellElement.bgColor */
- String bgColor;
-
- /** @domName HTMLTableCellElement.cellIndex */
- final int cellIndex;
-
- /** @domName HTMLTableCellElement.ch */
- String ch;
-
- /** @domName HTMLTableCellElement.chOff */
- String chOff;
-
- /** @domName HTMLTableCellElement.colSpan */
- int colSpan;
-
- /** @domName HTMLTableCellElement.headers */
- String headers;
-
- /** @domName HTMLTableCellElement.height */
- String height;
-
- /** @domName HTMLTableCellElement.noWrap */
- bool noWrap;
-
- /** @domName HTMLTableCellElement.rowSpan */
- int rowSpan;
-
- /** @domName HTMLTableCellElement.scope */
- String scope;
-
- /** @domName HTMLTableCellElement.vAlign */
- String vAlign;
-
- /** @domName HTMLTableCellElement.width */
- String width;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLTableColElement
-class TableColElement extends Element implements Element native "*HTMLTableColElement" {
-
- factory TableColElement() => _Elements.createTableColElement();
-
- /** @domName HTMLTableColElement.align */
- String align;
-
- /** @domName HTMLTableColElement.ch */
- String ch;
-
- /** @domName HTMLTableColElement.chOff */
- String chOff;
-
- /** @domName HTMLTableColElement.span */
- int span;
-
- /** @domName HTMLTableColElement.vAlign */
- String vAlign;
-
- /** @domName HTMLTableColElement.width */
- String width;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-class TableElement extends Element implements Element native "*HTMLTableElement" {
-
- factory TableElement() => _Elements.createTableElement();
-
- /** @domName HTMLTableElement.align */
- String align;
-
- /** @domName HTMLTableElement.bgColor */
- String bgColor;
-
- /** @domName HTMLTableElement.border */
- String border;
-
- /** @domName HTMLTableElement.caption */
- TableCaptionElement caption;
-
- /** @domName HTMLTableElement.cellPadding */
- String cellPadding;
-
- /** @domName HTMLTableElement.cellSpacing */
- String cellSpacing;
-
- /** @domName HTMLTableElement.frame */
- String frame;
-
- /** @domName HTMLTableElement.rows */
- final HTMLCollection rows;
-
- /** @domName HTMLTableElement.rules */
- String rules;
-
- /** @domName HTMLTableElement.summary */
- String summary;
-
- /** @domName HTMLTableElement.tBodies */
- final HTMLCollection tBodies;
-
- /** @domName HTMLTableElement.tFoot */
- TableSectionElement tFoot;
-
- /** @domName HTMLTableElement.tHead */
- TableSectionElement tHead;
-
- /** @domName HTMLTableElement.width */
- String width;
-
- /** @domName HTMLTableElement.createCaption */
- Element createCaption() native;
-
- /** @domName HTMLTableElement.createTFoot */
- Element createTFoot() native;
-
- /** @domName HTMLTableElement.createTHead */
- Element createTHead() native;
-
- /** @domName HTMLTableElement.deleteCaption */
- void deleteCaption() native;
-
- /** @domName HTMLTableElement.deleteRow */
- void deleteRow(int index) native;
-
- /** @domName HTMLTableElement.deleteTFoot */
- void deleteTFoot() native;
-
- /** @domName HTMLTableElement.deleteTHead */
- void deleteTHead() native;
-
- /** @domName HTMLTableElement.insertRow */
- Element insertRow(int index) native;
-
-
- Element createTBody() {
- if (JS('bool', '!!#.createTBody', this)) {
- return this._createTBody();
- }
- var tbody = new Element.tag('tbody');
- this.elements.add(tbody);
- return tbody;
- }
-
- Element _createTBody() native 'createTBody';
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 HTMLTableRowElement
-class TableRowElement extends Element implements Element native "*HTMLTableRowElement" {
-
- factory TableRowElement() => _Elements.createTableRowElement();
-
- /** @domName HTMLTableRowElement.align */
- String align;
-
- /** @domName HTMLTableRowElement.bgColor */
- String bgColor;
-
- /** @domName HTMLTableRowElement.cells */
- final HTMLCollection cells;
-
- /** @domName HTMLTableRowElement.ch */
- String ch;
-
- /** @domName HTMLTableRowElement.chOff */
- String chOff;
-
- /** @domName HTMLTableRowElement.rowIndex */
- final int rowIndex;
-
- /** @domName HTMLTableRowElement.sectionRowIndex */
- final int sectionRowIndex;
-
- /** @domName HTMLTableRowElement.vAlign */
- String vAlign;
-
- /** @domName HTMLTableRowElement.deleteCell */
- void deleteCell(int index) native;
-
- /** @domName HTMLTableRowElement.insertCell */
- Element insertCell(int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLTableSectionElement
-class TableSectionElement extends Element implements Element native "*HTMLTableSectionElement" {
-
- /** @domName HTMLTableSectionElement.align */
- String align;
-
- /** @domName HTMLTableSectionElement.ch */
- String ch;
-
- /** @domName HTMLTableSectionElement.chOff */
- String chOff;
-
- /** @domName HTMLTableSectionElement.rows */
- final HTMLCollection rows;
-
- /** @domName HTMLTableSectionElement.vAlign */
- String vAlign;
-
- /** @domName HTMLTableSectionElement.deleteRow */
- void deleteRow(int index) native;
-
- /** @domName HTMLTableSectionElement.insertRow */
- Element insertRow(int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-class Text extends CharacterData native "*Text" {
- factory Text(String data) => _TextFactoryProvider.createText(data);
-
- /** @domName Text.wholeText */
- final String wholeText;
-
- /** @domName Text.replaceWholeText */
- Text replaceWholeText(String content) native;
-
- /** @domName Text.splitText */
- Text splitText(int offset) native;
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLTextAreaElement
-class TextAreaElement extends Element implements Element native "*HTMLTextAreaElement" {
-
- factory TextAreaElement() => _Elements.createTextAreaElement();
-
- /** @domName HTMLTextAreaElement.autofocus */
- bool autofocus;
-
- /** @domName HTMLTextAreaElement.cols */
- int cols;
-
- /** @domName HTMLTextAreaElement.defaultValue */
- String defaultValue;
-
- /** @domName HTMLTextAreaElement.dirName */
- String dirName;
-
- /** @domName HTMLTextAreaElement.disabled */
- bool disabled;
-
- /** @domName HTMLTextAreaElement.form */
- final FormElement form;
-
- /** @domName HTMLTextAreaElement.labels */
- final List<Node> labels;
-
- /** @domName HTMLTextAreaElement.maxLength */
- int maxLength;
-
- /** @domName HTMLTextAreaElement.name */
- String name;
-
- /** @domName HTMLTextAreaElement.placeholder */
- String placeholder;
-
- /** @domName HTMLTextAreaElement.readOnly */
- bool readOnly;
-
- /** @domName HTMLTextAreaElement.required */
- bool required;
-
- /** @domName HTMLTextAreaElement.rows */
- int rows;
-
- /** @domName HTMLTextAreaElement.selectionDirection */
- String selectionDirection;
-
- /** @domName HTMLTextAreaElement.selectionEnd */
- int selectionEnd;
-
- /** @domName HTMLTextAreaElement.selectionStart */
- int selectionStart;
-
- /** @domName HTMLTextAreaElement.textLength */
- final int textLength;
-
- /** @domName HTMLTextAreaElement.type */
- final String type;
-
- /** @domName HTMLTextAreaElement.validationMessage */
- final String validationMessage;
-
- /** @domName HTMLTextAreaElement.validity */
- final ValidityState validity;
-
- /** @domName HTMLTextAreaElement.value */
- String value;
-
- /** @domName HTMLTextAreaElement.willValidate */
- final bool willValidate;
-
- /** @domName HTMLTextAreaElement.wrap */
- String wrap;
-
- /** @domName HTMLTextAreaElement.checkValidity */
- bool checkValidity() native;
-
- /** @domName HTMLTextAreaElement.select */
- void select() native;
-
- /** @domName HTMLTextAreaElement.setCustomValidity */
- void setCustomValidity(String error) native;
-
- /** @domName HTMLTextAreaElement.setRangeText */
- void setRangeText(String replacement, [int start, int end, String selectionMode]) native;
-
- /** @domName HTMLTextAreaElement.setSelectionRange */
- void setSelectionRange(int start, int end, [String direction]) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName TextEvent
-class TextEvent extends UIEvent native "*TextEvent" {
-
- /** @domName TextEvent.data */
- final String data;
-
- /** @domName TextEvent.initTextEvent */
- void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, LocalWindow viewArg, String dataArg) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName TextMetrics
-class TextMetrics native "*TextMetrics" {
-
- /** @domName TextMetrics.width */
- final num width;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName TextTrack
-class TextTrack extends EventTarget native "*TextTrack" {
-
- /**
- * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
- */
- TextTrackEvents get on =>
- new TextTrackEvents(this);
-
- /** @domName TextTrack.activeCues */
- final TextTrackCueList activeCues;
-
- /** @domName TextTrack.cues */
- final TextTrackCueList cues;
-
- /** @domName TextTrack.kind */
- final String kind;
-
- /** @domName TextTrack.label */
- final String label;
-
- /** @domName TextTrack.language */
- final String language;
-
- /** @domName TextTrack.mode */
- String mode;
-
- /** @domName TextTrack.addCue */
- void addCue(TextTrackCue cue) native;
-
- /** @domName TextTrack.addEventListener */
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener";
-
- /** @domName TextTrack.dispatchEvent */
- bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
-
- /** @domName TextTrack.removeCue */
- void removeCue(TextTrackCue cue) native;
-
- /** @domName TextTrack.removeEventListener */
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener";
-}
-
-class TextTrackEvents extends Events {
- TextTrackEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get cueChange => this['cuechange'];
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 TextTrackCue
-class TextTrackCue extends EventTarget native "*TextTrackCue" {
-
- factory TextTrackCue(num startTime, num endTime, String text) => _TextTrackCueFactoryProvider.createTextTrackCue(startTime, endTime, text);
-
- /**
- * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
- */
- TextTrackCueEvents get on =>
- new TextTrackCueEvents(this);
-
- /** @domName TextTrackCue.align */
- String align;
-
- /** @domName TextTrackCue.endTime */
- num endTime;
-
- /** @domName TextTrackCue.id */
- String id;
-
- /** @domName TextTrackCue.line */
- int line;
-
- /** @domName TextTrackCue.pauseOnExit */
- bool pauseOnExit;
-
- /** @domName TextTrackCue.position */
- int position;
-
- /** @domName TextTrackCue.size */
- int size;
-
- /** @domName TextTrackCue.snapToLines */
- bool snapToLines;
-
- /** @domName TextTrackCue.startTime */
- num startTime;
-
- /** @domName TextTrackCue.text */
- String text;
-
- /** @domName TextTrackCue.track */
- final TextTrack track;
-
- /** @domName TextTrackCue.vertical */
- String vertical;
-
- /** @domName TextTrackCue.addEventListener */
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener";
-
- /** @domName TextTrackCue.dispatchEvent */
- bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
-
- /** @domName TextTrackCue.getCueAsHTML */
- DocumentFragment getCueAsHTML() native;
-
- /** @domName TextTrackCue.removeEventListener */
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener";
-}
-
-class TextTrackCueEvents extends Events {
- TextTrackCueEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get enter => this['enter'];
-
- EventListenerList get exit => this['exit'];
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 TextTrackCueList
-class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior native "*TextTrackCueList" {
-
- /** @domName TextTrackCueList.length */
- final int length;
-
- TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index);
-
- void operator[]=(int index, TextTrackCue value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<TextTrackCue> mixins.
- // TextTrackCue is the element type.
-
- // From Iterable<TextTrackCue>:
-
- Iterator<TextTrackCue> 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<TextTrackCue>(this);
- }
-
- // From Collection<TextTrackCue>:
-
- void add(TextTrackCue value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(TextTrackCue value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<TextTrackCue> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(TextTrackCue element) => _Collections.contains(this, element);
-
- void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f);
-
- Collection map(f(TextTrackCue element)) => _Collections.map(this, [], f);
-
- Collection<TextTrackCue> filter(bool f(TextTrackCue element)) =>
- _Collections.filter(this, <TextTrackCue>[], f);
-
- bool every(bool f(TextTrackCue element)) => _Collections.every(this, f);
-
- bool some(bool f(TextTrackCue element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<TextTrackCue>:
-
- void sort([Comparator<TextTrackCue> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(TextTrackCue element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(TextTrackCue element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- TextTrackCue get last => this[length - 1];
-
- TextTrackCue removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<TextTrackCue> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<TextTrackCue> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <TextTrackCue>[]);
-
- // -- end List<TextTrackCue> mixins.
-
- /** @domName TextTrackCueList.getCueById */
- TextTrackCue getCueById(String id) native;
-
- /** @domName TextTrackCueList.item */
- TextTrackCue item(int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName TextTrackList
-class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, List<TextTrack> native "*TextTrackList" {
-
- /**
- * @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
- */
- TextTrackListEvents get on =>
- new TextTrackListEvents(this);
-
- /** @domName TextTrackList.length */
- final int length;
-
- TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index);
-
- void operator[]=(int index, TextTrack value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<TextTrack> mixins.
- // TextTrack is the element type.
-
- // From Iterable<TextTrack>:
-
- Iterator<TextTrack> 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<TextTrack>(this);
- }
-
- // From Collection<TextTrack>:
-
- void add(TextTrack value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(TextTrack value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<TextTrack> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(TextTrack element) => _Collections.contains(this, element);
-
- void forEach(void f(TextTrack element)) => _Collections.forEach(this, f);
-
- Collection map(f(TextTrack element)) => _Collections.map(this, [], f);
-
- Collection<TextTrack> filter(bool f(TextTrack element)) =>
- _Collections.filter(this, <TextTrack>[], f);
-
- bool every(bool f(TextTrack element)) => _Collections.every(this, f);
-
- bool some(bool f(TextTrack element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<TextTrack>:
-
- void sort([Comparator<TextTrack> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(TextTrack element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(TextTrack element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- TextTrack get last => this[length - 1];
-
- TextTrack removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<TextTrack> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [TextTrack initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<TextTrack> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <TextTrack>[]);
-
- // -- end List<TextTrack> mixins.
-
- /** @domName TextTrackList.addEventListener */
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener";
-
- /** @domName TextTrackList.dispatchEvent */
- bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
-
- /** @domName TextTrackList.item */
- TextTrack item(int index) native;
-
- /** @domName TextTrackList.removeEventListener */
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener";
-}
-
-class TextTrackListEvents extends Events {
- TextTrackListEvents(EventTarget _ptr) : super(_ptr);
-
- EventListenerList get addTrack => this['addtrack'];
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 TimeRanges
-class TimeRanges native "*TimeRanges" {
-
- /** @domName TimeRanges.length */
- final int length;
-
- /** @domName TimeRanges.end */
- num end(int index) native;
-
- /** @domName TimeRanges.start */
- num start(int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-typedef void TimeoutHandler();
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 HTMLTitleElement
-class TitleElement extends Element implements Element native "*HTMLTitleElement" {
-
- factory TitleElement() => _Elements.createTitleElement();
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 Touch
-class Touch native "*Touch" {
-
- /** @domName Touch.clientX */
- final int clientX;
-
- /** @domName Touch.clientY */
- final int clientY;
-
- /** @domName Touch.identifier */
- final int identifier;
-
- /** @domName Touch.pageX */
- final int pageX;
-
- /** @domName Touch.pageY */
- final int pageY;
-
- /** @domName Touch.screenX */
- final int screenX;
-
- /** @domName Touch.screenY */
- final int screenY;
-
- /** @domName Touch.target */
- EventTarget get target => _convertNativeToDart_EventTarget(this._target);
- EventTarget get _target => JS("EventTarget", "#.target", this);
-
- /** @domName Touch.webkitForce */
- final num webkitForce;
-
- /** @domName Touch.webkitRadiusX */
- final int webkitRadiusX;
-
- /** @domName Touch.webkitRadiusY */
- final int webkitRadiusY;
-
- /** @domName Touch.webkitRotationAngle */
- final num webkitRotationAngle;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 TouchEvent
-class TouchEvent extends UIEvent native "*TouchEvent" {
-
- /** @domName TouchEvent.altKey */
- final bool altKey;
-
- /** @domName TouchEvent.changedTouches */
- final TouchList changedTouches;
-
- /** @domName TouchEvent.ctrlKey */
- final bool ctrlKey;
-
- /** @domName TouchEvent.metaKey */
- final bool metaKey;
-
- /** @domName TouchEvent.shiftKey */
- final bool shiftKey;
-
- /** @domName TouchEvent.targetTouches */
- final TouchList targetTouches;
-
- /** @domName TouchEvent.touches */
- final TouchList touches;
-
- /** @domName TouchEvent.initTouchEvent */
- void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList changedTouches, String type, LocalWindow view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName TouchList
-class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*TouchList" {
-
- /** @domName TouchList.length */
- final int length;
-
- Touch operator[](int index) => JS("Touch", "#[#]", this, index);
-
- void operator[]=(int index, Touch value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<Touch> mixins.
- // Touch is the element type.
-
- // From Iterable<Touch>:
-
- Iterator<Touch> 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<Touch>(this);
- }
-
- // From Collection<Touch>:
-
- void add(Touch value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(Touch value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<Touch> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(Touch element) => _Collections.contains(this, element);
-
- void forEach(void f(Touch element)) => _Collections.forEach(this, f);
-
- Collection map(f(Touch element)) => _Collections.map(this, [], f);
-
- Collection<Touch> filter(bool f(Touch element)) =>
- _Collections.filter(this, <Touch>[], f);
-
- bool every(bool f(Touch element)) => _Collections.every(this, f);
-
- bool some(bool f(Touch element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<Touch>:
-
- void sort([Comparator<Touch> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(Touch element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(Touch element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- Touch get last => this[length - 1];
-
- Touch removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [Touch initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<Touch> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <Touch>[]);
-
- // -- end List<Touch> mixins.
-
- /** @domName TouchList.item */
- Touch item(int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLTrackElement
-class TrackElement extends Element implements Element native "*HTMLTrackElement" {
-
- factory TrackElement() => _Elements.createTrackElement();
-
- static const int ERROR = 3;
-
- static const int LOADED = 2;
-
- static const int LOADING = 1;
-
- static const int NONE = 0;
-
- /** @domName HTMLTrackElement.defaultValue */
- bool get defaultValue => JS("bool", "#.default", this);
-
- /** @domName HTMLTrackElement.defaultValue */
- void set defaultValue(bool value) {
- JS("void", "#.default = #", this, value);
- }
-
- /** @domName HTMLTrackElement.kind */
- String kind;
-
- /** @domName HTMLTrackElement.label */
- String label;
-
- /** @domName HTMLTrackElement.readyState */
- final int readyState;
-
- /** @domName HTMLTrackElement.src */
- String src;
-
- /** @domName HTMLTrackElement.srclang */
- String srclang;
-
- /** @domName HTMLTrackElement.track */
- final TextTrack track;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 TrackEvent
-class TrackEvent extends Event native "*TrackEvent" {
-
- /** @domName TrackEvent.track */
- final Object track;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebKitTransitionEvent
-class TransitionEvent extends Event native "*WebKitTransitionEvent" {
-
- /** @domName WebKitTransitionEvent.elapsedTime */
- final num elapsedTime;
-
- /** @domName WebKitTransitionEvent.propertyName */
- final String propertyName;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 TreeWalker
-class TreeWalker native "*TreeWalker" {
-
- /** @domName TreeWalker.currentNode */
- Node currentNode;
-
- /** @domName TreeWalker.expandEntityReferences */
- final bool expandEntityReferences;
-
- /** @domName TreeWalker.filter */
- final NodeFilter filter;
-
- /** @domName TreeWalker.root */
- final Node root;
-
- /** @domName TreeWalker.whatToShow */
- final int whatToShow;
-
- /** @domName TreeWalker.firstChild */
- Node firstChild() native;
-
- /** @domName TreeWalker.lastChild */
- Node lastChild() native;
-
- /** @domName TreeWalker.nextNode */
- Node nextNode() native;
-
- /** @domName TreeWalker.nextSibling */
- Node nextSibling() native;
-
- /** @domName TreeWalker.parentNode */
- Node parentNode() native;
-
- /** @domName TreeWalker.previousNode */
- Node previousNode() native;
-
- /** @domName TreeWalker.previousSibling */
- Node previousSibling() native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName UIEvent
-class UIEvent extends Event native "*UIEvent" {
-
- /** @domName UIEvent.charCode */
- final int charCode;
-
- /** @domName UIEvent.detail */
- final int detail;
-
- /** @domName UIEvent.keyCode */
- final int keyCode;
-
- /** @domName UIEvent.layerX */
- final int layerX;
-
- /** @domName UIEvent.layerY */
- final int layerY;
-
- /** @domName UIEvent.pageX */
- final int pageX;
-
- /** @domName UIEvent.pageY */
- final int pageY;
-
- /** @domName UIEvent.view */
- Window get view => _convertNativeToDart_Window(this._view);
- Window get _view => JS("Window", "#.view", this);
-
- /** @domName UIEvent.which */
- final int which;
-
- /** @domName UIEvent.initUIEvent */
- void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow view, int detail) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLUListElement
-class UListElement extends Element implements Element native "*HTMLUListElement" {
-
- factory UListElement() => _Elements.createUListElement();
-
- /** @domName HTMLUListElement.compact */
- bool compact;
-
- /** @domName HTMLUListElement.type */
- String type;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName Uint16Array
-class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint16Array" {
-
- factory Uint16Array(int length) =>
- _TypedArrayFactoryProvider.createUint16Array(length);
-
- factory Uint16Array.fromList(List<int> list) =>
- _TypedArrayFactoryProvider.createUint16Array_fromList(list);
-
- factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
- _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset, length);
-
- static const int BYTES_PER_ELEMENT = 2;
-
- /** @domName Uint16Array.length */
- final int length;
-
- int operator[](int index) => JS("int", "#[#]", this, index);
-
- void operator[]=(int index, int value) => JS("void", "#[#] = #", this, index, value);
- // -- start List<int> mixins.
- // int is the element type.
-
- // From Iterable<int>:
-
- Iterator<int> 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<int>(this);
- }
-
- // From Collection<int>:
-
- void add(int value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(int value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<int> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(int element) => _Collections.contains(this, element);
-
- void forEach(void f(int element)) => _Collections.forEach(this, f);
-
- Collection map(f(int element)) => _Collections.map(this, [], f);
-
- Collection<int> filter(bool f(int element)) =>
- _Collections.filter(this, <int>[], f);
-
- bool every(bool f(int element)) => _Collections.every(this, f);
-
- bool some(bool f(int element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<int>:
-
- void sort([Comparator<int> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(int element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(int element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- int get last => this[length - 1];
-
- int removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [int initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<int> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <int>[]);
-
- // -- end List<int> mixins.
-
- /** @domName Uint16Array.setElements */
- void setElements(Object array, [int offset]) native "set";
-
- /** @domName Uint16Array.subarray */
- Uint16Array subarray(int start, [int end]) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName Uint32Array
-class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint32Array" {
-
- factory Uint32Array(int length) =>
- _TypedArrayFactoryProvider.createUint32Array(length);
-
- factory Uint32Array.fromList(List<int> list) =>
- _TypedArrayFactoryProvider.createUint32Array_fromList(list);
-
- factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
- _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset, length);
-
- static const int BYTES_PER_ELEMENT = 4;
-
- /** @domName Uint32Array.length */
- final int length;
-
- int operator[](int index) => JS("int", "#[#]", this, index);
-
- void operator[]=(int index, int value) => JS("void", "#[#] = #", this, index, value);
- // -- start List<int> mixins.
- // int is the element type.
-
- // From Iterable<int>:
-
- Iterator<int> 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<int>(this);
- }
-
- // From Collection<int>:
-
- void add(int value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(int value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<int> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(int element) => _Collections.contains(this, element);
-
- void forEach(void f(int element)) => _Collections.forEach(this, f);
-
- Collection map(f(int element)) => _Collections.map(this, [], f);
-
- Collection<int> filter(bool f(int element)) =>
- _Collections.filter(this, <int>[], f);
-
- bool every(bool f(int element)) => _Collections.every(this, f);
-
- bool some(bool f(int element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<int>:
-
- void sort([Comparator<int> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(int element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(int element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- int get last => this[length - 1];
-
- int removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [int initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<int> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <int>[]);
-
- // -- end List<int> mixins.
-
- /** @domName Uint32Array.setElements */
- void setElements(Object array, [int offset]) native "set";
-
- /** @domName Uint32Array.subarray */
- Uint32Array subarray(int start, [int end]) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName Uint8Array
-class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<int> native "*Uint8Array" {
-
- factory Uint8Array(int length) =>
- _TypedArrayFactoryProvider.createUint8Array(length);
-
- factory Uint8Array.fromList(List<int> list) =>
- _TypedArrayFactoryProvider.createUint8Array_fromList(list);
-
- factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
- _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, length);
-
- static const int BYTES_PER_ELEMENT = 1;
-
- /** @domName Uint8Array.length */
- final int length;
-
- int operator[](int index) => JS("int", "#[#]", this, index);
-
- void operator[]=(int index, int value) => JS("void", "#[#] = #", this, index, value);
- // -- start List<int> mixins.
- // int is the element type.
-
- // From Iterable<int>:
-
- Iterator<int> 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<int>(this);
- }
-
- // From Collection<int>:
-
- void add(int value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(int value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<int> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(int element) => _Collections.contains(this, element);
-
- void forEach(void f(int element)) => _Collections.forEach(this, f);
-
- Collection map(f(int element)) => _Collections.map(this, [], f);
-
- Collection<int> filter(bool f(int element)) =>
- _Collections.filter(this, <int>[], f);
-
- bool every(bool f(int element)) => _Collections.every(this, f);
-
- bool some(bool f(int element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<int>:
-
- void sort([Comparator<int> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(int element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(int element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- int get last => this[length - 1];
-
- int removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
-
- void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [int initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
- List<int> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <int>[]);
-
- // -- end List<int> mixins.
-
- /** @domName Uint8Array.setElements */
- void setElements(Object array, [int offset]) native "set";
-
- /** @domName Uint8Array.subarray */
- Uint8Array subarray(int start, [int end]) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName Uint8ClampedArray
-class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" {
-
- factory Uint8ClampedArray(int length) =>
- _TypedArrayFactoryProvider.createUint8ClampedArray(length);
-
- factory Uint8ClampedArray.fromList(List<int> list) =>
- _TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list);
-
- factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) =>
- _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOffset, length);
-
- // Use implementation from Uint8Array.
- // final int length;
-
- /** @domName Uint8ClampedArray.setElements */
- void setElements(Object array, [int offset]) native "set";
-
- /** @domName Uint8ClampedArray.subarray */
- Uint8ClampedArray subarray(int start, [int end]) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName HTMLUnknownElement
-class UnknownElement extends Element implements Element native "*HTMLUnknownElement" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 Url native "*URL" {
-
- static String createObjectUrl(blob_OR_source_OR_stream) =>
- JS('String',
- '(window.URL || window.webkitURL).createObjectURL(#)',
- blob_OR_source_OR_stream);
-
- static void revokeObjectUrl(String objectUrl) =>
- JS('void',
- '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl);
-
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 ValidityState
-class ValidityState native "*ValidityState" {
-
- /** @domName ValidityState.customError */
- final bool customError;
-
- /** @domName ValidityState.patternMismatch */
- final bool patternMismatch;
-
- /** @domName ValidityState.rangeOverflow */
- final bool rangeOverflow;
-
- /** @domName ValidityState.rangeUnderflow */
- final bool rangeUnderflow;
-
- /** @domName ValidityState.stepMismatch */
- final bool stepMismatch;
-
- /** @domName ValidityState.tooLong */
- final bool tooLong;
-
- /** @domName ValidityState.typeMismatch */
- final bool typeMismatch;
-
- /** @domName ValidityState.valid */
- final bool valid;
-
- /** @domName ValidityState.valueMissing */
- final bool valueMissing;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 HTMLVideoElement
-class VideoElement extends MediaElement native "*HTMLVideoElement" {
-
- factory VideoElement() => _Elements.createVideoElement();
-
- /** @domName HTMLVideoElement.height */
- int height;
-
- /** @domName HTMLVideoElement.poster */
- String poster;
-
- /** @domName HTMLVideoElement.videoHeight */
- final int videoHeight;
-
- /** @domName HTMLVideoElement.videoWidth */
- final int videoWidth;
-
- /** @domName HTMLVideoElement.webkitDecodedFrameCount */
- final int webkitDecodedFrameCount;
-
- /** @domName HTMLVideoElement.webkitDisplayingFullscreen */
- final bool webkitDisplayingFullscreen;
-
- /** @domName HTMLVideoElement.webkitDroppedFrameCount */
- final int webkitDroppedFrameCount;
-
- /** @domName HTMLVideoElement.webkitSupportsFullscreen */
- final bool webkitSupportsFullscreen;
-
- /** @domName HTMLVideoElement.width */
- int width;
-
- /** @domName HTMLVideoElement.webkitEnterFullScreen */
- void webkitEnterFullScreen() native;
-
- /** @domName HTMLVideoElement.webkitEnterFullscreen */
- void webkitEnterFullscreen() native;
-
- /** @domName HTMLVideoElement.webkitExitFullScreen */
- void webkitExitFullScreen() native;
-
- /** @domName HTMLVideoElement.webkitExitFullscreen */
- void webkitExitFullscreen() native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-typedef void VoidCallback();
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WaveShaperNode
-class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
-
- /** @domName WaveShaperNode.curve */
- Float32Array curve;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WaveTable
-class WaveTable native "*WaveTable" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLActiveInfo
-class WebGLActiveInfo native "*WebGLActiveInfo" {
-
- /** @domName WebGLActiveInfo.name */
- final String name;
-
- /** @domName WebGLActiveInfo.size */
- final int size;
-
- /** @domName WebGLActiveInfo.type */
- final int 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.
-
-
-/// @domName WebGLBuffer
-class WebGLBuffer native "*WebGLBuffer" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLCompressedTextureS3TC
-class WebGLCompressedTextureS3TC native "*WebGLCompressedTextureS3TC" {
-
- static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
-
- static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
-
- static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
-
- static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLContextAttributes
-class WebGLContextAttributes native "*WebGLContextAttributes" {
-
- /** @domName WebGLContextAttributes.alpha */
- bool alpha;
-
- /** @domName WebGLContextAttributes.antialias */
- bool antialias;
-
- /** @domName WebGLContextAttributes.depth */
- bool depth;
-
- /** @domName WebGLContextAttributes.premultipliedAlpha */
- bool premultipliedAlpha;
-
- /** @domName WebGLContextAttributes.preserveDrawingBuffer */
- bool preserveDrawingBuffer;
-
- /** @domName WebGLContextAttributes.stencil */
- bool stencil;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLContextEvent
-class WebGLContextEvent extends Event native "*WebGLContextEvent" {
-
- /** @domName WebGLContextEvent.statusMessage */
- final String statusMessage;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLDebugRendererInfo
-class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" {
-
- static const int UNMASKED_RENDERER_WEBGL = 0x9246;
-
- static const int UNMASKED_VENDOR_WEBGL = 0x9245;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLDebugShaders
-class WebGLDebugShaders native "*WebGLDebugShaders" {
-
- /** @domName WebGLDebugShaders.getTranslatedShaderSource */
- String getTranslatedShaderSource(WebGLShader shader) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName WebGLDepthTexture
-class WebGLDepthTexture native "*WebGLDepthTexture" {
-
- static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLFramebuffer
-class WebGLFramebuffer native "*WebGLFramebuffer" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLLoseContext
-class WebGLLoseContext native "*WebGLLoseContext" {
-
- /** @domName WebGLLoseContext.loseContext */
- void loseContext() native;
-
- /** @domName WebGLLoseContext.restoreContext */
- void restoreContext() native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName WebGLProgram
-class WebGLProgram native "*WebGLProgram" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLRenderbuffer
-class WebGLRenderbuffer native "*WebGLRenderbuffer" {
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 WebGLRenderingContext
-class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderingContext" {
-
- static const int ACTIVE_ATTRIBUTES = 0x8B89;
-
- static const int ACTIVE_TEXTURE = 0x84E0;
-
- static const int ACTIVE_UNIFORMS = 0x8B86;
-
- static const int ALIASED_LINE_WIDTH_RANGE = 0x846E;
-
- static const int ALIASED_POINT_SIZE_RANGE = 0x846D;
-
- static const int ALPHA = 0x1906;
-
- static const int ALPHA_BITS = 0x0D55;
-
- static const int ALWAYS = 0x0207;
-
- static const int ARRAY_BUFFER = 0x8892;
-
- static const int ARRAY_BUFFER_BINDING = 0x8894;
-
- static const int ATTACHED_SHADERS = 0x8B85;
-
- static const int BACK = 0x0405;
-
- static const int BLEND = 0x0BE2;
-
- static const int BLEND_COLOR = 0x8005;
-
- static const int BLEND_DST_ALPHA = 0x80CA;
-
- static const int BLEND_DST_RGB = 0x80C8;
-
- static const int BLEND_EQUATION = 0x8009;
-
- static const int BLEND_EQUATION_ALPHA = 0x883D;
-
- static const int BLEND_EQUATION_RGB = 0x8009;
-
- static const int BLEND_SRC_ALPHA = 0x80CB;
-
- static const int BLEND_SRC_RGB = 0x80C9;
-
- static const int BLUE_BITS = 0x0D54;
-
- static const int BOOL = 0x8B56;
-
- static const int BOOL_VEC2 = 0x8B57;
-
- static const int BOOL_VEC3 = 0x8B58;
-
- static const int BOOL_VEC4 = 0x8B59;
-
- static const int BROWSER_DEFAULT_WEBGL = 0x9244;
-
- static const int BUFFER_SIZE = 0x8764;
-
- static const int BUFFER_USAGE = 0x8765;
-
- static const int BYTE = 0x1400;
-
- static const int CCW = 0x0901;
-
- static const int CLAMP_TO_EDGE = 0x812F;
-
- static const int COLOR_ATTACHMENT0 = 0x8CE0;
-
- static const int COLOR_BUFFER_BIT = 0x00004000;
-
- static const int COLOR_CLEAR_VALUE = 0x0C22;
-
- static const int COLOR_WRITEMASK = 0x0C23;
-
- static const int COMPILE_STATUS = 0x8B81;
-
- static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3;
-
- static const int CONSTANT_ALPHA = 0x8003;
-
- static const int CONSTANT_COLOR = 0x8001;
-
- static const int CONTEXT_LOST_WEBGL = 0x9242;
-
- static const int CULL_FACE = 0x0B44;
-
- static const int CULL_FACE_MODE = 0x0B45;
-
- static const int CURRENT_PROGRAM = 0x8B8D;
-
- static const int CURRENT_VERTEX_ATTRIB = 0x8626;
-
- static const int CW = 0x0900;
-
- static const int DECR = 0x1E03;
-
- static const int DECR_WRAP = 0x8508;
-
- static const int DELETE_STATUS = 0x8B80;
-
- static const int DEPTH_ATTACHMENT = 0x8D00;
-
- static const int DEPTH_BITS = 0x0D56;
-
- static const int DEPTH_BUFFER_BIT = 0x00000100;
-
- static const int DEPTH_CLEAR_VALUE = 0x0B73;
-
- static const int DEPTH_COMPONENT = 0x1902;
-
- static const int DEPTH_COMPONENT16 = 0x81A5;
-
- static const int DEPTH_FUNC = 0x0B74;
-
- static const int DEPTH_RANGE = 0x0B70;
-
- static const int DEPTH_STENCIL = 0x84F9;
-
- static const int DEPTH_STENCIL_ATTACHMENT = 0x821A;
-
- static const int DEPTH_TEST = 0x0B71;
-
- static const int DEPTH_WRITEMASK = 0x0B72;
-
- static const int DITHER = 0x0BD0;
-
- static const int DONT_CARE = 0x1100;
-
- static const int DST_ALPHA = 0x0304;
-
- static const int DST_COLOR = 0x0306;
-
- static const int DYNAMIC_DRAW = 0x88E8;
-
- static const int ELEMENT_ARRAY_BUFFER = 0x8893;
-
- static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
-
- static const int EQUAL = 0x0202;
-
- static const int FASTEST = 0x1101;
-
- static const int FLOAT = 0x1406;
-
- static const int FLOAT_MAT2 = 0x8B5A;
-
- static const int FLOAT_MAT3 = 0x8B5B;
-
- static const int FLOAT_MAT4 = 0x8B5C;
-
- static const int FLOAT_VEC2 = 0x8B50;
-
- static const int FLOAT_VEC3 = 0x8B51;
-
- static const int FLOAT_VEC4 = 0x8B52;
-
- static const int FRAGMENT_SHADER = 0x8B30;
-
- static const int FRAMEBUFFER = 0x8D40;
-
- static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
-
- static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
-
- static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
-
- static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
-
- static const int FRAMEBUFFER_BINDING = 0x8CA6;
-
- static const int FRAMEBUFFER_COMPLETE = 0x8CD5;
-
- static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
-
- static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9;
-
- static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
-
- static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
-
- static const int FRONT = 0x0404;
-
- static const int FRONT_AND_BACK = 0x0408;
-
- static const int FRONT_FACE = 0x0B46;
-
- static const int FUNC_ADD = 0x8006;
-
- static const int FUNC_REVERSE_SUBTRACT = 0x800B;
-
- static const int FUNC_SUBTRACT = 0x800A;
-
- static const int GENERATE_MIPMAP_HINT = 0x8192;
-
- static const int GEQUAL = 0x0206;
-
- static const int GREATER = 0x0204;
-
- static const int GREEN_BITS = 0x0D53;
-
- static const int HIGH_FLOAT = 0x8DF2;
-
- static const int HIGH_INT = 0x8DF5;
-
- static const int INCR = 0x1E02;
-
- static const int INCR_WRAP = 0x8507;
-
- static const int INT = 0x1404;
-
- static const int INT_VEC2 = 0x8B53;
-
- static const int INT_VEC3 = 0x8B54;
-
- static const int INT_VEC4 = 0x8B55;
-
- static const int INVALID_ENUM = 0x0500;
-
- static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506;
-
- static const int INVALID_OPERATION = 0x0502;
-
- static const int INVALID_VALUE = 0x0501;
-
- static const int INVERT = 0x150A;
-
- static const int KEEP = 0x1E00;
-
- static const int LEQUAL = 0x0203;
-
- static const int LESS = 0x0201;
-
- static const int LINEAR = 0x2601;
-
- static const int LINEAR_MIPMAP_LINEAR = 0x2703;
-
- static const int LINEAR_MIPMAP_NEAREST = 0x2701;
-
- static const int LINES = 0x0001;
-
- static const int LINE_LOOP = 0x0002;
-
- static const int LINE_STRIP = 0x0003;
-
- static const int LINE_WIDTH = 0x0B21;
-
- static const int LINK_STATUS = 0x8B82;
-
- static const int LOW_FLOAT = 0x8DF0;
-
- static const int LOW_INT = 0x8DF3;
-
- static const int LUMINANCE = 0x1909;
-
- static const int LUMINANCE_ALPHA = 0x190A;
-
- static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
-
- static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
-
- static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD;
-
- static const int MAX_RENDERBUFFER_SIZE = 0x84E8;
-
- static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872;
-
- static const int MAX_TEXTURE_SIZE = 0x0D33;
-
- static const int MAX_VARYING_VECTORS = 0x8DFC;
-
- static const int MAX_VERTEX_ATTRIBS = 0x8869;
-
- static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
-
- static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB;
-
- static const int MAX_VIEWPORT_DIMS = 0x0D3A;
-
- static const int MEDIUM_FLOAT = 0x8DF1;
-
- static const int MEDIUM_INT = 0x8DF4;
-
- static const int MIRRORED_REPEAT = 0x8370;
-
- static const int NEAREST = 0x2600;
-
- static const int NEAREST_MIPMAP_LINEAR = 0x2702;
-
- static const int NEAREST_MIPMAP_NEAREST = 0x2700;
-
- static const int NEVER = 0x0200;
-
- static const int NICEST = 0x1102;
-
- static const int NONE = 0;
-
- static const int NOTEQUAL = 0x0205;
-
- static const int NO_ERROR = 0;
-
- static const int ONE = 1;
-
- static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004;
-
- static const int ONE_MINUS_CONSTANT_COLOR = 0x8002;
-
- static const int ONE_MINUS_DST_ALPHA = 0x0305;
-
- static const int ONE_MINUS_DST_COLOR = 0x0307;
-
- static const int ONE_MINUS_SRC_ALPHA = 0x0303;
-
- static const int ONE_MINUS_SRC_COLOR = 0x0301;
-
- static const int OUT_OF_MEMORY = 0x0505;
-
- static const int PACK_ALIGNMENT = 0x0D05;
-
- static const int POINTS = 0x0000;
-
- static const int POLYGON_OFFSET_FACTOR = 0x8038;
-
- static const int POLYGON_OFFSET_FILL = 0x8037;
-
- static const int POLYGON_OFFSET_UNITS = 0x2A00;
-
- static const int RED_BITS = 0x0D52;
-
- static const int RENDERBUFFER = 0x8D41;
-
- static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53;
-
- static const int RENDERBUFFER_BINDING = 0x8CA7;
-
- static const int RENDERBUFFER_BLUE_SIZE = 0x8D52;
-
- static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54;
-
- static const int RENDERBUFFER_GREEN_SIZE = 0x8D51;
-
- static const int RENDERBUFFER_HEIGHT = 0x8D43;
-
- static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
-
- static const int RENDERBUFFER_RED_SIZE = 0x8D50;
-
- static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55;
-
- static const int RENDERBUFFER_WIDTH = 0x8D42;
-
- static const int RENDERER = 0x1F01;
-
- static const int REPEAT = 0x2901;
-
- static const int REPLACE = 0x1E01;
-
- static const int RGB = 0x1907;
-
- static const int RGB565 = 0x8D62;
-
- static const int RGB5_A1 = 0x8057;
-
- static const int RGBA = 0x1908;
-
- static const int RGBA4 = 0x8056;
-
- static const int SAMPLER_2D = 0x8B5E;
-
- static const int SAMPLER_CUBE = 0x8B60;
-
- static const int SAMPLES = 0x80A9;
-
- static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
-
- static const int SAMPLE_BUFFERS = 0x80A8;
-
- static const int SAMPLE_COVERAGE = 0x80A0;
-
- static const int SAMPLE_COVERAGE_INVERT = 0x80AB;
-
- static const int SAMPLE_COVERAGE_VALUE = 0x80AA;
-
- static const int SCISSOR_BOX = 0x0C10;
-
- static const int SCISSOR_TEST = 0x0C11;
-
- static const int SHADER_TYPE = 0x8B4F;
-
- static const int SHADING_LANGUAGE_VERSION = 0x8B8C;
-
- static const int SHORT = 0x1402;
-
- static const int SRC_ALPHA = 0x0302;
-
- static const int SRC_ALPHA_SATURATE = 0x0308;
-
- static const int SRC_COLOR = 0x0300;
-
- static const int STATIC_DRAW = 0x88E4;
-
- static const int STENCIL_ATTACHMENT = 0x8D20;
-
- static const int STENCIL_BACK_FAIL = 0x8801;
-
- static const int STENCIL_BACK_FUNC = 0x8800;
-
- static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
-
- static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
-
- static const int STENCIL_BACK_REF = 0x8CA3;
-
- static const int STENCIL_BACK_VALUE_MASK = 0x8CA4;
-
- static const int STENCIL_BACK_WRITEMASK = 0x8CA5;
-
- static const int STENCIL_BITS = 0x0D57;
-
- static const int STENCIL_BUFFER_BIT = 0x00000400;
-
- static const int STENCIL_CLEAR_VALUE = 0x0B91;
-
- static const int STENCIL_FAIL = 0x0B94;
-
- static const int STENCIL_FUNC = 0x0B92;
-
- static const int STENCIL_INDEX = 0x1901;
-
- static const int STENCIL_INDEX8 = 0x8D48;
-
- static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95;
-
- static const int STENCIL_PASS_DEPTH_PASS = 0x0B96;
-
- static const int STENCIL_REF = 0x0B97;
-
- static const int STENCIL_TEST = 0x0B90;
-
- static const int STENCIL_VALUE_MASK = 0x0B93;
-
- static const int STENCIL_WRITEMASK = 0x0B98;
-
- static const int STREAM_DRAW = 0x88E0;
-
- static const int SUBPIXEL_BITS = 0x0D50;
-
- static const int TEXTURE = 0x1702;
-
- static const int TEXTURE0 = 0x84C0;
-
- static const int TEXTURE1 = 0x84C1;
-
- static const int TEXTURE10 = 0x84CA;
-
- static const int TEXTURE11 = 0x84CB;
-
- static const int TEXTURE12 = 0x84CC;
-
- static const int TEXTURE13 = 0x84CD;
-
- static const int TEXTURE14 = 0x84CE;
-
- static const int TEXTURE15 = 0x84CF;
-
- static const int TEXTURE16 = 0x84D0;
-
- static const int TEXTURE17 = 0x84D1;
-
- static const int TEXTURE18 = 0x84D2;
-
- static const int TEXTURE19 = 0x84D3;
-
- static const int TEXTURE2 = 0x84C2;
-
- static const int TEXTURE20 = 0x84D4;
-
- static const int TEXTURE21 = 0x84D5;
-
- static const int TEXTURE22 = 0x84D6;
-
- static const int TEXTURE23 = 0x84D7;
-
- static const int TEXTURE24 = 0x84D8;
-
- static const int TEXTURE25 = 0x84D9;
-
- static const int TEXTURE26 = 0x84DA;
-
- static const int TEXTURE27 = 0x84DB;
-
- static const int TEXTURE28 = 0x84DC;
-
- static const int TEXTURE29 = 0x84DD;
-
- static const int TEXTURE3 = 0x84C3;
-
- static const int TEXTURE30 = 0x84DE;
-
- static const int TEXTURE31 = 0x84DF;
-
- static const int TEXTURE4 = 0x84C4;
-
- static const int TEXTURE5 = 0x84C5;
-
- static const int TEXTURE6 = 0x84C6;
-
- static const int TEXTURE7 = 0x84C7;
-
- static const int TEXTURE8 = 0x84C8;
-
- static const int TEXTURE9 = 0x84C9;
-
- static const int TEXTURE_2D = 0x0DE1;
-
- static const int TEXTURE_BINDING_2D = 0x8069;
-
- static const int TEXTURE_BINDING_CUBE_MAP = 0x8514;
-
- static const int TEXTURE_CUBE_MAP = 0x8513;
-
- static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
-
- static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
-
- static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
-
- static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
-
- static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
-
- static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
-
- static const int TEXTURE_MAG_FILTER = 0x2800;
-
- static const int TEXTURE_MIN_FILTER = 0x2801;
-
- static const int TEXTURE_WRAP_S = 0x2802;
-
- static const int TEXTURE_WRAP_T = 0x2803;
-
- static const int TRIANGLES = 0x0004;
-
- static const int TRIANGLE_FAN = 0x0006;
-
- static const int TRIANGLE_STRIP = 0x0005;
-
- static const int UNPACK_ALIGNMENT = 0x0CF5;
-
- static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
-
- static const int UNPACK_FLIP_Y_WEBGL = 0x9240;
-
- static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
-
- static const int UNSIGNED_BYTE = 0x1401;
-
- static const int UNSIGNED_INT = 0x1405;
-
- static const int UNSIGNED_SHORT = 0x1403;
-
- static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033;
-
- static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034;
-
- static const int UNSIGNED_SHORT_5_6_5 = 0x8363;
-
- static const int VALIDATE_STATUS = 0x8B83;
-
- static const int VENDOR = 0x1F00;
-
- static const int VERSION = 0x1F02;
-
- static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
-
- static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
-
- static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
-
- static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
-
- static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
-
- static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
-
- static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
-
- static const int VERTEX_SHADER = 0x8B31;
-
- static const int VIEWPORT = 0x0BA2;
-
- static const int ZERO = 0;
-
- /** @domName WebGLRenderingContext.drawingBufferHeight */
- final int drawingBufferHeight;
-
- /** @domName WebGLRenderingContext.drawingBufferWidth */
- final int drawingBufferWidth;
-
- /** @domName WebGLRenderingContext.activeTexture */
- void activeTexture(int texture) native;
-
- /** @domName WebGLRenderingContext.attachShader */
- void attachShader(WebGLProgram program, WebGLShader shader) native;
-
- /** @domName WebGLRenderingContext.bindAttribLocation */
- void bindAttribLocation(WebGLProgram program, int index, String name) native;
-
- /** @domName WebGLRenderingContext.bindBuffer */
- void bindBuffer(int target, WebGLBuffer buffer) native;
-
- /** @domName WebGLRenderingContext.bindFramebuffer */
- void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native;
-
- /** @domName WebGLRenderingContext.bindRenderbuffer */
- void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native;
-
- /** @domName WebGLRenderingContext.bindTexture */
- void bindTexture(int target, WebGLTexture texture) native;
-
- /** @domName WebGLRenderingContext.blendColor */
- void blendColor(num red, num green, num blue, num alpha) native;
-
- /** @domName WebGLRenderingContext.blendEquation */
- void blendEquation(int mode) native;
-
- /** @domName WebGLRenderingContext.blendEquationSeparate */
- void blendEquationSeparate(int modeRGB, int modeAlpha) native;
-
- /** @domName WebGLRenderingContext.blendFunc */
- void blendFunc(int sfactor, int dfactor) native;
-
- /** @domName WebGLRenderingContext.blendFuncSeparate */
- void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) native;
-
- /** @domName WebGLRenderingContext.bufferData */
- void bufferData(int target, data_OR_size, int usage) native;
-
- /** @domName WebGLRenderingContext.bufferSubData */
- void bufferSubData(int target, int offset, data) native;
-
- /** @domName WebGLRenderingContext.checkFramebufferStatus */
- int checkFramebufferStatus(int target) native;
-
- /** @domName WebGLRenderingContext.clear */
- void clear(int mask) native;
-
- /** @domName WebGLRenderingContext.clearColor */
- void clearColor(num red, num green, num blue, num alpha) native;
-
- /** @domName WebGLRenderingContext.clearDepth */
- void clearDepth(num depth) native;
-
- /** @domName WebGLRenderingContext.clearStencil */
- void clearStencil(int s) native;
-
- /** @domName WebGLRenderingContext.colorMask */
- void colorMask(bool red, bool green, bool blue, bool alpha) native;
-
- /** @domName WebGLRenderingContext.compileShader */
- void compileShader(WebGLShader shader) native;
-
- /** @domName WebGLRenderingContext.compressedTexImage2D */
- void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, ArrayBufferView data) native;
-
- /** @domName WebGLRenderingContext.compressedTexSubImage2D */
- void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) native;
-
- /** @domName WebGLRenderingContext.copyTexImage2D */
- void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) native;
-
- /** @domName WebGLRenderingContext.copyTexSubImage2D */
- void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native;
-
- /** @domName WebGLRenderingContext.createBuffer */
- WebGLBuffer createBuffer() native;
-
- /** @domName WebGLRenderingContext.createFramebuffer */
- WebGLFramebuffer createFramebuffer() native;
-
- /** @domName WebGLRenderingContext.createProgram */
- WebGLProgram createProgram() native;
-
- /** @domName WebGLRenderingContext.createRenderbuffer */
- WebGLRenderbuffer createRenderbuffer() native;
-
- /** @domName WebGLRenderingContext.createShader */
- WebGLShader createShader(int type) native;
-
- /** @domName WebGLRenderingContext.createTexture */
- WebGLTexture createTexture() native;
-
- /** @domName WebGLRenderingContext.cullFace */
- void cullFace(int mode) native;
-
- /** @domName WebGLRenderingContext.deleteBuffer */
- void deleteBuffer(WebGLBuffer buffer) native;
-
- /** @domName WebGLRenderingContext.deleteFramebuffer */
- void deleteFramebuffer(WebGLFramebuffer framebuffer) native;
-
- /** @domName WebGLRenderingContext.deleteProgram */
- void deleteProgram(WebGLProgram program) native;
-
- /** @domName WebGLRenderingContext.deleteRenderbuffer */
- void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native;
-
- /** @domName WebGLRenderingContext.deleteShader */
- void deleteShader(WebGLShader shader) native;
-
- /** @domName WebGLRenderingContext.deleteTexture */
- void deleteTexture(WebGLTexture texture) native;
-
- /** @domName WebGLRenderingContext.depthFunc */
- void depthFunc(int func) native;
-
- /** @domName WebGLRenderingContext.depthMask */
- void depthMask(bool flag) native;
-
- /** @domName WebGLRenderingContext.depthRange */
- void depthRange(num zNear, num zFar) native;
-
- /** @domName WebGLRenderingContext.detachShader */
- void detachShader(WebGLProgram program, WebGLShader shader) native;
-
- /** @domName WebGLRenderingContext.disable */
- void disable(int cap) native;
-
- /** @domName WebGLRenderingContext.disableVertexAttribArray */
- void disableVertexAttribArray(int index) native;
-
- /** @domName WebGLRenderingContext.drawArrays */
- void drawArrays(int mode, int first, int count) native;
-
- /** @domName WebGLRenderingContext.drawElements */
- void drawElements(int mode, int count, int type, int offset) native;
-
- /** @domName WebGLRenderingContext.enable */
- void enable(int cap) native;
-
- /** @domName WebGLRenderingContext.enableVertexAttribArray */
- void enableVertexAttribArray(int index) native;
-
- /** @domName WebGLRenderingContext.finish */
- void finish() native;
-
- /** @domName WebGLRenderingContext.flush */
- void flush() native;
-
- /** @domName WebGLRenderingContext.framebufferRenderbuffer */
- void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, WebGLRenderbuffer renderbuffer) native;
-
- /** @domName WebGLRenderingContext.framebufferTexture2D */
- void framebufferTexture2D(int target, int attachment, int textarget, WebGLTexture texture, int level) native;
-
- /** @domName WebGLRenderingContext.frontFace */
- void frontFace(int mode) native;
-
- /** @domName WebGLRenderingContext.generateMipmap */
- void generateMipmap(int target) native;
-
- /** @domName WebGLRenderingContext.getActiveAttrib */
- WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native;
-
- /** @domName WebGLRenderingContext.getActiveUniform */
- WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native;
-
- /** @domName WebGLRenderingContext.getAttachedShaders */
- void getAttachedShaders(WebGLProgram program) native;
-
- /** @domName WebGLRenderingContext.getAttribLocation */
- int getAttribLocation(WebGLProgram program, String name) native;
-
- /** @domName WebGLRenderingContext.getBufferParameter */
- Object getBufferParameter(int target, int pname) native;
-
- /** @domName WebGLRenderingContext.getContextAttributes */
- WebGLContextAttributes getContextAttributes() native;
-
- /** @domName WebGLRenderingContext.getError */
- int getError() native;
-
- /** @domName WebGLRenderingContext.getExtension */
- Object getExtension(String name) native;
-
- /** @domName WebGLRenderingContext.getFramebufferAttachmentParameter */
- Object getFramebufferAttachmentParameter(int target, int attachment, int pname) native;
-
- /** @domName WebGLRenderingContext.getParameter */
- Object getParameter(int pname) native;
-
- /** @domName WebGLRenderingContext.getProgramInfoLog */
- String getProgramInfoLog(WebGLProgram program) native;
-
- /** @domName WebGLRenderingContext.getProgramParameter */
- Object getProgramParameter(WebGLProgram program, int pname) native;
-
- /** @domName WebGLRenderingContext.getRenderbufferParameter */
- Object getRenderbufferParameter(int target, int pname) native;
-
- /** @domName WebGLRenderingContext.getShaderInfoLog */
- String getShaderInfoLog(WebGLShader shader) native;
-
- /** @domName WebGLRenderingContext.getShaderParameter */
- Object getShaderParameter(WebGLShader shader, int pname) native;
-
- /** @domName WebGLRenderingContext.getShaderPrecisionFormat */
- WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisiontype) native;
-
- /** @domName WebGLRenderingContext.getShaderSource */
- String getShaderSource(WebGLShader shader) native;
-
- /** @domName WebGLRenderingContext.getSupportedExtensions */
- List<String> getSupportedExtensions() native;
-
- /** @domName WebGLRenderingContext.getTexParameter */
- Object getTexParameter(int target, int pname) native;
-
- /** @domName WebGLRenderingContext.getUniform */
- Object getUniform(WebGLProgram program, WebGLUniformLocation location) native;
-
- /** @domName WebGLRenderingContext.getUniformLocation */
- WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) native;
+ /** @domName WebGLRenderingContext.getUniformLocation */
+ WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) native;
/** @domName WebGLRenderingContext.getVertexAttrib */
Object getVertexAttrib(int index, int pname) native;
@@ -26326,7 +20220,7 @@ class _CSSRuleList implements JavaScriptIndexingBehavior, List<CSSRule> native "
// 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<CSSRule>(this);
+ return new FixedSizeListIterator<CSSRule>(this);
}
// From Collection<CSSRule>:
@@ -26423,7 +20317,7 @@ class _CSSValueList extends CSSValue implements List<CSSValue>, JavaScriptIndexi
// 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<CSSValue>(this);
+ return new FixedSizeListIterator<CSSValue>(this);
}
// From Collection<CSSValue>:
@@ -26520,7 +20414,7 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na
// 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<ClientRect>(this);
+ return new FixedSizeListIterator<ClientRect>(this);
}
// From Collection<ClientRect>:
@@ -26626,7 +20520,7 @@ class _DOMStringList implements JavaScriptIndexingBehavior, List<String> native
// 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);
+ return new FixedSizeListIterator<String>(this);
}
// From Collection<String>:
@@ -27048,7 +20942,7 @@ class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
// 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<Entry>(this);
+ return new FixedSizeListIterator<Entry>(this);
}
// From Collection<Entry>:
@@ -27145,7 +21039,7 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat
// 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<EntrySync>(this);
+ return new FixedSizeListIterator<EntrySync>(this);
}
// From Collection<EntrySync>:
@@ -27251,7 +21145,7 @@ class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL
// 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<File>(this);
+ return new FixedSizeListIterator<File>(this);
}
// From Collection<File>:
@@ -27377,7 +21271,7 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
// 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<Gamepad>(this);
+ return new FixedSizeListIterator<Gamepad>(this);
}
// From Collection<Gamepad>:
@@ -27527,7 +21421,7 @@ class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream>
// 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<MediaStream>(this);
+ return new FixedSizeListIterator<MediaStream>(this);
}
// From Collection<MediaStream>:
@@ -27660,143 +21554,46 @@ class _OptionElementFactoryProvider {
if (selected == null) {
return JS('OptionElement', 'new Option(#,#,#)',
data, value, defaultSelected);
- }
- return JS('OptionElement', 'new Option(#,#,#,#)',
- data, value, defaultSelected, selected);
- }
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 _PeerConnection00FactoryProvider {
- static PeerConnection00 createPeerConnection00(String serverConfiguration, IceCallback iceCallback) =>
- JS('PeerConnection00', 'new PeerConnection00(#,#)', serverConfiguration, iceCallback);
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 _RTCIceCandidateFactoryProvider {
- static RTCIceCandidate createRTCIceCandidate(Map dictionary) =>
- JS('RTCIceCandidate', 'new RTCIceCandidate(#)', dictionary);
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 _RTCPeerConnectionFactoryProvider {
- static RTCPeerConnection createRTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) =>
- JS('RTCPeerConnection', 'new RTCPeerConnection(#,#)', rtcIceServers, mediaConstraints);
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 _RTCSessionDescriptionFactoryProvider {
- static RTCSessionDescription createRTCSessionDescription(Map dictionary) =>
- JS('RTCSessionDescription', 'new RTCSessionDescription(#)', dictionary);
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 SVGElementInstanceList
-class _SVGElementInstanceList implements JavaScriptIndexingBehavior, List<SVGElementInstance> native "*SVGElementInstanceList" {
-
- /** @domName SVGElementInstanceList.length */
- final int length;
-
- SVGElementInstance operator[](int index) => JS("SVGElementInstance", "#[#]", this, index);
-
- void operator[]=(int index, SVGElementInstance value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<SVGElementInstance> mixins.
- // SVGElementInstance is the element type.
-
- // From Iterable<SVGElementInstance>:
-
- Iterator<SVGElementInstance> 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<SVGElementInstance>(this);
- }
-
- // From Collection<SVGElementInstance>:
-
- void add(SVGElementInstance value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addLast(SVGElementInstance value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGElementInstance> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- bool contains(SVGElementInstance element) => _Collections.contains(this, element);
-
- void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGElementInstance element)) => _Collections.map(this, [], f);
-
- Collection<SVGElementInstance> filter(bool f(SVGElementInstance element)) =>
- _Collections.filter(this, <SVGElementInstance>[], f);
-
- bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<SVGElementInstance>:
-
- void sort([Comparator<SVGElementInstance> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(SVGElementInstance element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGElementInstance element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
+ }
+ return JS('OptionElement', 'new Option(#,#,#,#)',
+ data, value, defaultSelected, selected);
}
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- SVGElementInstance get last => this[length - 1];
- SVGElementInstance removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
- }
+class _PeerConnection00FactoryProvider {
+ static PeerConnection00 createPeerConnection00(String serverConfiguration, IceCallback iceCallback) =>
+ JS('PeerConnection00', 'new PeerConnection00(#,#)', serverConfiguration, iceCallback);
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 setRange(int start, int rangeLength, List<SVGElementInstance> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
+class _RTCIceCandidateFactoryProvider {
+ static RTCIceCandidate createRTCIceCandidate(Map dictionary) =>
+ JS('RTCIceCandidate', 'new RTCIceCandidate(#)', dictionary);
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 insertRange(int start, int rangeLength, [SVGElementInstance initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
- List<SVGElementInstance> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]);
+class _RTCPeerConnectionFactoryProvider {
+ static RTCPeerConnection createRTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) =>
+ JS('RTCPeerConnection', 'new RTCPeerConnection(#,#)', rtcIceServers, mediaConstraints);
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- // -- end List<SVGElementInstance> mixins.
- /** @domName SVGElementInstanceList.item */
- SVGElementInstance item(int index) native;
+class _RTCSessionDescriptionFactoryProvider {
+ static RTCSessionDescription createRTCSessionDescription(Map dictionary) =>
+ JS('RTCSessionDescription', 'new RTCSessionDescription(#)', dictionary);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -27871,7 +21668,7 @@ class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
// 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<SpeechInputResult>(this);
+ return new FixedSizeListIterator<SpeechInputResult>(this);
}
// From Collection<SpeechInputResult>:
@@ -27977,7 +21774,7 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
// 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<SpeechRecognitionResult>(this);
+ return new FixedSizeListIterator<SpeechRecognitionResult>(this);
}
// From Collection<SpeechRecognitionResult>:
@@ -28005,31 +21802,249 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
bool every(bool f(SpeechRecognitionResult element)) => _Collections.every(this, f);
- bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this, f);
+ bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this, f);
+
+ bool get isEmpty => this.length == 0;
+
+ // From List<SpeechRecognitionResult>:
+
+ void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare]) {
+ throw new UnsupportedError("Cannot sort immutable List.");
+ }
+
+ int indexOf(SpeechRecognitionResult element, [int start = 0]) =>
+ _Lists.indexOf(this, element, start, this.length);
+
+ int lastIndexOf(SpeechRecognitionResult element, [int start]) {
+ if (start == null) start = length - 1;
+ return _Lists.lastIndexOf(this, element, start);
+ }
+
+ SpeechRecognitionResult get last => this[length - 1];
+
+ SpeechRecognitionResult removeLast() {
+ throw new UnsupportedError("Cannot removeLast on immutable List.");
+ }
+
+ void setRange(int start, int rangeLength, List<SpeechRecognitionResult> from, [int startFrom]) {
+ throw new UnsupportedError("Cannot setRange on immutable List.");
+ }
+
+ void removeRange(int start, int rangeLength) {
+ throw new UnsupportedError("Cannot removeRange on immutable List.");
+ }
+
+ void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialValue]) {
+ throw new UnsupportedError("Cannot insertRange on immutable List.");
+ }
+
+ List<SpeechRecognitionResult> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]);
+
+ // -- end List<SpeechRecognitionResult> mixins.
+
+ /** @domName SpeechRecognitionResultList.item */
+ SpeechRecognitionResult item(int index) native;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+
+/// @domName StyleSheetList
+class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> native "*StyleSheetList" {
+
+ /** @domName StyleSheetList.length */
+ final int length;
+
+ StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index);
+
+ void operator[]=(int index, StyleSheet value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
+ }
+ // -- start List<StyleSheet> mixins.
+ // StyleSheet is the element type.
+
+ // From Iterable<StyleSheet>:
+
+ Iterator<StyleSheet> 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<StyleSheet>(this);
+ }
+
+ // From Collection<StyleSheet>:
+
+ void add(StyleSheet value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void addLast(StyleSheet value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void addAll(Collection<StyleSheet> collection) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ bool contains(StyleSheet element) => _Collections.contains(this, element);
+
+ void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f);
+
+ Collection map(f(StyleSheet element)) => _Collections.map(this, [], f);
+
+ Collection<StyleSheet> filter(bool f(StyleSheet element)) =>
+ _Collections.filter(this, <StyleSheet>[], f);
+
+ bool every(bool f(StyleSheet element)) => _Collections.every(this, f);
+
+ bool some(bool f(StyleSheet element)) => _Collections.some(this, f);
+
+ bool get isEmpty => this.length == 0;
+
+ // From List<StyleSheet>:
+
+ void sort([Comparator<StyleSheet> compare = Comparable.compare]) {
+ throw new UnsupportedError("Cannot sort immutable List.");
+ }
+
+ int indexOf(StyleSheet element, [int start = 0]) =>
+ _Lists.indexOf(this, element, start, this.length);
+
+ int lastIndexOf(StyleSheet element, [int start]) {
+ if (start == null) start = length - 1;
+ return _Lists.lastIndexOf(this, element, start);
+ }
+
+ StyleSheet get last => this[length - 1];
+
+ StyleSheet removeLast() {
+ throw new UnsupportedError("Cannot removeLast on immutable List.");
+ }
+
+ void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFrom]) {
+ throw new UnsupportedError("Cannot setRange on immutable List.");
+ }
+
+ void removeRange(int start, int rangeLength) {
+ throw new UnsupportedError("Cannot removeRange on immutable List.");
+ }
+
+ void insertRange(int start, int rangeLength, [StyleSheet initialValue]) {
+ throw new UnsupportedError("Cannot insertRange on immutable List.");
+ }
+
+ List<StyleSheet> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <StyleSheet>[]);
+
+ // -- end List<StyleSheet> mixins.
+
+ /** @domName StyleSheetList.item */
+ StyleSheet item(int index) native;
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+
+class _TextTrackCueFactoryProvider {
+ static TextTrackCue createTextTrackCue(
+ String id, num startTime, num endTime, String text,
+ [String settings, bool pauseOnExit]) {
+ if (settings == null) {
+ return JS('TextTrackCue',
+ 'new TextTrackCue(#,#,#,#)',
+ id, startTime, endTime, text);
+ }
+ if (pauseOnExit == null) {
+ return JS('TextTrackCue',
+ 'new TextTrackCue(#,#,#,#,#)',
+ id, startTime, endTime, text, settings);
+ }
+ return JS('TextTrackCue',
+ 'new TextTrackCue(#,#,#,#,#,#)',
+ id, startTime, endTime, text, settings, pauseOnExit);
+ }
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 WebKitAnimationList
+class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation> native "*WebKitAnimationList" {
+
+ /** @domName WebKitAnimationList.length */
+ final int length;
+
+ Animation operator[](int index) => JS("Animation", "#[#]", this, index);
+
+ void operator[]=(int index, Animation value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
+ }
+ // -- start List<Animation> mixins.
+ // Animation is the element type.
+
+ // From Iterable<Animation>:
+
+ Iterator<Animation> 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<Animation>(this);
+ }
+
+ // From Collection<Animation>:
+
+ void add(Animation value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void addLast(Animation value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void addAll(Collection<Animation> collection) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ bool contains(Animation element) => _Collections.contains(this, element);
+
+ void forEach(void f(Animation element)) => _Collections.forEach(this, f);
+
+ Collection map(f(Animation element)) => _Collections.map(this, [], f);
+
+ Collection<Animation> filter(bool f(Animation element)) =>
+ _Collections.filter(this, <Animation>[], f);
+
+ bool every(bool f(Animation element)) => _Collections.every(this, f);
+
+ bool some(bool f(Animation element)) => _Collections.some(this, f);
bool get isEmpty => this.length == 0;
- // From List<SpeechRecognitionResult>:
+ // From List<Animation>:
- void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare]) {
+ void sort([Comparator<Animation> compare = Comparable.compare]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
- int indexOf(SpeechRecognitionResult element, [int start = 0]) =>
+ int indexOf(Animation element, [int start = 0]) =>
_Lists.indexOf(this, element, start, this.length);
- int lastIndexOf(SpeechRecognitionResult element, [int start]) {
+ int lastIndexOf(Animation element, [int start]) {
if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
- SpeechRecognitionResult get last => this[length - 1];
+ Animation get last => this[length - 1];
- SpeechRecognitionResult removeLast() {
+ Animation removeLast() {
throw new UnsupportedError("Cannot removeLast on immutable List.");
}
- void setRange(int start, int rangeLength, List<SpeechRecognitionResult> from, [int startFrom]) {
+ void setRange(int start, int rangeLength, List<Animation> from, [int startFrom]) {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
@@ -28037,309 +22052,352 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialValue]) {
+ void insertRange(int start, int rangeLength, [Animation initialValue]) {
throw new UnsupportedError("Cannot insertRange on immutable List.");
}
- List<SpeechRecognitionResult> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]);
+ List<Animation> getRange(int start, int rangeLength) =>
+ _Lists.getRange(this, start, rangeLength, <Animation>[]);
- // -- end List<SpeechRecognitionResult> mixins.
+ // -- end List<Animation> mixins.
- /** @domName SpeechRecognitionResultList.item */
- SpeechRecognitionResult item(int index) native;
+ /** @domName WebKitAnimationList.item */
+ Animation item(int index) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName StyleSheetList
-class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> native "*StyleSheetList" {
+class _WorkerFactoryProvider {
+ static Worker createWorker(String scriptUrl) =>
+ JS('Worker', 'new Worker(#)', scriptUrl);
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 StyleSheetList.length */
- final int length;
- StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index);
+class _XMLSerializerFactoryProvider {
+ static XMLSerializer createXMLSerializer() =>
+ JS('XMLSerializer', 'new XMLSerializer()' );
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 operator[]=(int index, StyleSheet value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<StyleSheet> mixins.
- // StyleSheet is the element type.
- // From Iterable<StyleSheet>:
+class _XPathEvaluatorFactoryProvider {
+ static XPathEvaluator createXPathEvaluator() =>
+ JS('XPathEvaluator', 'new XPathEvaluator()' );
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- Iterator<StyleSheet> 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<StyleSheet>(this);
- }
- // From Collection<StyleSheet>:
+class _XSLTProcessorFactoryProvider {
+ static XSLTProcessor createXSLTProcessor() =>
+ JS('XSLTProcessor', 'new XSLTProcessor()' );
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for 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 add(StyleSheet value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
- void addLast(StyleSheet value) {
- throw new UnsupportedError("Cannot add to immutable List.");
+abstract class Window {
+ // Fields.
+ Location get location;
+ History get history;
+
+ bool get closed;
+ Window get opener;
+ Window get parent;
+ Window get top;
+
+ // Methods.
+ void focus();
+ void blur();
+ void close();
+ void postMessage(var message, String targetOrigin, [List messagePorts = null]);
+}
+
+abstract class Location {
+ void set href(String val);
+}
+
+abstract class History {
+ void back();
+ void forward();
+ void go(int distance);
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+abstract class CssClassSet implements Set<String> {
+
+ String toString() {
+ return Strings.join(new List.from(readClasses()), ' ');
}
- void addAll(Collection<StyleSheet> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
+ /**
+ * Adds the class [token] to the element if it is not on it, removes it if it
+ * is.
+ */
+ bool toggle(String value) {
+ Set<String> s = readClasses();
+ bool result = false;
+ if (s.contains(value)) {
+ s.remove(value);
+ } else {
+ s.add(value);
+ result = true;
+ }
+ writeClasses(s);
+ return result;
}
- bool contains(StyleSheet element) => _Collections.contains(this, element);
+ /**
+ * Returns [:true:] if classes cannot be added or removed from this
+ * [:CssClassSet:].
+ */
+ bool get frozen => false;
- void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f);
+ // interface Iterable - BEGIN
+ Iterator<String> iterator() => readClasses().iterator();
+ // interface Iterable - END
- Collection map(f(StyleSheet element)) => _Collections.map(this, [], f);
+ // interface Collection - BEGIN
+ void forEach(void f(String element)) {
+ readClasses().forEach(f);
+ }
- Collection<StyleSheet> filter(bool f(StyleSheet element)) =>
- _Collections.filter(this, <StyleSheet>[], f);
+ Collection map(f(String element)) => readClasses().map(f);
- bool every(bool f(StyleSheet element)) => _Collections.every(this, f);
+ Collection<String> filter(bool f(String element)) => readClasses().filter(f);
- bool some(bool f(StyleSheet element)) => _Collections.some(this, f);
+ bool every(bool f(String element)) => readClasses().every(f);
- bool get isEmpty => this.length == 0;
+ bool some(bool f(String element)) => readClasses().some(f);
- // From List<StyleSheet>:
+ bool get isEmpty => readClasses().isEmpty;
- void sort([Comparator<StyleSheet> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
+ int get length =>readClasses().length;
+ // interface Collection - END
- int indexOf(StyleSheet element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
+ // interface Set - BEGIN
+ bool contains(String value) => readClasses().contains(value);
- int lastIndexOf(StyleSheet element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
+ void add(String value) {
+ // TODO - figure out if we need to do any validation here
+ // or if the browser natively does enough
+ _modify((s) => s.add(value));
}
- StyleSheet get last => this[length - 1];
-
- StyleSheet removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
+ bool remove(String value) {
+ Set<String> s = readClasses();
+ bool result = s.remove(value);
+ writeClasses(s);
+ return result;
}
- void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
+ void addAll(Collection<String> collection) {
+ // TODO - see comment above about validation
+ _modify((s) => s.addAll(collection));
}
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
+ void removeAll(Collection<String> collection) {
+ _modify((s) => s.removeAll(collection));
}
- void insertRange(int start, int rangeLength, [StyleSheet initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
+ bool isSubsetOf(Collection<String> collection) =>
+ readClasses().isSubsetOf(collection);
+
+ bool containsAll(Collection<String> collection) =>
+ readClasses().containsAll(collection);
+
+ Set<String> intersection(Collection<String> other) =>
+ readClasses().intersection(other);
+
+ void clear() {
+ _modify((s) => s.clear());
}
+ // interface Set - END
- List<StyleSheet> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <StyleSheet>[]);
+ /**
+ * Helper method used to modify the set of css classes on this element.
+ *
+ * f - callback with:
+ * s - a Set of all the css class name currently on this element.
+ *
+ * After f returns, the modified set is written to the
+ * className property of this element.
+ */
+ void _modify( f(Set<String> s)) {
+ Set<String> s = readClasses();
+ f(s);
+ writeClasses(s);
+ }
- // -- end List<StyleSheet> mixins.
+ /**
+ * Read the class names from the Element class property,
+ * and put them into a set (duplicates are discarded).
+ * This is intended to be overridden by specific implementations.
+ */
+ Set<String> readClasses();
- /** @domName StyleSheetList.item */
- StyleSheet item(int index) native;
+ /**
+ * Join all the elements of a set into one string and write
+ * back to the element.
+ * This is intended to be overridden by specific implementations.
+ */
+ void writeClasses(Set<String> s);
}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class _TextTrackCueFactoryProvider {
- static TextTrackCue createTextTrackCue(
- String id, num startTime, num endTime, String text,
- [String settings, bool pauseOnExit]) {
- if (settings == null) {
- return JS('TextTrackCue',
- 'new TextTrackCue(#,#,#,#)',
- id, startTime, endTime, text);
- }
- if (pauseOnExit == null) {
- return JS('TextTrackCue',
- 'new TextTrackCue(#,#,#,#,#)',
- id, startTime, endTime, text, settings);
- }
- return JS('TextTrackCue',
- 'new TextTrackCue(#,#,#,#,#,#)',
- id, startTime, endTime, text, settings, pauseOnExit);
- }
+/**
+ * Utils for device detection.
+ */
+class _Device {
+ /**
+ * Gets the browser's user agent. Using this function allows tests to inject
+ * the user agent.
+ * Returns the user agent.
+ */
+ static String get userAgent => window.navigator.userAgent;
+
+ /**
+ * Determines if the current device is running Opera.
+ */
+ static bool get isOpera => userAgent.contains("Opera", 0);
+
+ /**
+ * Determines if the current device is running Internet Explorer.
+ */
+ static bool get isIE => !isOpera && userAgent.contains("MSIE", 0);
+
+ /**
+ * Determines if the current device is running Firefox.
+ */
+ static bool get isFirefox => userAgent.contains("Firefox", 0);
+
+ /**
+ * Determines if the current device is running WebKit.
+ */
+ static bool get isWebKit => !isOpera && userAgent.contains("WebKit", 0);
}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/// @domName WebKitAnimationList
-class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation> native "*WebKitAnimationList" {
+typedef void EventListener(Event event);
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- /** @domName WebKitAnimationList.length */
- final int length;
+class FilteredElementList implements List {
+ final Node _node;
+ final List<Node> _childNodes;
- Animation operator[](int index) => JS("Animation", "#[#]", this, index);
+ FilteredElementList(Node node): _childNodes = node.nodes, _node = node;
- void operator[]=(int index, Animation value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<Animation> mixins.
- // Animation is the element type.
+ // We can't memoize this, since it's possible that children will be messed
+ // with externally to this class.
+ //
+ // TODO(nweiz): Do we really need to copy the list to make the types work out?
+ List<Element> get _filtered =>
+ new List.from(_childNodes.filter((n) => n is Element));
- // From Iterable<Animation>:
+ void forEach(void f(Element element)) {
+ _filtered.forEach(f);
+ }
- Iterator<Animation> 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<Animation>(this);
+ void operator []=(int index, Element value) {
+ this[index].replaceWith(value);
}
- // From Collection<Animation>:
+ void set length(int newLength) {
+ final len = this.length;
+ if (newLength >= len) {
+ return;
+ } else if (newLength < 0) {
+ throw new ArgumentError("Invalid list length");
+ }
- void add(Animation value) {
- throw new UnsupportedError("Cannot add to immutable List.");
+ removeRange(newLength - 1, len - newLength);
}
- void addLast(Animation value) {
- throw new UnsupportedError("Cannot add to immutable List.");
+ void add(Element value) {
+ _childNodes.add(value);
}
- void addAll(Collection<Animation> collection) {
- throw new UnsupportedError("Cannot add to immutable List.");
+ void addAll(Collection<Element> collection) {
+ collection.forEach(add);
}
- bool contains(Animation element) => _Collections.contains(this, element);
-
- void forEach(void f(Animation element)) => _Collections.forEach(this, f);
-
- Collection map(f(Animation element)) => _Collections.map(this, [], f);
-
- Collection<Animation> filter(bool f(Animation element)) =>
- _Collections.filter(this, <Animation>[], f);
-
- bool every(bool f(Animation element)) => _Collections.every(this, f);
-
- bool some(bool f(Animation element)) => _Collections.some(this, f);
-
- bool get isEmpty => this.length == 0;
-
- // From List<Animation>:
-
- void sort([Comparator<Animation> compare = Comparable.compare]) {
- throw new UnsupportedError("Cannot sort immutable List.");
+ void addLast(Element value) {
+ add(value);
}
- int indexOf(Animation element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(Animation element, [int start]) {
- if (start == null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
+ bool contains(Element element) {
+ return element is Element && _childNodes.contains(element);
}
- Animation get last => this[length - 1];
-
- Animation removeLast() {
- throw new UnsupportedError("Cannot removeLast on immutable List.");
+ void sort([Comparator<Element> compare = Comparable.compare]) {
+ throw new UnsupportedError('TODO(jacobr): should we impl?');
}
- void setRange(int start, int rangeLength, List<Animation> from, [int startFrom]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
+ void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
+ throw new UnimplementedError();
}
void removeRange(int start, int rangeLength) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
+ _filtered.getRange(start, rangeLength).forEach((el) => el.remove());
}
- void insertRange(int start, int rangeLength, [Animation initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
+ void insertRange(int start, int rangeLength, [initialValue = null]) {
+ throw new UnimplementedError();
}
- List<Animation> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <Animation>[]);
-
- // -- end List<Animation> mixins.
-
- /** @domName WebKitAnimationList.item */
- Animation item(int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-class _WorkerFactoryProvider {
- static Worker createWorker(String scriptUrl) =>
- JS('Worker', 'new Worker(#)', scriptUrl);
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 _XMLSerializerFactoryProvider {
- static XMLSerializer createXMLSerializer() =>
- JS('XMLSerializer', 'new XMLSerializer()' );
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 _XPathEvaluatorFactoryProvider {
- static XPathEvaluator createXPathEvaluator() =>
- JS('XPathEvaluator', 'new XPathEvaluator()' );
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for 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 _XSLTProcessorFactoryProvider {
- static XSLTProcessor createXSLTProcessor() =>
- JS('XSLTProcessor', 'new XSLTProcessor()' );
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-abstract class Window {
- // Fields.
- Location get location;
- History get history;
+ void clear() {
+ // Currently, ElementList#clear clears even non-element nodes, so we follow
+ // that behavior.
+ _childNodes.clear();
+ }
- bool get closed;
- Window get opener;
- Window get parent;
- Window get top;
+ Element removeLast() {
+ final result = this.last;
+ if (result != null) {
+ result.remove();
+ }
+ return result;
+ }
- // Methods.
- void focus();
- void blur();
- void close();
- void postMessage(var message, String targetOrigin, [List messagePorts = null]);
-}
+ Collection map(f(Element element)) => _filtered.map(f);
+ Collection<Element> filter(bool f(Element element)) => _filtered.filter(f);
+ bool every(bool f(Element element)) => _filtered.every(f);
+ bool some(bool f(Element element)) => _filtered.some(f);
+ bool get isEmpty => _filtered.isEmpty;
+ int get length => _filtered.length;
+ Element operator [](int index) => _filtered[index];
+ Iterator<Element> iterator() => _filtered.iterator();
+ List<Element> getRange(int start, int rangeLength) =>
+ _filtered.getRange(start, rangeLength);
+ int indexOf(Element element, [int start = 0]) =>
+ _filtered.indexOf(element, start);
-abstract class Location {
- void set href(String val);
-}
+ int lastIndexOf(Element element, [int start = null]) {
+ if (start == null) start = length - 1;
+ return _filtered.lastIndexOf(element, start);
+ }
-abstract class History {
- void back();
- void forward();
- void go(int distance);
+ Element get last => _filtered.last;
}
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-typedef void EventListener(Event event);
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -29839,6 +23897,7 @@ class _Deserializer {
// for 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 _CustomEventFactoryProvider {
static CustomEvent createCustomEvent(String type, [bool canBubble = true,
bool cancelable = true, Object detail = null]) {
@@ -29906,10 +23965,10 @@ class _DocumentFragmentFactoryProvider {
// return fragment;
// }
- static DocumentFragment createDocumentFragment_svg(String svg) {
+ static DocumentFragment createDocumentFragment_svg(String svgContent) {
final fragment = new DocumentFragment();
- final e = new SVGSVGElement();
- e.innerHTML = svg;
+ final e = new svg.SVGSVGElement();
+ e.innerHTML = svgContent;
// Copy list first since we don't want liveness during iteration.
final List nodes = new List.from(e.nodes);
@@ -29917,40 +23976,6 @@ class _DocumentFragmentFactoryProvider {
return fragment;
}
}
-
-class _SVGElementFactoryProvider {
- static SVGElement createSVGElement_tag(String tag) {
- final Element temp =
- document.$dom_createElementNS("http://www.w3.org/2000/svg", tag);
- return temp;
- }
-
- static SVGElement createSVGElement_svg(String svg) {
- Element parentTag;
- final match = _START_TAG_REGEXP.firstMatch(svg);
- if (match != null && match.group(1).toLowerCase() == 'svg') {
- parentTag = new Element.tag('div');
- } else {
- parentTag = new SVGSVGElement();
- }
-
- parentTag.innerHTML = svg;
- if (parentTag.elements.length == 1) return parentTag.elements.removeLast();
-
- throw new ArgumentError(
- 'SVG had ${parentTag.elements.length} '
- 'top-level elements but 1 expected');
- }
-}
-
-class _SVGSVGElementFactoryProvider {
- static SVGSVGElement createSVGSVGElement() {
- final el = new SVGElement.tag("svg");
- // The SVG spec requires the version attribute to match the spec version
- el.attributes['version'] = "1.1";
- return el;
- }
-}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -30805,45 +24830,9 @@ class Testing {
// BSD-style license that can be found in the LICENSE file.
-/**
- * Utils for device detection.
- */
-class _Device {
- /**
- * Gets the browser's user agent. Using this function allows tests to inject
- * the user agent.
- * Returns the user agent.
- */
- static String get userAgent => window.navigator.userAgent;
-
- /**
- * Determines if the current device is running Opera.
- */
- static bool get isOpera => userAgent.contains("Opera", 0);
-
- /**
- * Determines if the current device is running Internet Explorer.
- */
- static bool get isIE => !isOpera && userAgent.contains("MSIE", 0);
-
- /**
- * Determines if the current device is running Firefox.
- */
- static bool get isFirefox => userAgent.contains("Firefox", 0);
-
- /**
- * Determines if the current device is running WebKit.
- */
- static bool get isWebKit => !isOpera && userAgent.contains("WebKit", 0);
-}
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
// Iterator for arrays with fixed size.
-class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> {
- _FixedSizeListIterator(List<T> array)
+class FixedSizeListIterator<T> extends _VariableSizeListIterator<T> {
+ FixedSizeListIterator(List<T> array)
: super(array),
_length = array.length;

Powered by Google App Engine
This is Rietveld 408576698