| 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 |
| 763 @DomName('HTMLCanvasElement') | 776 @DomName('HTMLCanvasElement') |
| 764 class CanvasElement extends Element implements CanvasImageSource native "HTMLCan
vasElement" { | 777 class CanvasElement extends Element implements CanvasImageSource native "HTMLCan
vasElement" { |
| 765 | 778 |
| 766 @DomName('HTMLCanvasElement.HTMLCanvasElement') | 779 @DomName('HTMLCanvasElement.HTMLCanvasElement') |
| 767 @DocsEditable | 780 @DocsEditable |
| 768 factory CanvasElement({int width, int height}) { | 781 factory CanvasElement({int width, int height}) { |
| 769 var e = document.$dom_createElement("canvas"); | 782 var e = document.$dom_createElement("canvas"); |
| 770 if (width != null) e.width = width; | 783 if (width != null) e.width = width; |
| 771 if (height != null) e.height = height; | 784 if (height != null) e.height = height; |
| 772 return e; | 785 return e; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 */ | 972 */ |
| 960 @DomName('CanvasPattern') | 973 @DomName('CanvasPattern') |
| 961 class CanvasPattern native "CanvasPattern" { | 974 class CanvasPattern native "CanvasPattern" { |
| 962 } | 975 } |
| 963 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 964 // for details. All rights reserved. Use of this source code is governed by a | 977 // for details. All rights reserved. Use of this source code is governed by a |
| 965 // BSD-style license that can be found in the LICENSE file. | 978 // BSD-style license that can be found in the LICENSE file. |
| 966 | 979 |
| 967 | 980 |
| 968 @DocsEditable | 981 @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 | |
| 978 /** | 982 /** |
| 979 * A rendering context for a canvas element. | 983 * A rendering context for a canvas element. |
| 980 * | 984 * |
| 981 * This context is extended by [CanvasRenderingContext2D] and | 985 * This context is extended by [CanvasRenderingContext2D] and |
| 982 * [WebGLRenderingContext]. | 986 * [WebGLRenderingContext]. |
| 983 */ | 987 */ |
| 984 @DomName('CanvasRenderingContext') | 988 @DomName('CanvasRenderingContext') |
| 985 class CanvasRenderingContext native "CanvasRenderingContext" { | 989 class CanvasRenderingContext native "CanvasRenderingContext" { |
| 986 | 990 |
| 987 /// Reference to the canvas element to which this context belongs. | 991 /// Reference to the canvas element to which this context belongs. |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 void fill([String winding]) native; | 1156 void fill([String winding]) native; |
| 1153 | 1157 |
| 1154 @DomName('CanvasRenderingContext2D.fillRect') | 1158 @DomName('CanvasRenderingContext2D.fillRect') |
| 1155 @DocsEditable | 1159 @DocsEditable |
| 1156 void fillRect(num x, num y, num width, num height) native; | 1160 void fillRect(num x, num y, num width, num height) native; |
| 1157 | 1161 |
| 1158 @DomName('CanvasRenderingContext2D.fillText') | 1162 @DomName('CanvasRenderingContext2D.fillText') |
| 1159 @DocsEditable | 1163 @DocsEditable |
| 1160 void fillText(String text, num x, num y, [num maxWidth]) native; | 1164 void fillText(String text, num x, num y, [num maxWidth]) native; |
| 1161 | 1165 |
| 1166 @DomName('CanvasRenderingContext2D.getContextAttributes') |
| 1167 @DocsEditable |
| 1168 Canvas2DContextAttributes getContextAttributes() native; |
| 1169 |
| 1162 @DomName('CanvasRenderingContext2D.getImageData') | 1170 @DomName('CanvasRenderingContext2D.getImageData') |
| 1163 @DocsEditable | 1171 @DocsEditable |
| 1164 @Creates('ImageData|=Object') | 1172 @Creates('ImageData|=Object') |
| 1165 ImageData getImageData(num sx, num sy, num sw, num sh) { | 1173 ImageData getImageData(num sx, num sy, num sw, num sh) { |
| 1166 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); | 1174 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); |
| 1167 } | 1175 } |
| 1168 @JSName('getImageData') | 1176 @JSName('getImageData') |
| 1169 @DomName('CanvasRenderingContext2D.getImageData') | 1177 @DomName('CanvasRenderingContext2D.getImageData') |
| 1170 @DocsEditable | 1178 @DocsEditable |
| 1171 @Creates('ImageData|=Object') | 1179 @Creates('ImageData|=Object') |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1592 } | 1600 } |
| 1593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1594 // for details. All rights reserved. Use of this source code is governed by a | 1602 // for details. All rights reserved. Use of this source code is governed by a |
| 1595 // BSD-style license that can be found in the LICENSE file. | 1603 // BSD-style license that can be found in the LICENSE file. |
| 1596 | 1604 |
| 1597 | 1605 |
| 1598 @DocsEditable | 1606 @DocsEditable |
| 1599 @DomName('Comment') | 1607 @DomName('Comment') |
| 1600 class Comment extends CharacterData native "Comment" { | 1608 class Comment extends CharacterData native "Comment" { |
| 1601 } | 1609 } |
| 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 } |
| 1602 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1627 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 1603 // for details. All rights reserved. Use of this source code is governed by a | 1628 // for details. All rights reserved. Use of this source code is governed by a |
| 1604 // BSD-style license that can be found in the LICENSE file. | 1629 // BSD-style license that can be found in the LICENSE file. |
| 1605 | 1630 |
| 1606 // WARNING: Do not edit - generated code. | 1631 // WARNING: Do not edit - generated code. |
| 1607 | 1632 |
| 1608 | 1633 |
| 1609 @DomName('CompositionEvent') | 1634 @DomName('CompositionEvent') |
| 1610 class CompositionEvent extends UIEvent native "CompositionEvent" { | 1635 class CompositionEvent extends UIEvent native "CompositionEvent" { |
| 1611 factory CompositionEvent(String type, | 1636 factory CompositionEvent(String type, |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1823 @Creates('TypedData') | 1848 @Creates('TypedData') |
| 1824 @Returns('TypedData|Null') | 1849 @Returns('TypedData|Null') |
| 1825 TypedData getRandomValues(TypedData array) native; | 1850 TypedData getRandomValues(TypedData array) native; |
| 1826 } | 1851 } |
| 1827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1828 // for details. All rights reserved. Use of this source code is governed by a | 1853 // for details. All rights reserved. Use of this source code is governed by a |
| 1829 // BSD-style license that can be found in the LICENSE file. | 1854 // BSD-style license that can be found in the LICENSE file. |
| 1830 | 1855 |
| 1831 | 1856 |
| 1832 @DocsEditable | 1857 @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 |
| 1833 @DomName('CSSCharsetRule') | 1871 @DomName('CSSCharsetRule') |
| 1834 class CssCharsetRule extends CssRule native "CSSCharsetRule" { | 1872 class CssCharsetRule extends CssRule native "CSSCharsetRule" { |
| 1835 | 1873 |
| 1836 @DomName('CSSCharsetRule.encoding') | 1874 @DomName('CSSCharsetRule.encoding') |
| 1837 @DocsEditable | 1875 @DocsEditable |
| 1838 String encoding; | 1876 String encoding; |
| 1839 } | 1877 } |
| 1840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1841 // for details. All rights reserved. Use of this source code is governed by a | 1879 // for details. All rights reserved. Use of this source code is governed by a |
| 1842 // BSD-style license that can be found in the LICENSE file. | 1880 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2075 static const int MEDIA_RULE = 4; | 2113 static const int MEDIA_RULE = 4; |
| 2076 | 2114 |
| 2077 @DomName('CSSRule.PAGE_RULE') | 2115 @DomName('CSSRule.PAGE_RULE') |
| 2078 @DocsEditable | 2116 @DocsEditable |
| 2079 static const int PAGE_RULE = 6; | 2117 static const int PAGE_RULE = 6; |
| 2080 | 2118 |
| 2081 @DomName('CSSRule.STYLE_RULE') | 2119 @DomName('CSSRule.STYLE_RULE') |
| 2082 @DocsEditable | 2120 @DocsEditable |
| 2083 static const int STYLE_RULE = 1; | 2121 static const int STYLE_RULE = 1; |
| 2084 | 2122 |
| 2123 @DomName('CSSRule.SUPPORTS_RULE') |
| 2124 @DocsEditable |
| 2125 static const int SUPPORTS_RULE = 12; |
| 2126 |
| 2085 @DomName('CSSRule.UNKNOWN_RULE') | 2127 @DomName('CSSRule.UNKNOWN_RULE') |
| 2086 @DocsEditable | 2128 @DocsEditable |
| 2087 static const int UNKNOWN_RULE = 0; | 2129 static const int UNKNOWN_RULE = 0; |
| 2088 | 2130 |
| 2089 @DomName('CSSRule.WEBKIT_FILTER_RULE') | 2131 @DomName('CSSRule.WEBKIT_FILTER_RULE') |
| 2090 @DocsEditable | 2132 @DocsEditable |
| 2091 static const int WEBKIT_FILTER_RULE = 17; | 2133 static const int WEBKIT_FILTER_RULE = 17; |
| 2092 | 2134 |
| 2093 @DomName('CSSRule.WEBKIT_KEYFRAMES_RULE') | 2135 @DomName('CSSRule.WEBKIT_KEYFRAMES_RULE') |
| 2094 @DocsEditable | 2136 @DocsEditable |
| (...skipping 3320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5415 @DomName('CSSStyleSheet.removeRule') | 5457 @DomName('CSSStyleSheet.removeRule') |
| 5416 @DocsEditable | 5458 @DocsEditable |
| 5417 void removeRule(int index) native; | 5459 void removeRule(int index) native; |
| 5418 } | 5460 } |
| 5419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5461 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5420 // for details. All rights reserved. Use of this source code is governed by a | 5462 // for details. All rights reserved. Use of this source code is governed by a |
| 5421 // BSD-style license that can be found in the LICENSE file. | 5463 // BSD-style license that can be found in the LICENSE file. |
| 5422 | 5464 |
| 5423 | 5465 |
| 5424 @DocsEditable | 5466 @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 |
| 5425 @DomName('CSSUnknownRule') | 5494 @DomName('CSSUnknownRule') |
| 5426 class CssUnknownRule extends CssRule native "CSSUnknownRule" { | 5495 class CssUnknownRule extends CssRule native "CSSUnknownRule" { |
| 5427 } | 5496 } |
| 5428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5497 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5429 // for details. All rights reserved. Use of this source code is governed by a | 5498 // for details. All rights reserved. Use of this source code is governed by a |
| 5430 // BSD-style license that can be found in the LICENSE file. | 5499 // BSD-style license that can be found in the LICENSE file. |
| 5431 | 5500 |
| 5432 | 5501 |
| 5433 @DocsEditable | 5502 @DocsEditable |
| 5434 @DomName('CustomElementConstructor') | 5503 @DomName('CustomElementConstructor') |
| (...skipping 7053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12488 */ | 12557 */ |
| 12489 abstract class ButtonInputElement implements InputElementBase { | 12558 abstract class ButtonInputElement implements InputElementBase { |
| 12490 factory ButtonInputElement() => new InputElement(type: 'button'); | 12559 factory ButtonInputElement() => new InputElement(type: 'button'); |
| 12491 } | 12560 } |
| 12492 | 12561 |
| 12493 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12562 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12494 // for details. All rights reserved. Use of this source code is governed by a | 12563 // for details. All rights reserved. Use of this source code is governed by a |
| 12495 // BSD-style license that can be found in the LICENSE file. | 12564 // BSD-style license that can be found in the LICENSE file. |
| 12496 | 12565 |
| 12497 | 12566 |
| 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 |
| 12498 @DomName('KeyboardEvent') | 12604 @DomName('KeyboardEvent') |
| 12499 class KeyboardEvent extends UIEvent native "KeyboardEvent" { | 12605 class KeyboardEvent extends UIEvent native "KeyboardEvent" { |
| 12500 | 12606 |
| 12501 factory KeyboardEvent(String type, | 12607 factory KeyboardEvent(String type, |
| 12502 {Window view, bool canBubble: true, bool cancelable: true, | 12608 {Window view, bool canBubble: true, bool cancelable: true, |
| 12503 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, | 12609 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, |
| 12504 bool altKey: false, bool shiftKey: false, bool metaKey: false, | 12610 bool altKey: false, bool shiftKey: false, bool metaKey: false, |
| 12505 bool altGraphKey: false}) { | 12611 bool altGraphKey: false}) { |
| 12506 if (view == null) { | 12612 if (view == null) { |
| 12507 view = window; | 12613 view = window; |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12742 final StyleSheet sheet; | 12848 final StyleSheet sheet; |
| 12743 | 12849 |
| 12744 @DomName('HTMLLinkElement.sizes') | 12850 @DomName('HTMLLinkElement.sizes') |
| 12745 @DocsEditable | 12851 @DocsEditable |
| 12746 DomSettableTokenList sizes; | 12852 DomSettableTokenList sizes; |
| 12747 | 12853 |
| 12748 @DomName('HTMLLinkElement.type') | 12854 @DomName('HTMLLinkElement.type') |
| 12749 @DocsEditable | 12855 @DocsEditable |
| 12750 String type; | 12856 String type; |
| 12751 } | 12857 } |
| 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 } | |
| 12767 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 12858 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 12768 // for details. All rights reserved. Use of this source code is governed by a | 12859 // for details. All rights reserved. Use of this source code is governed by a |
| 12769 // BSD-style license that can be found in the LICENSE file. | 12860 // BSD-style license that can be found in the LICENSE file. |
| 12770 | 12861 |
| 12771 | 12862 |
| 12772 @DocsEditable | 12863 @DocsEditable |
| 12773 @DomName('Location') | 12864 @DomName('Location') |
| 12774 class Location implements LocationBase native "Location" { | 12865 class Location implements LocationBase native "Location" { |
| 12775 | 12866 |
| 12776 @DomName('Location.ancestorOrigins') | 12867 @DomName('Location.ancestorOrigins') |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12837 if (JS('bool', '("origin" in #)', this)) { | 12928 if (JS('bool', '("origin" in #)', this)) { |
| 12838 return JS('String', '#.origin', this); | 12929 return JS('String', '#.origin', this); |
| 12839 } | 12930 } |
| 12840 return '${this.protocol}//${this.host}'; | 12931 return '${this.protocol}//${this.host}'; |
| 12841 } | 12932 } |
| 12842 } | 12933 } |
| 12843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12844 // for details. All rights reserved. Use of this source code is governed by a | 12935 // for details. All rights reserved. Use of this source code is governed by a |
| 12845 // BSD-style license that can be found in the LICENSE file. | 12936 // BSD-style license that can be found in the LICENSE file. |
| 12846 | 12937 |
| 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 |
| 12847 | 12946 |
| 12848 @DocsEditable | 12947 @DocsEditable |
| 12849 @DomName('HTMLMapElement') | 12948 @DomName('HTMLMapElement') |
| 12850 class MapElement extends Element native "HTMLMapElement" { | 12949 class MapElement extends Element native "HTMLMapElement" { |
| 12851 | 12950 |
| 12852 @DomName('HTMLMapElement.HTMLMapElement') | 12951 @DomName('HTMLMapElement.HTMLMapElement') |
| 12853 @DocsEditable | 12952 @DocsEditable |
| 12854 factory MapElement() => document.$dom_createElement("map"); | 12953 factory MapElement() => document.$dom_createElement("map"); |
| 12855 | 12954 |
| 12856 @DomName('HTMLMapElement.areas') | 12955 @DomName('HTMLMapElement.areas') |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13709 | 13808 |
| 13710 @JSName('removeEventListener') | 13809 @JSName('removeEventListener') |
| 13711 @DomName('MediaStream.removeEventListener') | 13810 @DomName('MediaStream.removeEventListener') |
| 13712 @DocsEditable | 13811 @DocsEditable |
| 13713 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 13812 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 13714 | 13813 |
| 13715 @DomName('MediaStream.removeTrack') | 13814 @DomName('MediaStream.removeTrack') |
| 13716 @DocsEditable | 13815 @DocsEditable |
| 13717 void removeTrack(MediaStreamTrack track) native; | 13816 void removeTrack(MediaStreamTrack track) native; |
| 13718 | 13817 |
| 13818 @DomName('MediaStream.stop') |
| 13819 @DocsEditable |
| 13820 void stop() native; |
| 13821 |
| 13719 @DomName('MediaStream.onaddtrack') | 13822 @DomName('MediaStream.onaddtrack') |
| 13720 @DocsEditable | 13823 @DocsEditable |
| 13721 Stream<Event> get onAddTrack => addTrackEvent.forTarget(this); | 13824 Stream<Event> get onAddTrack => addTrackEvent.forTarget(this); |
| 13722 | 13825 |
| 13723 @DomName('MediaStream.onended') | 13826 @DomName('MediaStream.onended') |
| 13724 @DocsEditable | 13827 @DocsEditable |
| 13725 Stream<Event> get onEnded => endedEvent.forTarget(this); | 13828 Stream<Event> get onEnded => endedEvent.forTarget(this); |
| 13726 | 13829 |
| 13727 @DomName('MediaStream.onremovetrack') | 13830 @DomName('MediaStream.onremovetrack') |
| 13728 @DocsEditable | 13831 @DocsEditable |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14130 @DomName('HTMLMeterElement.value') | 14233 @DomName('HTMLMeterElement.value') |
| 14131 @DocsEditable | 14234 @DocsEditable |
| 14132 num value; | 14235 num value; |
| 14133 } | 14236 } |
| 14134 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14135 // for details. All rights reserved. Use of this source code is governed by a | 14238 // for details. All rights reserved. Use of this source code is governed by a |
| 14136 // BSD-style license that can be found in the LICENSE file. | 14239 // BSD-style license that can be found in the LICENSE file. |
| 14137 | 14240 |
| 14138 | 14241 |
| 14139 @DocsEditable | 14242 @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 |
| 14140 @DomName('MimeType') | 14316 @DomName('MimeType') |
| 14141 class MimeType native "MimeType" { | 14317 class MimeType native "MimeType" { |
| 14142 | 14318 |
| 14143 @DomName('MimeType.description') | 14319 @DomName('MimeType.description') |
| 14144 @DocsEditable | 14320 @DocsEditable |
| 14145 final String description; | 14321 final String description; |
| 14146 | 14322 |
| 14147 @DomName('MimeType.enabledPlugin') | 14323 @DomName('MimeType.enabledPlugin') |
| 14148 @DocsEditable | 14324 @DocsEditable |
| 14149 final Plugin enabledPlugin; | 14325 final Plugin enabledPlugin; |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14723 * | 14899 * |
| 14724 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { | 14900 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { |
| 14725 * var video = new VideoElement() | 14901 * var video = new VideoElement() |
| 14726 * ..autoplay = true | 14902 * ..autoplay = true |
| 14727 * ..src = Url.createObjectUrl(stream); | 14903 * ..src = Url.createObjectUrl(stream); |
| 14728 * document.body.append(video); | 14904 * document.body.append(video); |
| 14729 * }); | 14905 * }); |
| 14730 * | 14906 * |
| 14731 * The user can also pass in Maps to the audio or video parameters to specify | 14907 * The user can also pass in Maps to the audio or video parameters to specify |
| 14732 * mandatory and optional constraints for the media stream. Not passing in a | 14908 * mandatory and optional constraints for the media stream. Not passing in a |
| 14733 * map, but passing in `true` will provide a LocalMediaStream with audio or | 14909 * map, but passing in `true` will provide a MediaStream with audio or |
| 14734 * video capabilities, but without any additional constraints. The particular | 14910 * video capabilities, but without any additional constraints. The particular |
| 14735 * constraint names for audio and video are still in flux, but as of this | 14911 * constraint names for audio and video are still in flux, but as of this |
| 14736 * writing, here is an example providing more constraints. | 14912 * writing, here is an example providing more constraints. |
| 14737 * | 14913 * |
| 14738 * window.navigator.getUserMedia( | 14914 * window.navigator.getUserMedia( |
| 14739 * audio: true, | 14915 * audio: true, |
| 14740 * video: {'mandatory': | 14916 * video: {'mandatory': |
| 14741 * { 'minAspectRatio': 1.333, 'maxAspectRatio': 1.334 }, | 14917 * { 'minAspectRatio': 1.333, 'maxAspectRatio': 1.334 }, |
| 14742 * 'optional': | 14918 * 'optional': |
| 14743 * [{ 'minFrameRate': 60 }, | 14919 * [{ 'minFrameRate': 60 }, |
| 14744 * { 'maxWidth': 640 }] | 14920 * { 'maxWidth': 640 }] |
| 14745 * }); | 14921 * }); |
| 14746 * | 14922 * |
| 14747 * See also: | 14923 * See also: |
| 14748 * * [MediaStream.supported] | 14924 * * [MediaStream.supported] |
| 14749 */ | 14925 */ |
| 14750 @DomName('Navigator.webkitGetUserMedia') | 14926 @DomName('Navigator.webkitGetUserMedia') |
| 14751 @SupportedBrowser(SupportedBrowser.CHROME) | 14927 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14752 @Experimental | 14928 @Experimental |
| 14753 Future<LocalMediaStream> getUserMedia({audio: false, video: false}) { | 14929 Future<MediaStream> getUserMedia({audio: false, video: false}) { |
| 14754 var completer = new Completer<LocalMediaStream>(); | 14930 var completer = new Completer<MediaStream>(); |
| 14755 var options = { | 14931 var options = { |
| 14756 'audio': audio, | 14932 'audio': audio, |
| 14757 'video': video | 14933 'video': video |
| 14758 }; | 14934 }; |
| 14759 _ensureGetUserMedia(); | 14935 _ensureGetUserMedia(); |
| 14760 this._getUserMedia(convertDartToNative_SerializedScriptValue(options), | 14936 this._getUserMedia(convertDartToNative_SerializedScriptValue(options), |
| 14761 (stream) { | 14937 (stream) { |
| 14762 completer.complete(stream); | 14938 completer.complete(stream); |
| 14763 }, | 14939 }, |
| 14764 (error) { | 14940 (error) { |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14904 | 15080 |
| 14905 | 15081 |
| 14906 typedef void _NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); | 15082 typedef void _NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); |
| 14907 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15083 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14908 // for details. All rights reserved. Use of this source code is governed by a | 15084 // for details. All rights reserved. Use of this source code is governed by a |
| 14909 // BSD-style license that can be found in the LICENSE file. | 15085 // BSD-style license that can be found in the LICENSE file. |
| 14910 | 15086 |
| 14911 // WARNING: Do not edit - generated code. | 15087 // WARNING: Do not edit - generated code. |
| 14912 | 15088 |
| 14913 | 15089 |
| 14914 typedef void _NavigatorUserMediaSuccessCallback(LocalMediaStream stream); | 15090 typedef void _NavigatorUserMediaSuccessCallback(MediaStream stream); |
| 14915 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15091 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14916 // for details. All rights reserved. Use of this source code is governed by a | 15092 // for details. All rights reserved. Use of this source code is governed by a |
| 14917 // BSD-style license that can be found in the LICENSE file. | 15093 // BSD-style license that can be found in the LICENSE file. |
| 14918 | 15094 |
| 14919 | 15095 |
| 14920 /** | 15096 /** |
| 14921 * Lazy implementation of the child nodes of an element that does not request | 15097 * Lazy implementation of the child nodes of an element that does not request |
| 14922 * the actual child nodes of an element until strictly necessary greatly | 15098 * the actual child nodes of an element until strictly necessary greatly |
| 14923 * improving performance for the typical cases where it is not required. | 15099 * improving performance for the typical cases where it is not required. |
| 14924 */ | 15100 */ |
| (...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16119 final MemoryInfo memory; | 16295 final MemoryInfo memory; |
| 16120 | 16296 |
| 16121 @DomName('Performance.navigation') | 16297 @DomName('Performance.navigation') |
| 16122 @DocsEditable | 16298 @DocsEditable |
| 16123 final PerformanceNavigation navigation; | 16299 final PerformanceNavigation navigation; |
| 16124 | 16300 |
| 16125 @DomName('Performance.timing') | 16301 @DomName('Performance.timing') |
| 16126 @DocsEditable | 16302 @DocsEditable |
| 16127 final PerformanceTiming timing; | 16303 final PerformanceTiming timing; |
| 16128 | 16304 |
| 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 |
| 16129 @DomName('Performance.now') | 16333 @DomName('Performance.now') |
| 16130 @DocsEditable | 16334 @DocsEditable |
| 16131 num now() native; | 16335 num now() native; |
| 16132 | 16336 |
| 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 | |
| 16149 @JSName('webkitClearResourceTimings') | 16337 @JSName('webkitClearResourceTimings') |
| 16150 @DomName('Performance.webkitClearResourceTimings') | 16338 @DomName('Performance.webkitClearResourceTimings') |
| 16151 @DocsEditable | 16339 @DocsEditable |
| 16152 @SupportedBrowser(SupportedBrowser.CHROME) | 16340 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16153 @SupportedBrowser(SupportedBrowser.SAFARI) | 16341 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16154 @Experimental | 16342 @Experimental |
| 16155 void clearResourceTimings() native; | 16343 void clearResourceTimings() native; |
| 16156 | 16344 |
| 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 | |
| 16197 @JSName('webkitSetResourceTimingBufferSize') | 16345 @JSName('webkitSetResourceTimingBufferSize') |
| 16198 @DomName('Performance.webkitSetResourceTimingBufferSize') | 16346 @DomName('Performance.webkitSetResourceTimingBufferSize') |
| 16199 @DocsEditable | 16347 @DocsEditable |
| 16200 @SupportedBrowser(SupportedBrowser.CHROME) | 16348 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16201 @SupportedBrowser(SupportedBrowser.SAFARI) | 16349 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16202 @Experimental | 16350 @Experimental |
| 16203 void setResourceTimingBufferSize(int maxSize) native; | 16351 void setResourceTimingBufferSize(int maxSize) native; |
| 16204 } | 16352 } |
| 16205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16353 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16206 // for details. All rights reserved. Use of this source code is governed by a | 16354 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 19 matching lines...) Expand all Loading... |
| 16226 @DomName('PerformanceEntry.startTime') | 16374 @DomName('PerformanceEntry.startTime') |
| 16227 @DocsEditable | 16375 @DocsEditable |
| 16228 final num startTime; | 16376 final num startTime; |
| 16229 } | 16377 } |
| 16230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16378 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16231 // for details. All rights reserved. Use of this source code is governed by a | 16379 // for details. All rights reserved. Use of this source code is governed by a |
| 16232 // BSD-style license that can be found in the LICENSE file. | 16380 // BSD-style license that can be found in the LICENSE file. |
| 16233 | 16381 |
| 16234 | 16382 |
| 16235 @DocsEditable | 16383 @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 | |
| 16253 @DomName('PerformanceMark') | 16384 @DomName('PerformanceMark') |
| 16254 class PerformanceMark extends PerformanceEntry native "PerformanceMark" { | 16385 class PerformanceMark extends PerformanceEntry native "PerformanceMark" { |
| 16255 } | 16386 } |
| 16256 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16387 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16257 // for details. All rights reserved. Use of this source code is governed by a | 16388 // for details. All rights reserved. Use of this source code is governed by a |
| 16258 // BSD-style license that can be found in the LICENSE file. | 16389 // BSD-style license that can be found in the LICENSE file. |
| 16259 | 16390 |
| 16260 | 16391 |
| 16261 @DocsEditable | 16392 @DocsEditable |
| 16262 @DomName('PerformanceMeasure') | 16393 @DomName('PerformanceMeasure') |
| (...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17823 | 17954 |
| 17824 @DocsEditable | 17955 @DocsEditable |
| 17825 @DomName('SecurityPolicyViolationEvent') | 17956 @DomName('SecurityPolicyViolationEvent') |
| 17826 class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation
Event" { | 17957 class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation
Event" { |
| 17827 | 17958 |
| 17828 @JSName('blockedURI') | 17959 @JSName('blockedURI') |
| 17829 @DomName('SecurityPolicyViolationEvent.blockedURI') | 17960 @DomName('SecurityPolicyViolationEvent.blockedURI') |
| 17830 @DocsEditable | 17961 @DocsEditable |
| 17831 final String blockedUri; | 17962 final String blockedUri; |
| 17832 | 17963 |
| 17964 @DomName('SecurityPolicyViolationEvent.columnNumber') |
| 17965 @DocsEditable |
| 17966 final int columnNumber; |
| 17967 |
| 17833 @JSName('documentURI') | 17968 @JSName('documentURI') |
| 17834 @DomName('SecurityPolicyViolationEvent.documentURI') | 17969 @DomName('SecurityPolicyViolationEvent.documentURI') |
| 17835 @DocsEditable | 17970 @DocsEditable |
| 17836 final String documentUri; | 17971 final String documentUri; |
| 17837 | 17972 |
| 17838 @DomName('SecurityPolicyViolationEvent.effectiveDirective') | 17973 @DomName('SecurityPolicyViolationEvent.effectiveDirective') |
| 17839 @DocsEditable | 17974 @DocsEditable |
| 17840 final String effectiveDirective; | 17975 final String effectiveDirective; |
| 17841 | 17976 |
| 17842 @DomName('SecurityPolicyViolationEvent.lineNumber') | 17977 @DomName('SecurityPolicyViolationEvent.lineNumber') |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18673 | 18808 |
| 18674 @DomName('SpeechRecognitionResult.item') | 18809 @DomName('SpeechRecognitionResult.item') |
| 18675 @DocsEditable | 18810 @DocsEditable |
| 18676 SpeechRecognitionAlternative item(int index) native; | 18811 SpeechRecognitionAlternative item(int index) native; |
| 18677 } | 18812 } |
| 18678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18813 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18679 // for details. All rights reserved. Use of this source code is governed by a | 18814 // for details. All rights reserved. Use of this source code is governed by a |
| 18680 // BSD-style license that can be found in the LICENSE file. | 18815 // BSD-style license that can be found in the LICENSE file. |
| 18681 | 18816 |
| 18682 | 18817 |
| 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 |
| 18683 /** | 18971 /** |
| 18684 * The type used by the | 18972 * The type used by the |
| 18685 * [Window.localStorage] and [Window.sessionStorage] properties. | 18973 * [Window.localStorage] and [Window.sessionStorage] properties. |
| 18686 * Storage is implemented as a Map<String, String>. | 18974 * Storage is implemented as a Map<String, String>. |
| 18687 * | 18975 * |
| 18688 * To store and get values, use Dart's built-in map syntax: | 18976 * To store and get values, use Dart's built-in map syntax: |
| 18689 * | 18977 * |
| 18690 * window.localStorage['key1'] = 'val1'; | 18978 * window.localStorage['key1'] = 'val1'; |
| 18691 * window.localStorage['key2'] = 'val2'; | 18979 * window.localStorage['key2'] = 'val2'; |
| 18692 * window.localStorage['key3'] = 'val3'; | 18980 * window.localStorage['key3'] = 'val3'; |
| (...skipping 2730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21423 static const EventStreamProvider<AnimationEvent> animationStartEvent = const E
ventStreamProvider<AnimationEvent>('webkitAnimationStart'); | 21711 static const EventStreamProvider<AnimationEvent> animationStartEvent = const E
ventStreamProvider<AnimationEvent>('webkitAnimationStart'); |
| 21424 | 21712 |
| 21425 @DomName('Window.PERSISTENT') | 21713 @DomName('Window.PERSISTENT') |
| 21426 @DocsEditable | 21714 @DocsEditable |
| 21427 static const int PERSISTENT = 1; | 21715 static const int PERSISTENT = 1; |
| 21428 | 21716 |
| 21429 @DomName('Window.TEMPORARY') | 21717 @DomName('Window.TEMPORARY') |
| 21430 @DocsEditable | 21718 @DocsEditable |
| 21431 static const int TEMPORARY = 0; | 21719 static const int TEMPORARY = 0; |
| 21432 | 21720 |
| 21721 @JSName('CSS') |
| 21722 @DomName('Window.CSS') |
| 21723 @DocsEditable |
| 21724 final Css Css; |
| 21725 |
| 21433 @DomName('Window.applicationCache') | 21726 @DomName('Window.applicationCache') |
| 21434 @DocsEditable | 21727 @DocsEditable |
| 21435 final ApplicationCache applicationCache; | 21728 final ApplicationCache applicationCache; |
| 21436 | 21729 |
| 21437 @DomName('Window.closed') | 21730 @DomName('Window.closed') |
| 21438 @DocsEditable | 21731 @DocsEditable |
| 21439 final bool closed; | 21732 final bool closed; |
| 21440 | 21733 |
| 21441 @DomName('Window.crypto') | 21734 @DomName('Window.crypto') |
| 21442 @DocsEditable | 21735 @DocsEditable |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21574 @DomName('Window.self') | 21867 @DomName('Window.self') |
| 21575 @DocsEditable | 21868 @DocsEditable |
| 21576 @Creates('Window|=Object') | 21869 @Creates('Window|=Object') |
| 21577 @Returns('Window|=Object') | 21870 @Returns('Window|=Object') |
| 21578 final dynamic _get_self; | 21871 final dynamic _get_self; |
| 21579 | 21872 |
| 21580 @DomName('Window.sessionStorage') | 21873 @DomName('Window.sessionStorage') |
| 21581 @DocsEditable | 21874 @DocsEditable |
| 21582 final Storage sessionStorage; | 21875 final Storage sessionStorage; |
| 21583 | 21876 |
| 21877 @DomName('Window.speechSynthesis') |
| 21878 @DocsEditable |
| 21879 final SpeechSynthesis speechSynthesis; |
| 21880 |
| 21584 @DomName('Window.status') | 21881 @DomName('Window.status') |
| 21585 @DocsEditable | 21882 @DocsEditable |
| 21586 String status; | 21883 String status; |
| 21587 | 21884 |
| 21588 @DomName('Window.statusbar') | 21885 @DomName('Window.statusbar') |
| 21589 @DocsEditable | 21886 @DocsEditable |
| 21590 final BarInfo statusbar; | 21887 final BarInfo statusbar; |
| 21591 | 21888 |
| 21592 @DomName('Window.styleMedia') | 21889 @DomName('Window.styleMedia') |
| 21593 @DocsEditable | 21890 @DocsEditable |
| (...skipping 6405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27999 _position = nextPosition; | 28296 _position = nextPosition; |
| 28000 return true; | 28297 return true; |
| 28001 } | 28298 } |
| 28002 _current = null; | 28299 _current = null; |
| 28003 _position = _array.length; | 28300 _position = _array.length; |
| 28004 return false; | 28301 return false; |
| 28005 } | 28302 } |
| 28006 | 28303 |
| 28007 T get current => _current; | 28304 T get current => _current; |
| 28008 } | 28305 } |
| OLD | NEW |