| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 | 753 |
| 754 @DocsEditable | 754 @DocsEditable |
| 755 @DomName('CDATASection') | 755 @DomName('CDATASection') |
| 756 class CDataSection extends Text native "CDATASection" { | 756 class CDataSection extends Text native "CDATASection" { |
| 757 } | 757 } |
| 758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 759 // for details. All rights reserved. Use of this source code is governed by a | 759 // for details. All rights reserved. Use of this source code is governed by a |
| 760 // BSD-style license that can be found in the LICENSE file. | 760 // BSD-style license that can be found in the LICENSE file. |
| 761 | 761 |
| 762 | 762 |
| 763 @DocsEditable | |
| 764 @DomName('Canvas2DContextAttributes') | |
| 765 class Canvas2DContextAttributes native "Canvas2DContextAttributes" { | |
| 766 | |
| 767 @DomName('Canvas2DContextAttributes.alpha') | |
| 768 @DocsEditable | |
| 769 bool alpha; | |
| 770 } | |
| 771 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 772 // for details. All rights reserved. Use of this source code is governed by a | |
| 773 // BSD-style license that can be found in the LICENSE file. | |
| 774 | |
| 775 | |
| 776 @DomName('HTMLCanvasElement') | 763 @DomName('HTMLCanvasElement') |
| 777 class CanvasElement extends Element implements CanvasImageSource native "HTMLCan
vasElement" { | 764 class CanvasElement extends Element implements CanvasImageSource native "HTMLCan
vasElement" { |
| 778 | 765 |
| 779 @DomName('HTMLCanvasElement.HTMLCanvasElement') | 766 @DomName('HTMLCanvasElement.HTMLCanvasElement') |
| 780 @DocsEditable | 767 @DocsEditable |
| 781 factory CanvasElement({int width, int height}) { | 768 factory CanvasElement({int width, int height}) { |
| 782 var e = document.$dom_createElement("canvas"); | 769 var e = document.$dom_createElement("canvas"); |
| 783 if (width != null) e.width = width; | 770 if (width != null) e.width = width; |
| 784 if (height != null) e.height = height; | 771 if (height != null) e.height = height; |
| 785 return e; | 772 return e; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 */ | 959 */ |
| 973 @DomName('CanvasPattern') | 960 @DomName('CanvasPattern') |
| 974 class CanvasPattern native "CanvasPattern" { | 961 class CanvasPattern native "CanvasPattern" { |
| 975 } | 962 } |
| 976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 963 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 977 // for details. All rights reserved. Use of this source code is governed by a | 964 // for details. All rights reserved. Use of this source code is governed by a |
| 978 // BSD-style license that can be found in the LICENSE file. | 965 // BSD-style license that can be found in the LICENSE file. |
| 979 | 966 |
| 980 | 967 |
| 981 @DocsEditable | 968 @DocsEditable |
| 969 @DomName('CanvasProxy') |
| 970 class CanvasProxy native "CanvasProxy" { |
| 971 } |
| 972 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 973 // for details. All rights reserved. Use of this source code is governed by a |
| 974 // BSD-style license that can be found in the LICENSE file. |
| 975 |
| 976 |
| 977 @DocsEditable |
| 982 /** | 978 /** |
| 983 * A rendering context for a canvas element. | 979 * A rendering context for a canvas element. |
| 984 * | 980 * |
| 985 * This context is extended by [CanvasRenderingContext2D] and | 981 * This context is extended by [CanvasRenderingContext2D] and |
| 986 * [WebGLRenderingContext]. | 982 * [WebGLRenderingContext]. |
| 987 */ | 983 */ |
| 988 @DomName('CanvasRenderingContext') | 984 @DomName('CanvasRenderingContext') |
| 989 class CanvasRenderingContext native "CanvasRenderingContext" { | 985 class CanvasRenderingContext native "CanvasRenderingContext" { |
| 990 | 986 |
| 991 /// Reference to the canvas element to which this context belongs. | 987 /// Reference to the canvas element to which this context belongs. |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 void fill([String winding]) native; | 1152 void fill([String winding]) native; |
| 1157 | 1153 |
| 1158 @DomName('CanvasRenderingContext2D.fillRect') | 1154 @DomName('CanvasRenderingContext2D.fillRect') |
| 1159 @DocsEditable | 1155 @DocsEditable |
| 1160 void fillRect(num x, num y, num width, num height) native; | 1156 void fillRect(num x, num y, num width, num height) native; |
| 1161 | 1157 |
| 1162 @DomName('CanvasRenderingContext2D.fillText') | 1158 @DomName('CanvasRenderingContext2D.fillText') |
| 1163 @DocsEditable | 1159 @DocsEditable |
| 1164 void fillText(String text, num x, num y, [num maxWidth]) native; | 1160 void fillText(String text, num x, num y, [num maxWidth]) native; |
| 1165 | 1161 |
| 1166 @DomName('CanvasRenderingContext2D.getContextAttributes') | |
| 1167 @DocsEditable | |
| 1168 Canvas2DContextAttributes getContextAttributes() native; | |
| 1169 | |
| 1170 @DomName('CanvasRenderingContext2D.getImageData') | 1162 @DomName('CanvasRenderingContext2D.getImageData') |
| 1171 @DocsEditable | 1163 @DocsEditable |
| 1172 @Creates('ImageData|=Object') | 1164 @Creates('ImageData|=Object') |
| 1173 ImageData getImageData(num sx, num sy, num sw, num sh) { | 1165 ImageData getImageData(num sx, num sy, num sw, num sh) { |
| 1174 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); | 1166 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); |
| 1175 } | 1167 } |
| 1176 @JSName('getImageData') | 1168 @JSName('getImageData') |
| 1177 @DomName('CanvasRenderingContext2D.getImageData') | 1169 @DomName('CanvasRenderingContext2D.getImageData') |
| 1178 @DocsEditable | 1170 @DocsEditable |
| 1179 @Creates('ImageData|=Object') | 1171 @Creates('ImageData|=Object') |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1600 } | 1592 } |
| 1601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1602 // for details. All rights reserved. Use of this source code is governed by a | 1594 // for details. All rights reserved. Use of this source code is governed by a |
| 1603 // BSD-style license that can be found in the LICENSE file. | 1595 // BSD-style license that can be found in the LICENSE file. |
| 1604 | 1596 |
| 1605 | 1597 |
| 1606 @DocsEditable | 1598 @DocsEditable |
| 1607 @DomName('Comment') | 1599 @DomName('Comment') |
| 1608 class Comment extends CharacterData native "Comment" { | 1600 class Comment extends CharacterData native "Comment" { |
| 1609 } | 1601 } |
| 1610 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 1611 // for details. All rights reserved. Use of this source code is governed by a | |
| 1612 // BSD-style license that can be found in the LICENSE file. | |
| 1613 | |
| 1614 | |
| 1615 @DocsEditable | |
| 1616 @DomName('Composition') | |
| 1617 class Composition native "Composition" { | |
| 1618 | |
| 1619 @DomName('Composition.caret') | |
| 1620 @DocsEditable | |
| 1621 final Range caret; | |
| 1622 | |
| 1623 @DomName('Composition.text') | |
| 1624 @DocsEditable | |
| 1625 final Node text; | |
| 1626 } | |
| 1627 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1602 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 1628 // for details. All rights reserved. Use of this source code is governed by a | 1603 // for details. All rights reserved. Use of this source code is governed by a |
| 1629 // BSD-style license that can be found in the LICENSE file. | 1604 // BSD-style license that can be found in the LICENSE file. |
| 1630 | 1605 |
| 1631 // WARNING: Do not edit - generated code. | 1606 // WARNING: Do not edit - generated code. |
| 1632 | 1607 |
| 1633 | 1608 |
| 1634 @DomName('CompositionEvent') | 1609 @DomName('CompositionEvent') |
| 1635 class CompositionEvent extends UIEvent native "CompositionEvent" { | 1610 class CompositionEvent extends UIEvent native "CompositionEvent" { |
| 1636 factory CompositionEvent(String type, | 1611 factory CompositionEvent(String type, |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1848 @Creates('TypedData') | 1823 @Creates('TypedData') |
| 1849 @Returns('TypedData|Null') | 1824 @Returns('TypedData|Null') |
| 1850 TypedData getRandomValues(TypedData array) native; | 1825 TypedData getRandomValues(TypedData array) native; |
| 1851 } | 1826 } |
| 1852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1853 // for details. All rights reserved. Use of this source code is governed by a | 1828 // for details. All rights reserved. Use of this source code is governed by a |
| 1854 // BSD-style license that can be found in the LICENSE file. | 1829 // BSD-style license that can be found in the LICENSE file. |
| 1855 | 1830 |
| 1856 | 1831 |
| 1857 @DocsEditable | 1832 @DocsEditable |
| 1858 @DomName('CSS') | |
| 1859 class Css native "CSS" { | |
| 1860 | |
| 1861 @DomName('CSS.supports') | |
| 1862 @DocsEditable | |
| 1863 bool supports(String conditionText_OR_property, [String value]) native; | |
| 1864 } | |
| 1865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 1866 // for details. All rights reserved. Use of this source code is governed by a | |
| 1867 // BSD-style license that can be found in the LICENSE file. | |
| 1868 | |
| 1869 | |
| 1870 @DocsEditable | |
| 1871 @DomName('CSSCharsetRule') | 1833 @DomName('CSSCharsetRule') |
| 1872 class CssCharsetRule extends CssRule native "CSSCharsetRule" { | 1834 class CssCharsetRule extends CssRule native "CSSCharsetRule" { |
| 1873 | 1835 |
| 1874 @DomName('CSSCharsetRule.encoding') | 1836 @DomName('CSSCharsetRule.encoding') |
| 1875 @DocsEditable | 1837 @DocsEditable |
| 1876 String encoding; | 1838 String encoding; |
| 1877 } | 1839 } |
| 1878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1879 // for details. All rights reserved. Use of this source code is governed by a | 1841 // for details. All rights reserved. Use of this source code is governed by a |
| 1880 // BSD-style license that can be found in the LICENSE file. | 1842 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2113 static const int MEDIA_RULE = 4; | 2075 static const int MEDIA_RULE = 4; |
| 2114 | 2076 |
| 2115 @DomName('CSSRule.PAGE_RULE') | 2077 @DomName('CSSRule.PAGE_RULE') |
| 2116 @DocsEditable | 2078 @DocsEditable |
| 2117 static const int PAGE_RULE = 6; | 2079 static const int PAGE_RULE = 6; |
| 2118 | 2080 |
| 2119 @DomName('CSSRule.STYLE_RULE') | 2081 @DomName('CSSRule.STYLE_RULE') |
| 2120 @DocsEditable | 2082 @DocsEditable |
| 2121 static const int STYLE_RULE = 1; | 2083 static const int STYLE_RULE = 1; |
| 2122 | 2084 |
| 2123 @DomName('CSSRule.SUPPORTS_RULE') | |
| 2124 @DocsEditable | |
| 2125 static const int SUPPORTS_RULE = 12; | |
| 2126 | |
| 2127 @DomName('CSSRule.UNKNOWN_RULE') | 2085 @DomName('CSSRule.UNKNOWN_RULE') |
| 2128 @DocsEditable | 2086 @DocsEditable |
| 2129 static const int UNKNOWN_RULE = 0; | 2087 static const int UNKNOWN_RULE = 0; |
| 2130 | 2088 |
| 2131 @DomName('CSSRule.WEBKIT_FILTER_RULE') | 2089 @DomName('CSSRule.WEBKIT_FILTER_RULE') |
| 2132 @DocsEditable | 2090 @DocsEditable |
| 2133 static const int WEBKIT_FILTER_RULE = 17; | 2091 static const int WEBKIT_FILTER_RULE = 17; |
| 2134 | 2092 |
| 2135 @DomName('CSSRule.WEBKIT_KEYFRAMES_RULE') | 2093 @DomName('CSSRule.WEBKIT_KEYFRAMES_RULE') |
| 2136 @DocsEditable | 2094 @DocsEditable |
| (...skipping 3320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5457 @DomName('CSSStyleSheet.removeRule') | 5415 @DomName('CSSStyleSheet.removeRule') |
| 5458 @DocsEditable | 5416 @DocsEditable |
| 5459 void removeRule(int index) native; | 5417 void removeRule(int index) native; |
| 5460 } | 5418 } |
| 5461 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5462 // for details. All rights reserved. Use of this source code is governed by a | 5420 // for details. All rights reserved. Use of this source code is governed by a |
| 5463 // BSD-style license that can be found in the LICENSE file. | 5421 // BSD-style license that can be found in the LICENSE file. |
| 5464 | 5422 |
| 5465 | 5423 |
| 5466 @DocsEditable | 5424 @DocsEditable |
| 5467 @DomName('CSSSupportsRule') | |
| 5468 class CssSupportsRule extends CssRule native "CSSSupportsRule" { | |
| 5469 | |
| 5470 @DomName('CSSSupportsRule.conditionText') | |
| 5471 @DocsEditable | |
| 5472 final String conditionText; | |
| 5473 | |
| 5474 @DomName('CSSSupportsRule.cssRules') | |
| 5475 @DocsEditable | |
| 5476 @Returns('_CssRuleList') | |
| 5477 @Creates('_CssRuleList') | |
| 5478 final List<CssRule> cssRules; | |
| 5479 | |
| 5480 @DomName('CSSSupportsRule.deleteRule') | |
| 5481 @DocsEditable | |
| 5482 void deleteRule(int index) native; | |
| 5483 | |
| 5484 @DomName('CSSSupportsRule.insertRule') | |
| 5485 @DocsEditable | |
| 5486 int insertRule(String rule, int index) native; | |
| 5487 } | |
| 5488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 5489 // for details. All rights reserved. Use of this source code is governed by a | |
| 5490 // BSD-style license that can be found in the LICENSE file. | |
| 5491 | |
| 5492 | |
| 5493 @DocsEditable | |
| 5494 @DomName('CSSUnknownRule') | 5425 @DomName('CSSUnknownRule') |
| 5495 class CssUnknownRule extends CssRule native "CSSUnknownRule" { | 5426 class CssUnknownRule extends CssRule native "CSSUnknownRule" { |
| 5496 } | 5427 } |
| 5497 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5498 // for details. All rights reserved. Use of this source code is governed by a | 5429 // for details. All rights reserved. Use of this source code is governed by a |
| 5499 // BSD-style license that can be found in the LICENSE file. | 5430 // BSD-style license that can be found in the LICENSE file. |
| 5500 | 5431 |
| 5501 | 5432 |
| 5502 @DocsEditable | 5433 @DocsEditable |
| 5503 @DomName('CustomElementConstructor') | 5434 @DomName('CustomElementConstructor') |
| (...skipping 7053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12557 */ | 12488 */ |
| 12558 abstract class ButtonInputElement implements InputElementBase { | 12489 abstract class ButtonInputElement implements InputElementBase { |
| 12559 factory ButtonInputElement() => new InputElement(type: 'button'); | 12490 factory ButtonInputElement() => new InputElement(type: 'button'); |
| 12560 } | 12491 } |
| 12561 | 12492 |
| 12562 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12493 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12563 // for details. All rights reserved. Use of this source code is governed by a | 12494 // for details. All rights reserved. Use of this source code is governed by a |
| 12564 // BSD-style license that can be found in the LICENSE file. | 12495 // BSD-style license that can be found in the LICENSE file. |
| 12565 | 12496 |
| 12566 | 12497 |
| 12567 @DocsEditable | |
| 12568 @DomName('InputMethodContext') | |
| 12569 class InputMethodContext native "InputMethodContext" { | |
| 12570 | |
| 12571 @DomName('InputMethodContext.composition') | |
| 12572 @DocsEditable | |
| 12573 final Composition composition; | |
| 12574 | |
| 12575 @DomName('InputMethodContext.enabled') | |
| 12576 @DocsEditable | |
| 12577 bool enabled; | |
| 12578 | |
| 12579 @DomName('InputMethodContext.locale') | |
| 12580 @DocsEditable | |
| 12581 final String locale; | |
| 12582 | |
| 12583 @DomName('InputMethodContext.confirmComposition') | |
| 12584 @DocsEditable | |
| 12585 void confirmComposition() native; | |
| 12586 | |
| 12587 @DomName('InputMethodContext.open') | |
| 12588 @DocsEditable | |
| 12589 bool open() native; | |
| 12590 | |
| 12591 @DomName('InputMethodContext.setCaretRectangle') | |
| 12592 @DocsEditable | |
| 12593 void setCaretRectangle(Node anchor, int x, int y, int w, int h) native; | |
| 12594 | |
| 12595 @DomName('InputMethodContext.setExclusionRectangle') | |
| 12596 @DocsEditable | |
| 12597 void setExclusionRectangle(Node anchor, int x, int y, int w, int h) native; | |
| 12598 } | |
| 12599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12600 // for details. All rights reserved. Use of this source code is governed by a | |
| 12601 // BSD-style license that can be found in the LICENSE file. | |
| 12602 | |
| 12603 | |
| 12604 @DomName('KeyboardEvent') | 12498 @DomName('KeyboardEvent') |
| 12605 class KeyboardEvent extends UIEvent native "KeyboardEvent" { | 12499 class KeyboardEvent extends UIEvent native "KeyboardEvent" { |
| 12606 | 12500 |
| 12607 factory KeyboardEvent(String type, | 12501 factory KeyboardEvent(String type, |
| 12608 {Window view, bool canBubble: true, bool cancelable: true, | 12502 {Window view, bool canBubble: true, bool cancelable: true, |
| 12609 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, | 12503 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, |
| 12610 bool altKey: false, bool shiftKey: false, bool metaKey: false, | 12504 bool altKey: false, bool shiftKey: false, bool metaKey: false, |
| 12611 bool altGraphKey: false}) { | 12505 bool altGraphKey: false}) { |
| 12612 if (view == null) { | 12506 if (view == null) { |
| 12613 view = window; | 12507 view = window; |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12848 final StyleSheet sheet; | 12742 final StyleSheet sheet; |
| 12849 | 12743 |
| 12850 @DomName('HTMLLinkElement.sizes') | 12744 @DomName('HTMLLinkElement.sizes') |
| 12851 @DocsEditable | 12745 @DocsEditable |
| 12852 DomSettableTokenList sizes; | 12746 DomSettableTokenList sizes; |
| 12853 | 12747 |
| 12854 @DomName('HTMLLinkElement.type') | 12748 @DomName('HTMLLinkElement.type') |
| 12855 @DocsEditable | 12749 @DocsEditable |
| 12856 String type; | 12750 String type; |
| 12857 } | 12751 } |
| 12752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12753 // for details. All rights reserved. Use of this source code is governed by a |
| 12754 // BSD-style license that can be found in the LICENSE file. |
| 12755 |
| 12756 |
| 12757 @DocsEditable |
| 12758 @DomName('LocalMediaStream') |
| 12759 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12760 @Experimental |
| 12761 class LocalMediaStream extends MediaStream implements EventTarget native "LocalM
ediaStream" { |
| 12762 |
| 12763 @DomName('LocalMediaStream.stop') |
| 12764 @DocsEditable |
| 12765 void stop() native; |
| 12766 } |
| 12858 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 12767 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 12859 // for details. All rights reserved. Use of this source code is governed by a | 12768 // for details. All rights reserved. Use of this source code is governed by a |
| 12860 // BSD-style license that can be found in the LICENSE file. | 12769 // BSD-style license that can be found in the LICENSE file. |
| 12861 | 12770 |
| 12862 | 12771 |
| 12863 @DocsEditable | 12772 @DocsEditable |
| 12864 @DomName('Location') | 12773 @DomName('Location') |
| 12865 class Location implements LocationBase native "Location" { | 12774 class Location implements LocationBase native "Location" { |
| 12866 | 12775 |
| 12867 @DomName('Location.ancestorOrigins') | 12776 @DomName('Location.ancestorOrigins') |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12928 if (JS('bool', '("origin" in #)', this)) { | 12837 if (JS('bool', '("origin" in #)', this)) { |
| 12929 return JS('String', '#.origin', this); | 12838 return JS('String', '#.origin', this); |
| 12930 } | 12839 } |
| 12931 return '${this.protocol}//${this.host}'; | 12840 return '${this.protocol}//${this.host}'; |
| 12932 } | 12841 } |
| 12933 } | 12842 } |
| 12934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12935 // for details. All rights reserved. Use of this source code is governed by a | 12844 // for details. All rights reserved. Use of this source code is governed by a |
| 12936 // BSD-style license that can be found in the LICENSE file. | 12845 // BSD-style license that can be found in the LICENSE file. |
| 12937 | 12846 |
| 12938 // WARNING: Do not edit - generated code. | |
| 12939 | |
| 12940 | |
| 12941 typedef void MidiErrorCallback(DomError error); | |
| 12942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12943 // for details. All rights reserved. Use of this source code is governed by a | |
| 12944 // BSD-style license that can be found in the LICENSE file. | |
| 12945 | |
| 12946 | 12847 |
| 12947 @DocsEditable | 12848 @DocsEditable |
| 12948 @DomName('HTMLMapElement') | 12849 @DomName('HTMLMapElement') |
| 12949 class MapElement extends Element native "HTMLMapElement" { | 12850 class MapElement extends Element native "HTMLMapElement" { |
| 12950 | 12851 |
| 12951 @DomName('HTMLMapElement.HTMLMapElement') | 12852 @DomName('HTMLMapElement.HTMLMapElement') |
| 12952 @DocsEditable | 12853 @DocsEditable |
| 12953 factory MapElement() => document.$dom_createElement("map"); | 12854 factory MapElement() => document.$dom_createElement("map"); |
| 12954 | 12855 |
| 12955 @DomName('HTMLMapElement.areas') | 12856 @DomName('HTMLMapElement.areas') |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13808 | 13709 |
| 13809 @JSName('removeEventListener') | 13710 @JSName('removeEventListener') |
| 13810 @DomName('MediaStream.removeEventListener') | 13711 @DomName('MediaStream.removeEventListener') |
| 13811 @DocsEditable | 13712 @DocsEditable |
| 13812 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 13713 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 13813 | 13714 |
| 13814 @DomName('MediaStream.removeTrack') | 13715 @DomName('MediaStream.removeTrack') |
| 13815 @DocsEditable | 13716 @DocsEditable |
| 13816 void removeTrack(MediaStreamTrack track) native; | 13717 void removeTrack(MediaStreamTrack track) native; |
| 13817 | 13718 |
| 13818 @DomName('MediaStream.stop') | |
| 13819 @DocsEditable | |
| 13820 void stop() native; | |
| 13821 | |
| 13822 @DomName('MediaStream.onaddtrack') | 13719 @DomName('MediaStream.onaddtrack') |
| 13823 @DocsEditable | 13720 @DocsEditable |
| 13824 Stream<Event> get onAddTrack => addTrackEvent.forTarget(this); | 13721 Stream<Event> get onAddTrack => addTrackEvent.forTarget(this); |
| 13825 | 13722 |
| 13826 @DomName('MediaStream.onended') | 13723 @DomName('MediaStream.onended') |
| 13827 @DocsEditable | 13724 @DocsEditable |
| 13828 Stream<Event> get onEnded => endedEvent.forTarget(this); | 13725 Stream<Event> get onEnded => endedEvent.forTarget(this); |
| 13829 | 13726 |
| 13830 @DomName('MediaStream.onremovetrack') | 13727 @DomName('MediaStream.onremovetrack') |
| 13831 @DocsEditable | 13728 @DocsEditable |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14233 @DomName('HTMLMeterElement.value') | 14130 @DomName('HTMLMeterElement.value') |
| 14234 @DocsEditable | 14131 @DocsEditable |
| 14235 num value; | 14132 num value; |
| 14236 } | 14133 } |
| 14237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14134 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14238 // for details. All rights reserved. Use of this source code is governed by a | 14135 // for details. All rights reserved. Use of this source code is governed by a |
| 14239 // BSD-style license that can be found in the LICENSE file. | 14136 // BSD-style license that can be found in the LICENSE file. |
| 14240 | 14137 |
| 14241 | 14138 |
| 14242 @DocsEditable | 14139 @DocsEditable |
| 14243 @DomName('MIDIConnectionEvent') | |
| 14244 class MidiConnectionEvent extends Event native "MIDIConnectionEvent" { | |
| 14245 | |
| 14246 @DomName('MIDIConnectionEvent.port') | |
| 14247 @DocsEditable | |
| 14248 final MidiPort port; | |
| 14249 } | |
| 14250 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14251 // for details. All rights reserved. Use of this source code is governed by a | |
| 14252 // BSD-style license that can be found in the LICENSE file. | |
| 14253 | |
| 14254 | |
| 14255 @DocsEditable | |
| 14256 @DomName('MIDIMessageEvent') | |
| 14257 class MidiMessageEvent extends Event native "MIDIMessageEvent" { | |
| 14258 | |
| 14259 @DomName('MIDIMessageEvent.data') | |
| 14260 @DocsEditable | |
| 14261 final Uint8List data; | |
| 14262 | |
| 14263 @DomName('MIDIMessageEvent.receivedTime') | |
| 14264 @DocsEditable | |
| 14265 final num receivedTime; | |
| 14266 } | |
| 14267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14268 // for details. All rights reserved. Use of this source code is governed by a | |
| 14269 // BSD-style license that can be found in the LICENSE file. | |
| 14270 | |
| 14271 | |
| 14272 @DocsEditable | |
| 14273 @DomName('MIDIPort') | |
| 14274 class MidiPort extends EventTarget native "MIDIPort" { | |
| 14275 | |
| 14276 @DomName('MIDIPort.id') | |
| 14277 @DocsEditable | |
| 14278 final String id; | |
| 14279 | |
| 14280 @DomName('MIDIPort.manufacturer') | |
| 14281 @DocsEditable | |
| 14282 final String manufacturer; | |
| 14283 | |
| 14284 @DomName('MIDIPort.name') | |
| 14285 @DocsEditable | |
| 14286 final String name; | |
| 14287 | |
| 14288 @DomName('MIDIPort.type') | |
| 14289 @DocsEditable | |
| 14290 final String type; | |
| 14291 | |
| 14292 @DomName('MIDIPort.version') | |
| 14293 @DocsEditable | |
| 14294 final String version; | |
| 14295 | |
| 14296 @JSName('addEventListener') | |
| 14297 @DomName('MIDIPort.addEventListener') | |
| 14298 @DocsEditable | |
| 14299 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | |
| 14300 | |
| 14301 @DomName('MIDIPort.dispatchEvent') | |
| 14302 @DocsEditable | |
| 14303 bool dispatchEvent(Event event) native; | |
| 14304 | |
| 14305 @JSName('removeEventListener') | |
| 14306 @DomName('MIDIPort.removeEventListener') | |
| 14307 @DocsEditable | |
| 14308 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | |
| 14309 } | |
| 14310 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14311 // for details. All rights reserved. Use of this source code is governed by a | |
| 14312 // BSD-style license that can be found in the LICENSE file. | |
| 14313 | |
| 14314 | |
| 14315 @DocsEditable | |
| 14316 @DomName('MimeType') | 14140 @DomName('MimeType') |
| 14317 class MimeType native "MimeType" { | 14141 class MimeType native "MimeType" { |
| 14318 | 14142 |
| 14319 @DomName('MimeType.description') | 14143 @DomName('MimeType.description') |
| 14320 @DocsEditable | 14144 @DocsEditable |
| 14321 final String description; | 14145 final String description; |
| 14322 | 14146 |
| 14323 @DomName('MimeType.enabledPlugin') | 14147 @DomName('MimeType.enabledPlugin') |
| 14324 @DocsEditable | 14148 @DocsEditable |
| 14325 final Plugin enabledPlugin; | 14149 final Plugin enabledPlugin; |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14899 * | 14723 * |
| 14900 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { | 14724 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { |
| 14901 * var video = new VideoElement() | 14725 * var video = new VideoElement() |
| 14902 * ..autoplay = true | 14726 * ..autoplay = true |
| 14903 * ..src = Url.createObjectUrl(stream); | 14727 * ..src = Url.createObjectUrl(stream); |
| 14904 * document.body.append(video); | 14728 * document.body.append(video); |
| 14905 * }); | 14729 * }); |
| 14906 * | 14730 * |
| 14907 * The user can also pass in Maps to the audio or video parameters to specify | 14731 * The user can also pass in Maps to the audio or video parameters to specify |
| 14908 * mandatory and optional constraints for the media stream. Not passing in a | 14732 * mandatory and optional constraints for the media stream. Not passing in a |
| 14909 * map, but passing in `true` will provide a MediaStream with audio or | 14733 * map, but passing in `true` will provide a LocalMediaStream with audio or |
| 14910 * video capabilities, but without any additional constraints. The particular | 14734 * video capabilities, but without any additional constraints. The particular |
| 14911 * constraint names for audio and video are still in flux, but as of this | 14735 * constraint names for audio and video are still in flux, but as of this |
| 14912 * writing, here is an example providing more constraints. | 14736 * writing, here is an example providing more constraints. |
| 14913 * | 14737 * |
| 14914 * window.navigator.getUserMedia( | 14738 * window.navigator.getUserMedia( |
| 14915 * audio: true, | 14739 * audio: true, |
| 14916 * video: {'mandatory': | 14740 * video: {'mandatory': |
| 14917 * { 'minAspectRatio': 1.333, 'maxAspectRatio': 1.334 }, | 14741 * { 'minAspectRatio': 1.333, 'maxAspectRatio': 1.334 }, |
| 14918 * 'optional': | 14742 * 'optional': |
| 14919 * [{ 'minFrameRate': 60 }, | 14743 * [{ 'minFrameRate': 60 }, |
| 14920 * { 'maxWidth': 640 }] | 14744 * { 'maxWidth': 640 }] |
| 14921 * }); | 14745 * }); |
| 14922 * | 14746 * |
| 14923 * See also: | 14747 * See also: |
| 14924 * * [MediaStream.supported] | 14748 * * [MediaStream.supported] |
| 14925 */ | 14749 */ |
| 14926 @DomName('Navigator.webkitGetUserMedia') | 14750 @DomName('Navigator.webkitGetUserMedia') |
| 14927 @SupportedBrowser(SupportedBrowser.CHROME) | 14751 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14928 @Experimental | 14752 @Experimental |
| 14929 Future<MediaStream> getUserMedia({audio: false, video: false}) { | 14753 Future<LocalMediaStream> getUserMedia({audio: false, video: false}) { |
| 14930 var completer = new Completer<MediaStream>(); | 14754 var completer = new Completer<LocalMediaStream>(); |
| 14931 var options = { | 14755 var options = { |
| 14932 'audio': audio, | 14756 'audio': audio, |
| 14933 'video': video | 14757 'video': video |
| 14934 }; | 14758 }; |
| 14935 _ensureGetUserMedia(); | 14759 _ensureGetUserMedia(); |
| 14936 this._getUserMedia(convertDartToNative_SerializedScriptValue(options), | 14760 this._getUserMedia(convertDartToNative_SerializedScriptValue(options), |
| 14937 (stream) { | 14761 (stream) { |
| 14938 completer.complete(stream); | 14762 completer.complete(stream); |
| 14939 }, | 14763 }, |
| 14940 (error) { | 14764 (error) { |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15080 | 14904 |
| 15081 | 14905 |
| 15082 typedef void _NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); | 14906 typedef void _NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); |
| 15083 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14907 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15084 // for details. All rights reserved. Use of this source code is governed by a | 14908 // for details. All rights reserved. Use of this source code is governed by a |
| 15085 // BSD-style license that can be found in the LICENSE file. | 14909 // BSD-style license that can be found in the LICENSE file. |
| 15086 | 14910 |
| 15087 // WARNING: Do not edit - generated code. | 14911 // WARNING: Do not edit - generated code. |
| 15088 | 14912 |
| 15089 | 14913 |
| 15090 typedef void _NavigatorUserMediaSuccessCallback(MediaStream stream); | 14914 typedef void _NavigatorUserMediaSuccessCallback(LocalMediaStream stream); |
| 15091 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15092 // for details. All rights reserved. Use of this source code is governed by a | 14916 // for details. All rights reserved. Use of this source code is governed by a |
| 15093 // BSD-style license that can be found in the LICENSE file. | 14917 // BSD-style license that can be found in the LICENSE file. |
| 15094 | 14918 |
| 15095 | 14919 |
| 15096 /** | 14920 /** |
| 15097 * Lazy implementation of the child nodes of an element that does not request | 14921 * Lazy implementation of the child nodes of an element that does not request |
| 15098 * the actual child nodes of an element until strictly necessary greatly | 14922 * the actual child nodes of an element until strictly necessary greatly |
| 15099 * improving performance for the typical cases where it is not required. | 14923 * improving performance for the typical cases where it is not required. |
| 15100 */ | 14924 */ |
| (...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16295 final MemoryInfo memory; | 16119 final MemoryInfo memory; |
| 16296 | 16120 |
| 16297 @DomName('Performance.navigation') | 16121 @DomName('Performance.navigation') |
| 16298 @DocsEditable | 16122 @DocsEditable |
| 16299 final PerformanceNavigation navigation; | 16123 final PerformanceNavigation navigation; |
| 16300 | 16124 |
| 16301 @DomName('Performance.timing') | 16125 @DomName('Performance.timing') |
| 16302 @DocsEditable | 16126 @DocsEditable |
| 16303 final PerformanceTiming timing; | 16127 final PerformanceTiming timing; |
| 16304 | 16128 |
| 16305 @DomName('Performance.clearMarks') | |
| 16306 @DocsEditable | |
| 16307 void clearMarks(String markName) native; | |
| 16308 | |
| 16309 @DomName('Performance.clearMeasures') | |
| 16310 @DocsEditable | |
| 16311 void clearMeasures(String measureName) native; | |
| 16312 | |
| 16313 @DomName('Performance.getEntries') | |
| 16314 @DocsEditable | |
| 16315 List<PerformanceEntry> getEntries() native; | |
| 16316 | |
| 16317 @DomName('Performance.getEntriesByName') | |
| 16318 @DocsEditable | |
| 16319 List<PerformanceEntry> getEntriesByName(String name, String entryType) native; | |
| 16320 | |
| 16321 @DomName('Performance.getEntriesByType') | |
| 16322 @DocsEditable | |
| 16323 List<PerformanceEntry> getEntriesByType(String entryType) native; | |
| 16324 | |
| 16325 @DomName('Performance.mark') | |
| 16326 @DocsEditable | |
| 16327 void mark(String markName) native; | |
| 16328 | |
| 16329 @DomName('Performance.measure') | |
| 16330 @DocsEditable | |
| 16331 void measure(String measureName, String startMark, String endMark) native; | |
| 16332 | |
| 16333 @DomName('Performance.now') | 16129 @DomName('Performance.now') |
| 16334 @DocsEditable | 16130 @DocsEditable |
| 16335 num now() native; | 16131 num now() native; |
| 16336 | 16132 |
| 16133 @JSName('webkitClearMarks') |
| 16134 @DomName('Performance.webkitClearMarks') |
| 16135 @DocsEditable |
| 16136 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16137 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16138 @Experimental |
| 16139 void clearMarks(String markName) native; |
| 16140 |
| 16141 @JSName('webkitClearMeasures') |
| 16142 @DomName('Performance.webkitClearMeasures') |
| 16143 @DocsEditable |
| 16144 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16145 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16146 @Experimental |
| 16147 void clearMeasures(String measureName) native; |
| 16148 |
| 16337 @JSName('webkitClearResourceTimings') | 16149 @JSName('webkitClearResourceTimings') |
| 16338 @DomName('Performance.webkitClearResourceTimings') | 16150 @DomName('Performance.webkitClearResourceTimings') |
| 16339 @DocsEditable | 16151 @DocsEditable |
| 16340 @SupportedBrowser(SupportedBrowser.CHROME) | 16152 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16341 @SupportedBrowser(SupportedBrowser.SAFARI) | 16153 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16342 @Experimental | 16154 @Experimental |
| 16343 void clearResourceTimings() native; | 16155 void clearResourceTimings() native; |
| 16344 | 16156 |
| 16157 @JSName('webkitGetEntries') |
| 16158 @DomName('Performance.webkitGetEntries') |
| 16159 @DocsEditable |
| 16160 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16161 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16162 @Experimental |
| 16163 List<PerformanceEntry> getEntries() native; |
| 16164 |
| 16165 @JSName('webkitGetEntriesByName') |
| 16166 @DomName('Performance.webkitGetEntriesByName') |
| 16167 @DocsEditable |
| 16168 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16169 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16170 @Experimental |
| 16171 List<PerformanceEntry> getEntriesByName(String name, String entryType) native; |
| 16172 |
| 16173 @JSName('webkitGetEntriesByType') |
| 16174 @DomName('Performance.webkitGetEntriesByType') |
| 16175 @DocsEditable |
| 16176 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16177 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16178 @Experimental |
| 16179 List<PerformanceEntry> getEntriesByType(String entryType) native; |
| 16180 |
| 16181 @JSName('webkitMark') |
| 16182 @DomName('Performance.webkitMark') |
| 16183 @DocsEditable |
| 16184 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16185 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16186 @Experimental |
| 16187 void mark(String markName) native; |
| 16188 |
| 16189 @JSName('webkitMeasure') |
| 16190 @DomName('Performance.webkitMeasure') |
| 16191 @DocsEditable |
| 16192 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16193 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16194 @Experimental |
| 16195 void measure(String measureName, String startMark, String endMark) native; |
| 16196 |
| 16345 @JSName('webkitSetResourceTimingBufferSize') | 16197 @JSName('webkitSetResourceTimingBufferSize') |
| 16346 @DomName('Performance.webkitSetResourceTimingBufferSize') | 16198 @DomName('Performance.webkitSetResourceTimingBufferSize') |
| 16347 @DocsEditable | 16199 @DocsEditable |
| 16348 @SupportedBrowser(SupportedBrowser.CHROME) | 16200 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16349 @SupportedBrowser(SupportedBrowser.SAFARI) | 16201 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16350 @Experimental | 16202 @Experimental |
| 16351 void setResourceTimingBufferSize(int maxSize) native; | 16203 void setResourceTimingBufferSize(int maxSize) native; |
| 16352 } | 16204 } |
| 16353 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16354 // for details. All rights reserved. Use of this source code is governed by a | 16206 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 19 matching lines...) Expand all Loading... |
| 16374 @DomName('PerformanceEntry.startTime') | 16226 @DomName('PerformanceEntry.startTime') |
| 16375 @DocsEditable | 16227 @DocsEditable |
| 16376 final num startTime; | 16228 final num startTime; |
| 16377 } | 16229 } |
| 16378 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16379 // for details. All rights reserved. Use of this source code is governed by a | 16231 // for details. All rights reserved. Use of this source code is governed by a |
| 16380 // BSD-style license that can be found in the LICENSE file. | 16232 // BSD-style license that can be found in the LICENSE file. |
| 16381 | 16233 |
| 16382 | 16234 |
| 16383 @DocsEditable | 16235 @DocsEditable |
| 16236 @DomName('PerformanceEntryList') |
| 16237 class PerformanceEntryList native "PerformanceEntryList" { |
| 16238 |
| 16239 @DomName('PerformanceEntryList.length') |
| 16240 @DocsEditable |
| 16241 final int length; |
| 16242 |
| 16243 @DomName('PerformanceEntryList.item') |
| 16244 @DocsEditable |
| 16245 PerformanceEntry item(int index) native; |
| 16246 } |
| 16247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16248 // for details. All rights reserved. Use of this source code is governed by a |
| 16249 // BSD-style license that can be found in the LICENSE file. |
| 16250 |
| 16251 |
| 16252 @DocsEditable |
| 16384 @DomName('PerformanceMark') | 16253 @DomName('PerformanceMark') |
| 16385 class PerformanceMark extends PerformanceEntry native "PerformanceMark" { | 16254 class PerformanceMark extends PerformanceEntry native "PerformanceMark" { |
| 16386 } | 16255 } |
| 16387 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16256 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16388 // for details. All rights reserved. Use of this source code is governed by a | 16257 // for details. All rights reserved. Use of this source code is governed by a |
| 16389 // BSD-style license that can be found in the LICENSE file. | 16258 // BSD-style license that can be found in the LICENSE file. |
| 16390 | 16259 |
| 16391 | 16260 |
| 16392 @DocsEditable | 16261 @DocsEditable |
| 16393 @DomName('PerformanceMeasure') | 16262 @DomName('PerformanceMeasure') |
| (...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17954 | 17823 |
| 17955 @DocsEditable | 17824 @DocsEditable |
| 17956 @DomName('SecurityPolicyViolationEvent') | 17825 @DomName('SecurityPolicyViolationEvent') |
| 17957 class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation
Event" { | 17826 class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation
Event" { |
| 17958 | 17827 |
| 17959 @JSName('blockedURI') | 17828 @JSName('blockedURI') |
| 17960 @DomName('SecurityPolicyViolationEvent.blockedURI') | 17829 @DomName('SecurityPolicyViolationEvent.blockedURI') |
| 17961 @DocsEditable | 17830 @DocsEditable |
| 17962 final String blockedUri; | 17831 final String blockedUri; |
| 17963 | 17832 |
| 17964 @DomName('SecurityPolicyViolationEvent.columnNumber') | |
| 17965 @DocsEditable | |
| 17966 final int columnNumber; | |
| 17967 | |
| 17968 @JSName('documentURI') | 17833 @JSName('documentURI') |
| 17969 @DomName('SecurityPolicyViolationEvent.documentURI') | 17834 @DomName('SecurityPolicyViolationEvent.documentURI') |
| 17970 @DocsEditable | 17835 @DocsEditable |
| 17971 final String documentUri; | 17836 final String documentUri; |
| 17972 | 17837 |
| 17973 @DomName('SecurityPolicyViolationEvent.effectiveDirective') | 17838 @DomName('SecurityPolicyViolationEvent.effectiveDirective') |
| 17974 @DocsEditable | 17839 @DocsEditable |
| 17975 final String effectiveDirective; | 17840 final String effectiveDirective; |
| 17976 | 17841 |
| 17977 @DomName('SecurityPolicyViolationEvent.lineNumber') | 17842 @DomName('SecurityPolicyViolationEvent.lineNumber') |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18808 | 18673 |
| 18809 @DomName('SpeechRecognitionResult.item') | 18674 @DomName('SpeechRecognitionResult.item') |
| 18810 @DocsEditable | 18675 @DocsEditable |
| 18811 SpeechRecognitionAlternative item(int index) native; | 18676 SpeechRecognitionAlternative item(int index) native; |
| 18812 } | 18677 } |
| 18813 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18814 // for details. All rights reserved. Use of this source code is governed by a | 18679 // for details. All rights reserved. Use of this source code is governed by a |
| 18815 // BSD-style license that can be found in the LICENSE file. | 18680 // BSD-style license that can be found in the LICENSE file. |
| 18816 | 18681 |
| 18817 | 18682 |
| 18818 @DocsEditable | |
| 18819 @DomName('SpeechSynthesis') | |
| 18820 class SpeechSynthesis native "SpeechSynthesis" { | |
| 18821 | |
| 18822 @DomName('SpeechSynthesis.paused') | |
| 18823 @DocsEditable | |
| 18824 final bool paused; | |
| 18825 | |
| 18826 @DomName('SpeechSynthesis.pending') | |
| 18827 @DocsEditable | |
| 18828 final bool pending; | |
| 18829 | |
| 18830 @DomName('SpeechSynthesis.speaking') | |
| 18831 @DocsEditable | |
| 18832 final bool speaking; | |
| 18833 | |
| 18834 @DomName('SpeechSynthesis.cancel') | |
| 18835 @DocsEditable | |
| 18836 void cancel() native; | |
| 18837 | |
| 18838 @DomName('SpeechSynthesis.getVoices') | |
| 18839 @DocsEditable | |
| 18840 List<SpeechSynthesisVoice> getVoices() native; | |
| 18841 | |
| 18842 @DomName('SpeechSynthesis.pause') | |
| 18843 @DocsEditable | |
| 18844 void pause() native; | |
| 18845 | |
| 18846 @DomName('SpeechSynthesis.resume') | |
| 18847 @DocsEditable | |
| 18848 void resume() native; | |
| 18849 | |
| 18850 @DomName('SpeechSynthesis.speak') | |
| 18851 @DocsEditable | |
| 18852 void speak(SpeechSynthesisUtterance utterance) native; | |
| 18853 } | |
| 18854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18855 // for details. All rights reserved. Use of this source code is governed by a | |
| 18856 // BSD-style license that can be found in the LICENSE file. | |
| 18857 | |
| 18858 | |
| 18859 @DocsEditable | |
| 18860 @DomName('SpeechSynthesisEvent') | |
| 18861 class SpeechSynthesisEvent extends Event native "SpeechSynthesisEvent" { | |
| 18862 | |
| 18863 @DomName('SpeechSynthesisEvent.charIndex') | |
| 18864 @DocsEditable | |
| 18865 final int charIndex; | |
| 18866 | |
| 18867 @DomName('SpeechSynthesisEvent.elapsedTime') | |
| 18868 @DocsEditable | |
| 18869 final num elapsedTime; | |
| 18870 | |
| 18871 @DomName('SpeechSynthesisEvent.name') | |
| 18872 @DocsEditable | |
| 18873 final String name; | |
| 18874 } | |
| 18875 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18876 // for details. All rights reserved. Use of this source code is governed by a | |
| 18877 // BSD-style license that can be found in the LICENSE file. | |
| 18878 | |
| 18879 | |
| 18880 @DocsEditable | |
| 18881 @DomName('SpeechSynthesisUtterance') | |
| 18882 class SpeechSynthesisUtterance extends EventTarget native "SpeechSynthesisUttera
nce" { | |
| 18883 | |
| 18884 @DomName('SpeechSynthesisUtterance.errorEvent') | |
| 18885 @DocsEditable | |
| 18886 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | |
| 18887 | |
| 18888 @DomName('SpeechSynthesisUtterance.pauseEvent') | |
| 18889 @DocsEditable | |
| 18890 static const EventStreamProvider<Event> pauseEvent = const EventStreamProvider
<Event>('pause'); | |
| 18891 | |
| 18892 @DomName('SpeechSynthesisUtterance.SpeechSynthesisUtterance') | |
| 18893 @DocsEditable | |
| 18894 factory SpeechSynthesisUtterance([String text]) { | |
| 18895 if (?text) { | |
| 18896 return SpeechSynthesisUtterance._create_1(text); | |
| 18897 } | |
| 18898 return SpeechSynthesisUtterance._create_2(); | |
| 18899 } | |
| 18900 static SpeechSynthesisUtterance _create_1(text) => JS('SpeechSynthesisUtteranc
e', 'new SpeechSynthesisUtterance(#)', text); | |
| 18901 static SpeechSynthesisUtterance _create_2() => JS('SpeechSynthesisUtterance',
'new SpeechSynthesisUtterance()'); | |
| 18902 | |
| 18903 @DomName('SpeechSynthesisUtterance.lang') | |
| 18904 @DocsEditable | |
| 18905 String lang; | |
| 18906 | |
| 18907 @DomName('SpeechSynthesisUtterance.pitch') | |
| 18908 @DocsEditable | |
| 18909 num pitch; | |
| 18910 | |
| 18911 @DomName('SpeechSynthesisUtterance.rate') | |
| 18912 @DocsEditable | |
| 18913 num rate; | |
| 18914 | |
| 18915 @DomName('SpeechSynthesisUtterance.text') | |
| 18916 @DocsEditable | |
| 18917 String text; | |
| 18918 | |
| 18919 @DomName('SpeechSynthesisUtterance.voice') | |
| 18920 @DocsEditable | |
| 18921 SpeechSynthesisVoice voice; | |
| 18922 | |
| 18923 @DomName('SpeechSynthesisUtterance.volume') | |
| 18924 @DocsEditable | |
| 18925 num volume; | |
| 18926 | |
| 18927 @DomName('SpeechSynthesisUtterance.onerror') | |
| 18928 @DocsEditable | |
| 18929 Stream<Event> get onError => errorEvent.forTarget(this); | |
| 18930 | |
| 18931 @DomName('SpeechSynthesisUtterance.onpause') | |
| 18932 @DocsEditable | |
| 18933 Stream<Event> get onPause => pauseEvent.forTarget(this); | |
| 18934 } | |
| 18935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18936 // for details. All rights reserved. Use of this source code is governed by a | |
| 18937 // BSD-style license that can be found in the LICENSE file. | |
| 18938 | |
| 18939 | |
| 18940 @DocsEditable | |
| 18941 @DomName('SpeechSynthesisVoice') | |
| 18942 class SpeechSynthesisVoice native "SpeechSynthesisVoice" { | |
| 18943 | |
| 18944 @JSName('default') | |
| 18945 @DomName('SpeechSynthesisVoice.default') | |
| 18946 @DocsEditable | |
| 18947 final bool defaultValue; | |
| 18948 | |
| 18949 @DomName('SpeechSynthesisVoice.lang') | |
| 18950 @DocsEditable | |
| 18951 final String lang; | |
| 18952 | |
| 18953 @DomName('SpeechSynthesisVoice.localService') | |
| 18954 @DocsEditable | |
| 18955 final bool localService; | |
| 18956 | |
| 18957 @DomName('SpeechSynthesisVoice.name') | |
| 18958 @DocsEditable | |
| 18959 final String name; | |
| 18960 | |
| 18961 @JSName('voiceURI') | |
| 18962 @DomName('SpeechSynthesisVoice.voiceURI') | |
| 18963 @DocsEditable | |
| 18964 final String voiceUri; | |
| 18965 } | |
| 18966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18967 // for details. All rights reserved. Use of this source code is governed by a | |
| 18968 // BSD-style license that can be found in the LICENSE file. | |
| 18969 | |
| 18970 | |
| 18971 /** | 18683 /** |
| 18972 * The type used by the | 18684 * The type used by the |
| 18973 * [Window.localStorage] and [Window.sessionStorage] properties. | 18685 * [Window.localStorage] and [Window.sessionStorage] properties. |
| 18974 * Storage is implemented as a Map<String, String>. | 18686 * Storage is implemented as a Map<String, String>. |
| 18975 * | 18687 * |
| 18976 * To store and get values, use Dart's built-in map syntax: | 18688 * To store and get values, use Dart's built-in map syntax: |
| 18977 * | 18689 * |
| 18978 * window.localStorage['key1'] = 'val1'; | 18690 * window.localStorage['key1'] = 'val1'; |
| 18979 * window.localStorage['key2'] = 'val2'; | 18691 * window.localStorage['key2'] = 'val2'; |
| 18980 * window.localStorage['key3'] = 'val3'; | 18692 * window.localStorage['key3'] = 'val3'; |
| (...skipping 2730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21711 static const EventStreamProvider<AnimationEvent> animationStartEvent = const E
ventStreamProvider<AnimationEvent>('webkitAnimationStart'); | 21423 static const EventStreamProvider<AnimationEvent> animationStartEvent = const E
ventStreamProvider<AnimationEvent>('webkitAnimationStart'); |
| 21712 | 21424 |
| 21713 @DomName('Window.PERSISTENT') | 21425 @DomName('Window.PERSISTENT') |
| 21714 @DocsEditable | 21426 @DocsEditable |
| 21715 static const int PERSISTENT = 1; | 21427 static const int PERSISTENT = 1; |
| 21716 | 21428 |
| 21717 @DomName('Window.TEMPORARY') | 21429 @DomName('Window.TEMPORARY') |
| 21718 @DocsEditable | 21430 @DocsEditable |
| 21719 static const int TEMPORARY = 0; | 21431 static const int TEMPORARY = 0; |
| 21720 | 21432 |
| 21721 @JSName('CSS') | |
| 21722 @DomName('Window.CSS') | |
| 21723 @DocsEditable | |
| 21724 final Css Css; | |
| 21725 | |
| 21726 @DomName('Window.applicationCache') | 21433 @DomName('Window.applicationCache') |
| 21727 @DocsEditable | 21434 @DocsEditable |
| 21728 final ApplicationCache applicationCache; | 21435 final ApplicationCache applicationCache; |
| 21729 | 21436 |
| 21730 @DomName('Window.closed') | 21437 @DomName('Window.closed') |
| 21731 @DocsEditable | 21438 @DocsEditable |
| 21732 final bool closed; | 21439 final bool closed; |
| 21733 | 21440 |
| 21734 @DomName('Window.crypto') | 21441 @DomName('Window.crypto') |
| 21735 @DocsEditable | 21442 @DocsEditable |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21867 @DomName('Window.self') | 21574 @DomName('Window.self') |
| 21868 @DocsEditable | 21575 @DocsEditable |
| 21869 @Creates('Window|=Object') | 21576 @Creates('Window|=Object') |
| 21870 @Returns('Window|=Object') | 21577 @Returns('Window|=Object') |
| 21871 final dynamic _get_self; | 21578 final dynamic _get_self; |
| 21872 | 21579 |
| 21873 @DomName('Window.sessionStorage') | 21580 @DomName('Window.sessionStorage') |
| 21874 @DocsEditable | 21581 @DocsEditable |
| 21875 final Storage sessionStorage; | 21582 final Storage sessionStorage; |
| 21876 | 21583 |
| 21877 @DomName('Window.speechSynthesis') | |
| 21878 @DocsEditable | |
| 21879 final SpeechSynthesis speechSynthesis; | |
| 21880 | |
| 21881 @DomName('Window.status') | 21584 @DomName('Window.status') |
| 21882 @DocsEditable | 21585 @DocsEditable |
| 21883 String status; | 21586 String status; |
| 21884 | 21587 |
| 21885 @DomName('Window.statusbar') | 21588 @DomName('Window.statusbar') |
| 21886 @DocsEditable | 21589 @DocsEditable |
| 21887 final BarInfo statusbar; | 21590 final BarInfo statusbar; |
| 21888 | 21591 |
| 21889 @DomName('Window.styleMedia') | 21592 @DomName('Window.styleMedia') |
| 21890 @DocsEditable | 21593 @DocsEditable |
| (...skipping 6405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 28296 _position = nextPosition; | 27999 _position = nextPosition; |
| 28297 return true; | 28000 return true; |
| 28298 } | 28001 } |
| 28299 _current = null; | 28002 _current = null; |
| 28300 _position = _array.length; | 28003 _position = _array.length; |
| 28301 return false; | 28004 return false; |
| 28302 } | 28005 } |
| 28303 | 28006 |
| 28304 T get current => _current; | 28007 T get current => _current; |
| 28305 } | 28008 } |
| OLD | NEW |