Chromium Code Reviews| 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 468 @DomName('HTMLBRElement.HTMLBRElement') | 468 @DomName('HTMLBRElement.HTMLBRElement') |
| 469 @DocsEditable | 469 @DocsEditable |
| 470 factory BRElement() => document.$dom_createElement("br"); | 470 factory BRElement() => document.$dom_createElement("br"); |
| 471 } | 471 } |
| 472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 473 // for details. All rights reserved. Use of this source code is governed by a | 473 // for details. All rights reserved. Use of this source code is governed by a |
| 474 // BSD-style license that can be found in the LICENSE file. | 474 // BSD-style license that can be found in the LICENSE file. |
| 475 | 475 |
| 476 | 476 |
| 477 @DocsEditable | 477 @DocsEditable |
| 478 @DomName('BarInfo') | 478 @DomName('BarProp') |
| 479 // http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#bar prop (Rename to BarProp?) | 479 @Experimental // untriaged |
| 480 @Experimental // non-standard | 480 class BarProp native "BarProp" { |
| 481 class BarInfo native "BarInfo" { | |
| 482 | 481 |
| 483 @DomName('BarInfo.visible') | 482 @DomName('BarProp.visible') |
| 484 @DocsEditable | 483 @DocsEditable |
| 484 @Experimental // untriaged | |
| 485 final bool visible; | 485 final bool visible; |
| 486 } | 486 } |
| 487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 488 // for details. All rights reserved. Use of this source code is governed by a | 488 // for details. All rights reserved. Use of this source code is governed by a |
| 489 // BSD-style license that can be found in the LICENSE file. | 489 // BSD-style license that can be found in the LICENSE file. |
| 490 | 490 |
| 491 | 491 |
| 492 @DocsEditable | 492 @DocsEditable |
| 493 @DomName('HTMLBaseElement') | 493 @DomName('HTMLBaseElement') |
| 494 class BaseElement extends Element native "HTMLBaseElement" { | 494 class BaseElement extends Element native "HTMLBaseElement" { |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1271 @DomName('CanvasRenderingContext2D.setTransform') | 1271 @DomName('CanvasRenderingContext2D.setTransform') |
| 1272 @DocsEditable | 1272 @DocsEditable |
| 1273 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 1273 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
| 1274 | 1274 |
| 1275 @DomName('CanvasRenderingContext2D.stroke') | 1275 @DomName('CanvasRenderingContext2D.stroke') |
| 1276 @DocsEditable | 1276 @DocsEditable |
| 1277 void stroke() native; | 1277 void stroke() native; |
| 1278 | 1278 |
| 1279 @DomName('CanvasRenderingContext2D.strokeRect') | 1279 @DomName('CanvasRenderingContext2D.strokeRect') |
| 1280 @DocsEditable | 1280 @DocsEditable |
| 1281 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; | 1281 void strokeRect(num x, num y, num width, num height) native; |
| 1282 | 1282 |
| 1283 @DomName('CanvasRenderingContext2D.strokeText') | 1283 @DomName('CanvasRenderingContext2D.strokeText') |
| 1284 @DocsEditable | 1284 @DocsEditable |
| 1285 void strokeText(String text, num x, num y, [num maxWidth]) native; | 1285 void strokeText(String text, num x, num y, [num maxWidth]) native; |
| 1286 | 1286 |
| 1287 @DomName('CanvasRenderingContext2D.transform') | 1287 @DomName('CanvasRenderingContext2D.transform') |
| 1288 @DocsEditable | 1288 @DocsEditable |
| 1289 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 1289 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
| 1290 | 1290 |
| 1291 @DomName('CanvasRenderingContext2D.translate') | 1291 @DomName('CanvasRenderingContext2D.translate') |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1567 class CharacterData extends Node native "CharacterData" { | 1567 class CharacterData extends Node native "CharacterData" { |
| 1568 | 1568 |
| 1569 @DomName('CharacterData.data') | 1569 @DomName('CharacterData.data') |
| 1570 @DocsEditable | 1570 @DocsEditable |
| 1571 String data; | 1571 String data; |
| 1572 | 1572 |
| 1573 @DomName('CharacterData.length') | 1573 @DomName('CharacterData.length') |
| 1574 @DocsEditable | 1574 @DocsEditable |
| 1575 final int length; | 1575 final int length; |
| 1576 | 1576 |
| 1577 @DomName('CharacterData.nextElementSibling') | |
| 1578 @DocsEditable | |
| 1579 @Experimental // untriaged | |
| 1580 final Element nextElementSibling; | |
| 1581 | |
| 1582 @DomName('CharacterData.previousElementSibling') | |
| 1583 @DocsEditable | |
| 1584 @Experimental // untriaged | |
| 1585 final Element previousElementSibling; | |
| 1586 | |
| 1577 @DomName('CharacterData.appendData') | 1587 @DomName('CharacterData.appendData') |
| 1578 @DocsEditable | 1588 @DocsEditable |
| 1579 void appendData(String data) native; | 1589 void appendData(String data) native; |
| 1580 | 1590 |
| 1581 @DomName('CharacterData.deleteData') | 1591 @DomName('CharacterData.deleteData') |
| 1582 @DocsEditable | 1592 @DocsEditable |
| 1583 void deleteData(int offset, int length) native; | 1593 void deleteData(int offset, int length) native; |
| 1584 | 1594 |
| 1585 @DomName('CharacterData.insertData') | 1595 @DomName('CharacterData.insertData') |
| 1586 @DocsEditable | 1596 @DocsEditable |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 1616 final bool wasClean; | 1626 final bool wasClean; |
| 1617 } | 1627 } |
| 1618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1619 // for details. All rights reserved. Use of this source code is governed by a | 1629 // for details. All rights reserved. Use of this source code is governed by a |
| 1620 // BSD-style license that can be found in the LICENSE file. | 1630 // BSD-style license that can be found in the LICENSE file. |
| 1621 | 1631 |
| 1622 | 1632 |
| 1623 @DocsEditable | 1633 @DocsEditable |
| 1624 @DomName('Comment') | 1634 @DomName('Comment') |
| 1625 class Comment extends CharacterData native "Comment" { | 1635 class Comment extends CharacterData native "Comment" { |
| 1636 | |
| 1637 @DomName('Comment.Comment') | |
| 1638 @DocsEditable | |
| 1639 factory Comment([String data]) { | |
| 1640 if (?data) { | |
| 1641 return Comment._create_1(data); | |
| 1642 } | |
| 1643 return Comment._create_2(); | |
| 1644 } | |
| 1645 static Comment _create_1(data) => JS('Comment', 'new Comment(#)', data); | |
| 1646 static Comment _create_2() => JS('Comment', 'new Comment()'); | |
| 1626 } | 1647 } |
| 1627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1648 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1628 // for details. All rights reserved. Use of this source code is governed by a | 1649 // 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. | 1650 // BSD-style license that can be found in the LICENSE file. |
| 1630 | 1651 |
| 1631 | 1652 |
| 1632 @DocsEditable | 1653 @DocsEditable |
| 1633 @DomName('Composition') | 1654 @DomName('Composition') |
| 1634 @Experimental // untriaged | 1655 @Experimental // untriaged |
| 1635 class Composition native "Composition" { | 1656 class Composition native "Composition" { |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2036 @DomName('WebKitCSSKeyframesRule.cssRules') | 2057 @DomName('WebKitCSSKeyframesRule.cssRules') |
| 2037 @DocsEditable | 2058 @DocsEditable |
| 2038 @Returns('_CssRuleList') | 2059 @Returns('_CssRuleList') |
| 2039 @Creates('_CssRuleList') | 2060 @Creates('_CssRuleList') |
| 2040 final List<CssRule> cssRules; | 2061 final List<CssRule> cssRules; |
| 2041 | 2062 |
| 2042 @DomName('WebKitCSSKeyframesRule.name') | 2063 @DomName('WebKitCSSKeyframesRule.name') |
| 2043 @DocsEditable | 2064 @DocsEditable |
| 2044 String name; | 2065 String name; |
| 2045 | 2066 |
| 2067 @JSName('None') | |
|
blois
2013/06/03 17:34:43
I'm presuming that this doesn't work in dart2js ye
| |
| 2068 @DomName('WebKitCSSKeyframesRule') | |
| 2069 @SupportedBrowser(SupportedBrowser.CHROME) | |
| 2070 @SupportedBrowser(SupportedBrowser.SAFARI) | |
| 2071 @Experimental | |
| 2072 // http://www.w3.org/TR/css3-animations/#csskeyframesrule | |
| 2073 CssKeyframeRule item(int index) native; | |
|
Anton Muhin
2013/06/03 08:52:41
looking into IDLs changes, is that the code we'd l
vsm
2013/06/03 14:47:41
We should discuss. Should getter be always mapped
Anton Muhin
2013/06/03 15:11:31
I'd always map. Strict rule: if there is a getter
| |
| 2074 | |
| 2046 @DomName('WebKitCSSKeyframesRule.deleteRule') | 2075 @DomName('WebKitCSSKeyframesRule.deleteRule') |
| 2047 @DocsEditable | 2076 @DocsEditable |
| 2048 void deleteRule(String key) native; | 2077 void deleteRule(String key) native; |
| 2049 | 2078 |
| 2050 @DomName('WebKitCSSKeyframesRule.findRule') | 2079 @DomName('WebKitCSSKeyframesRule.findRule') |
| 2051 @DocsEditable | 2080 @DocsEditable |
| 2052 CssKeyframeRule findRule(String key) native; | 2081 CssKeyframeRule findRule(String key) native; |
| 2053 | 2082 |
| 2054 @DomName('WebKitCSSKeyframesRule.insertRule') | 2083 @DomName('WebKitCSSKeyframesRule.insertRule') |
| 2055 @DocsEditable | 2084 @DocsEditable |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2229 final int length; | 2258 final int length; |
| 2230 | 2259 |
| 2231 @DomName('CSSStyleDeclaration.parentRule') | 2260 @DomName('CSSStyleDeclaration.parentRule') |
| 2232 @DocsEditable | 2261 @DocsEditable |
| 2233 final CssRule parentRule; | 2262 final CssRule parentRule; |
| 2234 | 2263 |
| 2235 @DomName('CSSStyleDeclaration.getPropertyPriority') | 2264 @DomName('CSSStyleDeclaration.getPropertyPriority') |
| 2236 @DocsEditable | 2265 @DocsEditable |
| 2237 String getPropertyPriority(String propertyName) native; | 2266 String getPropertyPriority(String propertyName) native; |
| 2238 | 2267 |
| 2239 @DomName('CSSStyleDeclaration.getPropertyShorthand') | |
| 2240 @DocsEditable | |
| 2241 // http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface | |
| 2242 @deprecated // deprecated | |
| 2243 String getPropertyShorthand(String propertyName) native; | |
| 2244 | |
| 2245 @JSName('getPropertyValue') | 2268 @JSName('getPropertyValue') |
| 2246 @DomName('CSSStyleDeclaration.getPropertyValue') | 2269 @DomName('CSSStyleDeclaration.getPropertyValue') |
| 2247 @DocsEditable | 2270 @DocsEditable |
| 2248 String _getPropertyValue(String propertyName) native; | 2271 String _getPropertyValue(String propertyName) native; |
| 2249 | 2272 |
| 2250 @DomName('CSSStyleDeclaration.isPropertyImplicit') | |
| 2251 @DocsEditable | |
| 2252 // http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface | |
| 2253 @deprecated // deprecated | |
| 2254 bool isPropertyImplicit(String propertyName) native; | |
| 2255 | |
| 2256 @DomName('CSSStyleDeclaration.item') | 2273 @DomName('CSSStyleDeclaration.item') |
| 2257 @DocsEditable | 2274 @DocsEditable |
| 2258 String item(int index) native; | 2275 String item(int index) native; |
| 2259 | 2276 |
| 2260 @DomName('CSSStyleDeclaration.removeProperty') | 2277 @DomName('CSSStyleDeclaration.removeProperty') |
| 2261 @DocsEditable | 2278 @DocsEditable |
| 2262 String removeProperty(String propertyName) native; | 2279 String removeProperty(String propertyName) native; |
| 2263 | 2280 |
| 2264 | 2281 |
| 2265 String getPropertyValue(String propertyName) { | 2282 String getPropertyValue(String propertyName) { |
| (...skipping 3958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6224 /// Moved to [HtmlDocument]. | 6241 /// Moved to [HtmlDocument]. |
| 6225 @DomName('Document.body') | 6242 @DomName('Document.body') |
| 6226 @DocsEditable | 6243 @DocsEditable |
| 6227 Element $dom_body; | 6244 Element $dom_body; |
| 6228 | 6245 |
| 6229 @DomName('Document.charset') | 6246 @DomName('Document.charset') |
| 6230 @DocsEditable | 6247 @DocsEditable |
| 6231 @deprecated // nonstandard | 6248 @deprecated // nonstandard |
| 6232 String charset; | 6249 String charset; |
| 6233 | 6250 |
| 6251 @DomName('Document.childElementCount') | |
| 6252 @DocsEditable | |
| 6253 @Experimental // untriaged | |
| 6254 final int childElementCount; | |
| 6255 | |
| 6256 @DomName('Document.children') | |
| 6257 @DocsEditable | |
| 6258 @Experimental // untriaged | |
| 6259 final HtmlCollection children; | |
| 6260 | |
| 6234 @DomName('Document.cookie') | 6261 @DomName('Document.cookie') |
| 6235 @DocsEditable | 6262 @DocsEditable |
| 6236 String cookie; | 6263 String cookie; |
| 6237 | 6264 |
| 6238 WindowBase get window => _convertNativeToDart_Window(this._get_window); | 6265 WindowBase get window => _convertNativeToDart_Window(this._get_window); |
| 6239 @JSName('defaultView') | 6266 @JSName('defaultView') |
| 6240 @DomName('Document.window') | 6267 @DomName('Document.window') |
| 6241 @DocsEditable | 6268 @DocsEditable |
| 6242 @Experimental // untriaged | 6269 @Experimental // untriaged |
| 6243 @Creates('Window|=Object') | 6270 @Creates('Window|=Object') |
| 6244 @Returns('Window|=Object') | 6271 @Returns('Window|=Object') |
| 6245 @Creates('Window|=Object|Null') | 6272 @Creates('Window|=Object|Null') |
| 6246 @Returns('Window|=Object|Null') | 6273 @Returns('Window|=Object|Null') |
| 6247 final dynamic _get_window; | 6274 final dynamic _get_window; |
| 6248 | 6275 |
| 6249 @DomName('Document.documentElement') | 6276 @DomName('Document.documentElement') |
| 6250 @DocsEditable | 6277 @DocsEditable |
| 6251 final Element documentElement; | 6278 final Element documentElement; |
| 6252 | 6279 |
| 6253 @DomName('Document.domain') | 6280 @DomName('Document.domain') |
| 6254 @DocsEditable | 6281 @DocsEditable |
| 6255 final String domain; | 6282 final String domain; |
| 6256 | 6283 |
| 6284 @DomName('Document.firstElementChild') | |
| 6285 @DocsEditable | |
| 6286 @Experimental // untriaged | |
| 6287 final Element firstElementChild; | |
| 6288 | |
| 6257 @DomName('Document.fontloader') | 6289 @DomName('Document.fontloader') |
| 6258 @DocsEditable | 6290 @DocsEditable |
| 6259 // http://www.w3.org/TR/css3-fonts/#document-fontloader | 6291 // http://www.w3.org/TR/css3-fonts/#document-fontloader |
| 6260 @Experimental | 6292 @Experimental |
| 6261 final FontLoader fontloader; | 6293 final FontLoader fontloader; |
| 6262 | 6294 |
| 6263 @JSName('head') | 6295 @JSName('head') |
| 6264 /// Moved to [HtmlDocument]. | 6296 /// Moved to [HtmlDocument]. |
| 6265 @DomName('Document.head') | 6297 @DomName('Document.head') |
| 6266 @DocsEditable | 6298 @DocsEditable |
| 6267 final HeadElement $dom_head; | 6299 final HeadElement $dom_head; |
| 6268 | 6300 |
| 6269 @DomName('Document.implementation') | 6301 @DomName('Document.implementation') |
| 6270 @DocsEditable | 6302 @DocsEditable |
| 6271 final DomImplementation implementation; | 6303 final DomImplementation implementation; |
| 6272 | 6304 |
| 6305 @DomName('Document.lastElementChild') | |
| 6306 @DocsEditable | |
| 6307 @Experimental // untriaged | |
| 6308 final Element lastElementChild; | |
| 6309 | |
| 6273 @JSName('lastModified') | 6310 @JSName('lastModified') |
| 6274 /// Moved to [HtmlDocument]. | 6311 /// Moved to [HtmlDocument]. |
| 6275 @DomName('Document.lastModified') | 6312 @DomName('Document.lastModified') |
| 6276 @DocsEditable | 6313 @DocsEditable |
| 6277 final String $dom_lastModified; | 6314 final String $dom_lastModified; |
| 6278 | 6315 |
| 6279 @JSName('preferredStylesheetSet') | 6316 @JSName('preferredStylesheetSet') |
| 6280 @DomName('Document.preferredStylesheetSet') | 6317 @DomName('Document.preferredStylesheetSet') |
| 6281 @DocsEditable | 6318 @DocsEditable |
| 6282 final String $dom_preferredStylesheetSet; | 6319 final String $dom_preferredStylesheetSet; |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6851 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); | 6888 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); |
| 6852 } | 6889 } |
| 6853 } | 6890 } |
| 6854 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 6891 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 6855 // for details. All rights reserved. Use of this source code is governed by a | 6892 // for details. All rights reserved. Use of this source code is governed by a |
| 6856 // BSD-style license that can be found in the LICENSE file. | 6893 // BSD-style license that can be found in the LICENSE file. |
| 6857 | 6894 |
| 6858 | 6895 |
| 6859 @DomName('DocumentFragment') | 6896 @DomName('DocumentFragment') |
| 6860 class DocumentFragment extends Node native "DocumentFragment" { | 6897 class DocumentFragment extends Node native "DocumentFragment" { |
| 6861 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF ragment(); | |
| 6862 | |
| 6863 factory DocumentFragment.html(String html) => | 6898 factory DocumentFragment.html(String html) => |
| 6864 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); | 6899 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); |
| 6865 | 6900 |
| 6866 factory DocumentFragment.svg(String svgContent) => | 6901 factory DocumentFragment.svg(String svgContent) => |
| 6867 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent); | 6902 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent); |
| 6868 | 6903 |
| 6869 // Native field is used only by Dart code so does not lead to instantiation | 6904 // Native field is used only by Dart code so does not lead to instantiation |
| 6870 // of native classes | 6905 // of native classes |
| 6871 @Creates('Null') | 6906 @Creates('Null') |
| 6872 List<Element> _children; | 6907 List<Element> _children; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6921 | 6956 |
| 6922 /** | 6957 /** |
| 6923 * Parses the specified text as HTML and adds the resulting node after the | 6958 * Parses the specified text as HTML and adds the resulting node after the |
| 6924 * last child of this document fragment. | 6959 * last child of this document fragment. |
| 6925 */ | 6960 */ |
| 6926 void appendHtml(String text) { | 6961 void appendHtml(String text) { |
| 6927 this.append(new DocumentFragment.html(text)); | 6962 this.append(new DocumentFragment.html(text)); |
| 6928 } | 6963 } |
| 6929 | 6964 |
| 6930 | 6965 |
| 6966 @DomName('DocumentFragment.DocumentFragment') | |
| 6967 @DocsEditable | |
| 6968 factory DocumentFragment() { | |
| 6969 return DocumentFragment._create_1(); | |
| 6970 } | |
| 6971 static DocumentFragment _create_1() => JS('DocumentFragment', 'new DocumentFra gment()'); | |
| 6972 | |
| 6973 @DomName('DocumentFragment.childElementCount') | |
| 6974 @DocsEditable | |
| 6975 @Experimental // untriaged | |
| 6976 final int childElementCount; | |
| 6977 | |
| 6978 @DomName('DocumentFragment.firstElementChild') | |
| 6979 @DocsEditable | |
| 6980 @Experimental // untriaged | |
| 6981 final Element firstElementChild; | |
| 6982 | |
| 6983 @DomName('DocumentFragment.lastElementChild') | |
| 6984 @DocsEditable | |
| 6985 @Experimental // untriaged | |
| 6986 final Element lastElementChild; | |
| 6987 | |
| 6931 @JSName('querySelector') | 6988 @JSName('querySelector') |
| 6932 @DomName('DocumentFragment.querySelector') | 6989 @DomName('DocumentFragment.querySelector') |
| 6933 @DocsEditable | 6990 @DocsEditable |
| 6934 Element $dom_querySelector(String selectors) native; | 6991 Element $dom_querySelector(String selectors) native; |
| 6935 | 6992 |
| 6936 @JSName('querySelectorAll') | 6993 @JSName('querySelectorAll') |
| 6937 @DomName('DocumentFragment.querySelectorAll') | 6994 @DomName('DocumentFragment.querySelectorAll') |
| 6938 @DocsEditable | 6995 @DocsEditable |
| 6939 @Returns('NodeList') | 6996 @Returns('NodeList') |
| 6940 @Creates('NodeList') | 6997 @Creates('NodeList') |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7073 // BSD-style license that can be found in the LICENSE file. | 7130 // BSD-style license that can be found in the LICENSE file. |
| 7074 | 7131 |
| 7075 | 7132 |
| 7076 @DocsEditable | 7133 @DocsEditable |
| 7077 @DomName('DOMSettableTokenList') | 7134 @DomName('DOMSettableTokenList') |
| 7078 class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" { | 7135 class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" { |
| 7079 | 7136 |
| 7080 @DomName('DOMSettableTokenList.value') | 7137 @DomName('DOMSettableTokenList.value') |
| 7081 @DocsEditable | 7138 @DocsEditable |
| 7082 String value; | 7139 String value; |
| 7140 | |
| 7141 @JSName('None') | |
| 7142 @DomName('DOMSettableTokenList') | |
| 7143 String item(int index) native; | |
| 7083 } | 7144 } |
| 7084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7085 // for details. All rights reserved. Use of this source code is governed by a | 7146 // for details. All rights reserved. Use of this source code is governed by a |
| 7086 // BSD-style license that can be found in the LICENSE file. | 7147 // BSD-style license that can be found in the LICENSE file. |
| 7087 | 7148 |
| 7088 | 7149 |
| 7089 @DocsEditable | 7150 @DocsEditable |
| 7090 @DomName('DOMStringList') | 7151 @DomName('DOMStringList') |
| 7091 class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix in<String> implements JavaScriptIndexingBehavior, List<String> native "DOMString List" { | 7152 class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix in<String> implements JavaScriptIndexingBehavior, List<String> native "DOMString List" { |
| 7092 | 7153 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7146 @DocsEditable | 7207 @DocsEditable |
| 7147 String item(int index) native; | 7208 String item(int index) native; |
| 7148 } | 7209 } |
| 7149 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7150 // for details. All rights reserved. Use of this source code is governed by a | 7211 // for details. All rights reserved. Use of this source code is governed by a |
| 7151 // BSD-style license that can be found in the LICENSE file. | 7212 // BSD-style license that can be found in the LICENSE file. |
| 7152 | 7213 |
| 7153 | 7214 |
| 7154 @DomName('DOMStringMap') | 7215 @DomName('DOMStringMap') |
| 7155 abstract class DomStringMap { | 7216 abstract class DomStringMap { |
| 7217 | |
| 7218 String None(String name); | |
|
Anton Muhin
2013/06/03 07:52:14
this one looks weird: apparently we've got None as
vsm
2013/06/03 14:47:41
Good catch. The IDL has dropped the name for this
| |
| 7156 } | 7219 } |
| 7157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7158 // for details. All rights reserved. Use of this source code is governed by a | 7221 // for details. All rights reserved. Use of this source code is governed by a |
| 7159 // BSD-style license that can be found in the LICENSE file. | 7222 // BSD-style license that can be found in the LICENSE file. |
| 7160 | 7223 |
| 7161 | 7224 |
| 7162 @DocsEditable | 7225 @DocsEditable |
| 7163 @DomName('DOMTokenList') | 7226 @DomName('DOMTokenList') |
| 7164 class DomTokenList native "DOMTokenList" { | 7227 class DomTokenList native "DOMTokenList" { |
| 7165 | 7228 |
| (...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8293 static const EventStreamProvider<Event> fullscreenChangeEvent = const EventStr eamProvider<Event>('webkitfullscreenchange'); | 8356 static const EventStreamProvider<Event> fullscreenChangeEvent = const EventStr eamProvider<Event>('webkitfullscreenchange'); |
| 8294 | 8357 |
| 8295 @DomName('Element.webkitfullscreenerrorEvent') | 8358 @DomName('Element.webkitfullscreenerrorEvent') |
| 8296 @DocsEditable | 8359 @DocsEditable |
| 8297 @SupportedBrowser(SupportedBrowser.CHROME) | 8360 @SupportedBrowser(SupportedBrowser.CHROME) |
| 8298 @SupportedBrowser(SupportedBrowser.SAFARI) | 8361 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 8299 @Experimental | 8362 @Experimental |
| 8300 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 8363 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 8301 static const EventStreamProvider<Event> fullscreenErrorEvent = const EventStre amProvider<Event>('webkitfullscreenerror'); | 8364 static const EventStreamProvider<Event> fullscreenErrorEvent = const EventStre amProvider<Event>('webkitfullscreenerror'); |
| 8302 | 8365 |
| 8303 @JSName('children') | |
| 8304 @DomName('Element.children') | |
| 8305 @DocsEditable | |
| 8306 final HtmlCollection $dom_children; | |
| 8307 | |
| 8308 @DomName('Element.contentEditable') | 8366 @DomName('Element.contentEditable') |
| 8309 @DocsEditable | 8367 @DocsEditable |
| 8310 String contentEditable; | 8368 String contentEditable; |
| 8311 | 8369 |
| 8312 @DomName('Element.dir') | 8370 @DomName('Element.dir') |
| 8313 @DocsEditable | 8371 @DocsEditable |
| 8314 String dir; | 8372 String dir; |
| 8315 | 8373 |
| 8316 @DomName('Element.draggable') | 8374 @DomName('Element.draggable') |
| 8317 @DocsEditable | 8375 @DocsEditable |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8369 @SupportedBrowser(SupportedBrowser.CHROME) | 8427 @SupportedBrowser(SupportedBrowser.CHROME) |
| 8370 @SupportedBrowser(SupportedBrowser.SAFARI) | 8428 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 8371 @Experimental | 8429 @Experimental |
| 8372 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-dr opzone-attribute | 8430 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-dr opzone-attribute |
| 8373 String dropzone; | 8431 String dropzone; |
| 8374 | 8432 |
| 8375 @DomName('Element.click') | 8433 @DomName('Element.click') |
| 8376 @DocsEditable | 8434 @DocsEditable |
| 8377 void click() native; | 8435 void click() native; |
| 8378 | 8436 |
| 8437 @DomName('Element.getInputContext') | |
| 8438 @DocsEditable | |
| 8439 @Experimental // untriaged | |
| 8440 InputMethodContext getInputContext() native; | |
| 8441 | |
| 8379 @DomName('Element.ALLOW_KEYBOARD_INPUT') | 8442 @DomName('Element.ALLOW_KEYBOARD_INPUT') |
| 8380 @DocsEditable | 8443 @DocsEditable |
| 8381 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-element-re questfullscreen | 8444 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-element-re questfullscreen |
| 8382 @deprecated // deprecated | 8445 @deprecated // deprecated |
| 8383 static const int ALLOW_KEYBOARD_INPUT = 1; | 8446 static const int ALLOW_KEYBOARD_INPUT = 1; |
| 8384 | 8447 |
| 8385 @JSName('attributes') | 8448 @JSName('attributes') |
| 8386 @DomName('Element.attributes') | 8449 @DomName('Element.attributes') |
| 8387 @DocsEditable | 8450 @DocsEditable |
| 8388 final _NamedNodeMap $dom_attributes; | 8451 final _NamedNodeMap $dom_attributes; |
| 8389 | 8452 |
| 8390 @JSName('childElementCount') | 8453 @JSName('childElementCount') |
| 8391 @DomName('Element.childElementCount') | 8454 @DomName('Element.childElementCount') |
| 8392 @DocsEditable | 8455 @DocsEditable |
| 8393 final int $dom_childElementCount; | 8456 final int $dom_childElementCount; |
| 8394 | 8457 |
| 8458 @JSName('children') | |
| 8459 @DomName('Element.children') | |
| 8460 @DocsEditable | |
| 8461 final HtmlCollection $dom_children; | |
| 8462 | |
| 8395 @JSName('className') | 8463 @JSName('className') |
| 8396 @DomName('Element.className') | 8464 @DomName('Element.className') |
| 8397 @DocsEditable | 8465 @DocsEditable |
| 8398 String $dom_className; | 8466 String $dom_className; |
| 8399 | 8467 |
| 8400 @DomName('Element.clientHeight') | 8468 @DomName('Element.clientHeight') |
| 8401 @DocsEditable | 8469 @DocsEditable |
| 8402 final int clientHeight; | 8470 final int clientHeight; |
| 8403 | 8471 |
| 8404 @DomName('Element.clientLeft') | 8472 @DomName('Element.clientLeft') |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9096 String type; | 9164 String type; |
| 9097 | 9165 |
| 9098 @DomName('HTMLEmbedElement.width') | 9166 @DomName('HTMLEmbedElement.width') |
| 9099 @DocsEditable | 9167 @DocsEditable |
| 9100 String width; | 9168 String width; |
| 9101 } | 9169 } |
| 9102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9170 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9103 // for details. All rights reserved. Use of this source code is governed by a | 9171 // for details. All rights reserved. Use of this source code is governed by a |
| 9104 // BSD-style license that can be found in the LICENSE file. | 9172 // BSD-style license that can be found in the LICENSE file. |
| 9105 | 9173 |
| 9174 | |
| 9175 @DocsEditable | |
| 9176 @DomName('Entity') | |
| 9177 @Experimental // untriaged | |
| 9178 class Entity extends Node native "Entity" { | |
| 9179 | |
| 9180 @DomName('Entity.notationName') | |
| 9181 @DocsEditable | |
| 9182 @Experimental // untriaged | |
| 9183 final String notationName; | |
| 9184 | |
| 9185 @DomName('Entity.publicId') | |
| 9186 @DocsEditable | |
| 9187 @Experimental // untriaged | |
| 9188 final String publicId; | |
| 9189 | |
| 9190 @DomName('Entity.systemId') | |
| 9191 @DocsEditable | |
| 9192 @Experimental // untriaged | |
| 9193 final String systemId; | |
| 9194 } | |
| 9195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 9196 // for details. All rights reserved. Use of this source code is governed by a | |
| 9197 // BSD-style license that can be found in the LICENSE file. | |
| 9198 | |
| 9106 // WARNING: Do not edit - generated code. | 9199 // WARNING: Do not edit - generated code. |
| 9107 | 9200 |
| 9108 | 9201 |
| 9109 @DomName('EntriesCallback') | 9202 @DomName('EntriesCallback') |
| 9110 // http://www.w3.org/TR/file-system-api/#the-entriescallback-interface | 9203 // http://www.w3.org/TR/file-system-api/#the-entriescallback-interface |
| 9111 @Experimental | 9204 @Experimental |
| 9112 typedef void _EntriesCallback(List<Entry> entries); | 9205 typedef void _EntriesCallback(List<Entry> entries); |
| 9113 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9114 // for details. All rights reserved. Use of this source code is governed by a | 9207 // for details. All rights reserved. Use of this source code is governed by a |
| 9115 // BSD-style license that can be found in the LICENSE file. | 9208 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9473 | 9566 |
| 9474 @DomName('Event.type') | 9567 @DomName('Event.type') |
| 9475 @DocsEditable | 9568 @DocsEditable |
| 9476 final String type; | 9569 final String type; |
| 9477 | 9570 |
| 9478 @JSName('initEvent') | 9571 @JSName('initEvent') |
| 9479 @DomName('Event.initEvent') | 9572 @DomName('Event.initEvent') |
| 9480 @DocsEditable | 9573 @DocsEditable |
| 9481 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ) native; | 9574 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ) native; |
| 9482 | 9575 |
| 9576 @DomName('Event.path') | |
| 9577 @DocsEditable | |
| 9578 @Experimental // untriaged | |
| 9579 @Returns('NodeList') | |
| 9580 @Creates('NodeList') | |
| 9581 List<Node> path() native; | |
| 9582 | |
| 9483 @DomName('Event.preventDefault') | 9583 @DomName('Event.preventDefault') |
| 9484 @DocsEditable | 9584 @DocsEditable |
| 9485 void preventDefault() native; | 9585 void preventDefault() native; |
| 9486 | 9586 |
| 9487 @DomName('Event.stopImmediatePropagation') | 9587 @DomName('Event.stopImmediatePropagation') |
| 9488 @DocsEditable | 9588 @DocsEditable |
| 9489 void stopImmediatePropagation() native; | 9589 void stopImmediatePropagation() native; |
| 9490 | 9590 |
| 9491 @DomName('Event.stopPropagation') | 9591 @DomName('Event.stopPropagation') |
| 9492 @DocsEditable | 9592 @DocsEditable |
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10437 // for details. All rights reserved. Use of this source code is governed by a | 10537 // for details. All rights reserved. Use of this source code is governed by a |
| 10438 // BSD-style license that can be found in the LICENSE file. | 10538 // BSD-style license that can be found in the LICENSE file. |
| 10439 | 10539 |
| 10440 | 10540 |
| 10441 @DocsEditable | 10541 @DocsEditable |
| 10442 @DomName('FormData') | 10542 @DomName('FormData') |
| 10443 @SupportedBrowser(SupportedBrowser.CHROME) | 10543 @SupportedBrowser(SupportedBrowser.CHROME) |
| 10444 @SupportedBrowser(SupportedBrowser.FIREFOX) | 10544 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 10445 @SupportedBrowser(SupportedBrowser.IE, '10') | 10545 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 10446 @SupportedBrowser(SupportedBrowser.SAFARI) | 10546 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 10547 @Experimental // untriaged | |
| 10447 class FormData native "FormData" { | 10548 class FormData native "FormData" { |
| 10448 | 10549 |
| 10449 @DomName('FormData.DOMFormData') | 10550 @DomName('FormData.FormData') |
| 10450 @DocsEditable | 10551 @DocsEditable |
| 10451 factory FormData([FormElement form]) { | 10552 factory FormData([FormElement form]) { |
| 10452 if (?form) { | 10553 if (?form) { |
| 10453 return FormData._create_1(form); | 10554 return FormData._create_1(form); |
| 10454 } | 10555 } |
| 10455 return FormData._create_2(); | 10556 return FormData._create_2(); |
| 10456 } | 10557 } |
| 10457 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); | 10558 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); |
| 10458 static FormData _create_2() => JS('FormData', 'new FormData()'); | 10559 static FormData _create_2() => JS('FormData', 'new FormData()'); |
| 10459 | 10560 |
| 10460 /// Checks if this type is supported on the current platform. | 10561 /// Checks if this type is supported on the current platform. |
| 10461 static bool get supported => JS('bool', '!!(window.FormData)'); | 10562 static bool get supported => JS('bool', '!!(window.FormData)'); |
| 10462 | 10563 |
| 10463 @DomName('FormData.append') | 10564 @DomName('FormData.append') |
| 10464 @DocsEditable | 10565 @DocsEditable |
| 10566 @Experimental // untriaged | |
| 10465 void append(String name, value, [String filename]) native; | 10567 void append(String name, value, [String filename]) native; |
| 10466 } | 10568 } |
| 10467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10569 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10468 // for details. All rights reserved. Use of this source code is governed by a | 10570 // for details. All rights reserved. Use of this source code is governed by a |
| 10469 // BSD-style license that can be found in the LICENSE file. | 10571 // BSD-style license that can be found in the LICENSE file. |
| 10470 | 10572 |
| 10471 | 10573 |
| 10472 @DocsEditable | 10574 @DocsEditable |
| 10473 @DomName('HTMLFormElement') | 10575 @DomName('HTMLFormElement') |
| 10474 class FormElement extends Element native "HTMLFormElement" { | 10576 class FormElement extends Element native "HTMLFormElement" { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10524 String name; | 10626 String name; |
| 10525 | 10627 |
| 10526 @DomName('HTMLFormElement.noValidate') | 10628 @DomName('HTMLFormElement.noValidate') |
| 10527 @DocsEditable | 10629 @DocsEditable |
| 10528 bool noValidate; | 10630 bool noValidate; |
| 10529 | 10631 |
| 10530 @DomName('HTMLFormElement.target') | 10632 @DomName('HTMLFormElement.target') |
| 10531 @DocsEditable | 10633 @DocsEditable |
| 10532 String target; | 10634 String target; |
| 10533 | 10635 |
| 10636 @JSName('None') | |
| 10637 @DomName('HTMLFormElement') | |
| 10638 Node item(int index) native; | |
| 10639 | |
| 10534 @DomName('HTMLFormElement.checkValidity') | 10640 @DomName('HTMLFormElement.checkValidity') |
| 10535 @DocsEditable | 10641 @DocsEditable |
| 10536 bool checkValidity() native; | 10642 bool checkValidity() native; |
| 10537 | 10643 |
| 10538 @DomName('HTMLFormElement.requestAutocomplete') | 10644 @DomName('HTMLFormElement.requestAutocomplete') |
| 10539 @DocsEditable | 10645 @DocsEditable |
| 10540 // http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.htm l | 10646 // http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.htm l |
| 10541 @Experimental | 10647 @Experimental |
| 10542 void requestAutocomplete() native; | 10648 void requestAutocomplete() native; |
| 10543 | 10649 |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 11204 } | 11310 } |
| 11205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11311 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11206 // for details. All rights reserved. Use of this source code is governed by a | 11312 // for details. All rights reserved. Use of this source code is governed by a |
| 11207 // BSD-style license that can be found in the LICENSE file. | 11313 // BSD-style license that can be found in the LICENSE file. |
| 11208 | 11314 |
| 11209 | 11315 |
| 11210 @DocsEditable | 11316 @DocsEditable |
| 11211 @DomName('HTMLFormControlsCollection') | 11317 @DomName('HTMLFormControlsCollection') |
| 11212 class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls Collection" { | 11318 class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls Collection" { |
| 11213 | 11319 |
| 11320 @JSName('None') | |
| 11321 @DomName('HTMLFormControlsCollection') | |
| 11322 Node item(int index) native; | |
| 11323 | |
| 11214 @DomName('HTMLFormControlsCollection.namedItem') | 11324 @DomName('HTMLFormControlsCollection.namedItem') |
| 11215 @DocsEditable | 11325 @DocsEditable |
| 11216 Node namedItem(String name) native; | 11326 Node namedItem(String name) native; |
| 11217 } | 11327 } |
| 11218 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11328 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11219 // for details. All rights reserved. Use of this source code is governed by a | 11329 // for details. All rights reserved. Use of this source code is governed by a |
| 11220 // BSD-style license that can be found in the LICENSE file. | 11330 // BSD-style license that can be found in the LICENSE file. |
| 11221 | 11331 |
| 11222 | 11332 |
| 11223 @DocsEditable | 11333 @DocsEditable |
| (...skipping 2429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 13653 final num initialTime; | 13763 final num initialTime; |
| 13654 | 13764 |
| 13655 @DomName('HTMLMediaElement.loop') | 13765 @DomName('HTMLMediaElement.loop') |
| 13656 @DocsEditable | 13766 @DocsEditable |
| 13657 bool loop; | 13767 bool loop; |
| 13658 | 13768 |
| 13659 @DomName('HTMLMediaElement.mediaGroup') | 13769 @DomName('HTMLMediaElement.mediaGroup') |
| 13660 @DocsEditable | 13770 @DocsEditable |
| 13661 String mediaGroup; | 13771 String mediaGroup; |
| 13662 | 13772 |
| 13773 @DomName('HTMLMediaElement.mediaKeys') | |
| 13774 @DocsEditable | |
| 13775 @Experimental // untriaged | |
| 13776 MediaKeys mediaKeys; | |
| 13777 | |
| 13663 @DomName('HTMLMediaElement.muted') | 13778 @DomName('HTMLMediaElement.muted') |
| 13664 @DocsEditable | 13779 @DocsEditable |
| 13665 bool muted; | 13780 bool muted; |
| 13666 | 13781 |
| 13667 @DomName('HTMLMediaElement.networkState') | 13782 @DomName('HTMLMediaElement.networkState') |
| 13668 @DocsEditable | 13783 @DocsEditable |
| 13669 final int networkState; | 13784 final int networkState; |
| 13670 | 13785 |
| 13671 @DomName('HTMLMediaElement.paused') | 13786 @DomName('HTMLMediaElement.paused') |
| 13672 @DocsEditable | 13787 @DocsEditable |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 13986 @DocsEditable | 14101 @DocsEditable |
| 13987 static const int MEDIA_KEYERR_SERVICE = 3; | 14102 static const int MEDIA_KEYERR_SERVICE = 3; |
| 13988 | 14103 |
| 13989 @DomName('MediaKeyError.MEDIA_KEYERR_UNKNOWN') | 14104 @DomName('MediaKeyError.MEDIA_KEYERR_UNKNOWN') |
| 13990 @DocsEditable | 14105 @DocsEditable |
| 13991 static const int MEDIA_KEYERR_UNKNOWN = 1; | 14106 static const int MEDIA_KEYERR_UNKNOWN = 1; |
| 13992 | 14107 |
| 13993 @DomName('MediaKeyError.code') | 14108 @DomName('MediaKeyError.code') |
| 13994 @DocsEditable | 14109 @DocsEditable |
| 13995 final int code; | 14110 final int code; |
| 14111 | |
| 14112 @DomName('MediaKeyError.systemCode') | |
| 14113 @DocsEditable | |
| 14114 @Experimental // untriaged | |
| 14115 final int systemCode; | |
| 13996 } | 14116 } |
| 13997 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13998 // for details. All rights reserved. Use of this source code is governed by a | 14118 // for details. All rights reserved. Use of this source code is governed by a |
| 13999 // BSD-style license that can be found in the LICENSE file. | 14119 // BSD-style license that can be found in the LICENSE file. |
| 14000 | 14120 |
| 14001 | 14121 |
| 14002 @DocsEditable | 14122 @DocsEditable |
| 14003 @DomName('MediaKeyEvent') | 14123 @DomName('MediaKeyEvent') |
| 14004 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#event-definitions | 14124 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted -media.html#event-definitions |
| 14005 @Experimental | 14125 @Experimental |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 14033 @DomName('MediaKeyEvent.systemCode') | 14153 @DomName('MediaKeyEvent.systemCode') |
| 14034 @DocsEditable | 14154 @DocsEditable |
| 14035 final int systemCode; | 14155 final int systemCode; |
| 14036 } | 14156 } |
| 14037 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14038 // for details. All rights reserved. Use of this source code is governed by a | 14158 // for details. All rights reserved. Use of this source code is governed by a |
| 14039 // BSD-style license that can be found in the LICENSE file. | 14159 // BSD-style license that can be found in the LICENSE file. |
| 14040 | 14160 |
| 14041 | 14161 |
| 14042 @DocsEditable | 14162 @DocsEditable |
| 14163 @DomName('MediaKeyMessageEvent') | |
| 14164 @Experimental // untriaged | |
| 14165 class MediaKeyMessageEvent extends Event native "MediaKeyMessageEvent" { | |
| 14166 | |
| 14167 @JSName('destinationURL') | |
| 14168 @DomName('MediaKeyMessageEvent.destinationURL') | |
| 14169 @DocsEditable | |
| 14170 @Experimental // untriaged | |
| 14171 final String destinationUrl; | |
| 14172 | |
| 14173 @DomName('MediaKeyMessageEvent.message') | |
| 14174 @DocsEditable | |
| 14175 @Experimental // untriaged | |
| 14176 final Uint8List message; | |
| 14177 } | |
| 14178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14179 // for details. All rights reserved. Use of this source code is governed by a | |
| 14180 // BSD-style license that can be found in the LICENSE file. | |
| 14181 | |
| 14182 | |
| 14183 @DocsEditable | |
| 14184 @DomName('MediaKeyNeededEvent') | |
| 14185 @Experimental // untriaged | |
| 14186 class MediaKeyNeededEvent extends Event native "MediaKeyNeededEvent" { | |
| 14187 | |
| 14188 @DomName('MediaKeyNeededEvent.initData') | |
| 14189 @DocsEditable | |
| 14190 @Experimental // untriaged | |
| 14191 final Uint8List initData; | |
| 14192 } | |
| 14193 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14194 // for details. All rights reserved. Use of this source code is governed by a | |
| 14195 // BSD-style license that can be found in the LICENSE file. | |
| 14196 | |
| 14197 | |
| 14198 @DocsEditable | |
| 14199 @DomName('MediaKeySession') | |
| 14200 @Experimental // untriaged | |
| 14201 class MediaKeySession extends EventTarget native "MediaKeySession" { | |
| 14202 | |
| 14203 @DomName('MediaKeySession.error') | |
| 14204 @DocsEditable | |
| 14205 @Experimental // untriaged | |
| 14206 final MediaKeyError error; | |
| 14207 | |
| 14208 @DomName('MediaKeySession.keySystem') | |
| 14209 @DocsEditable | |
| 14210 @Experimental // untriaged | |
| 14211 final String keySystem; | |
| 14212 | |
| 14213 @DomName('MediaKeySession.sessionId') | |
| 14214 @DocsEditable | |
| 14215 @Experimental // untriaged | |
| 14216 final String sessionId; | |
| 14217 | |
| 14218 @JSName('addEventListener') | |
| 14219 @DomName('MediaKeySession.addEventListener') | |
| 14220 @DocsEditable | |
| 14221 @Experimental // untriaged | |
| 14222 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; | |
| 14223 | |
| 14224 @DomName('MediaKeySession.close') | |
| 14225 @DocsEditable | |
| 14226 @Experimental // untriaged | |
| 14227 void close() native; | |
| 14228 | |
| 14229 @DomName('MediaKeySession.dispatchEvent') | |
| 14230 @DocsEditable | |
| 14231 @Experimental // untriaged | |
| 14232 bool dispatchEvent(Event evt) native; | |
| 14233 | |
| 14234 @JSName('removeEventListener') | |
| 14235 @DomName('MediaKeySession.removeEventListener') | |
| 14236 @DocsEditable | |
| 14237 @Experimental // untriaged | |
| 14238 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; | |
| 14239 | |
| 14240 @DomName('MediaKeySession.update') | |
| 14241 @DocsEditable | |
| 14242 @Experimental // untriaged | |
| 14243 void update(Uint8List key) native; | |
| 14244 } | |
| 14245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14246 // for details. All rights reserved. Use of this source code is governed by a | |
| 14247 // BSD-style license that can be found in the LICENSE file. | |
| 14248 | |
| 14249 | |
| 14250 @DocsEditable | |
| 14251 @DomName('MediaKeys') | |
| 14252 @Experimental // untriaged | |
| 14253 class MediaKeys native "MediaKeys" { | |
| 14254 | |
| 14255 @DomName('MediaKeys.MediaKeys') | |
| 14256 @DocsEditable | |
| 14257 factory MediaKeys(String keySystem) { | |
| 14258 return MediaKeys._create_1(keySystem); | |
| 14259 } | |
| 14260 static MediaKeys _create_1(keySystem) => JS('MediaKeys', 'new MediaKeys(#)', k eySystem); | |
| 14261 | |
| 14262 @DomName('MediaKeys.keySystem') | |
| 14263 @DocsEditable | |
| 14264 @Experimental // untriaged | |
| 14265 final String keySystem; | |
| 14266 | |
| 14267 @DomName('MediaKeys.createSession') | |
| 14268 @DocsEditable | |
| 14269 @Experimental // untriaged | |
| 14270 MediaKeySession createSession(String type, Uint8List initData) native; | |
| 14271 } | |
| 14272 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14273 // for details. All rights reserved. Use of this source code is governed by a | |
| 14274 // BSD-style license that can be found in the LICENSE file. | |
| 14275 | |
| 14276 | |
| 14277 @DocsEditable | |
| 14043 @DomName('MediaList') | 14278 @DomName('MediaList') |
| 14044 @Unstable | 14279 @Unstable |
| 14045 class MediaList native "MediaList" { | 14280 class MediaList native "MediaList" { |
| 14046 | 14281 |
| 14047 @DomName('MediaList.length') | 14282 @DomName('MediaList.length') |
| 14048 @DocsEditable | 14283 @DocsEditable |
| 14049 final int length; | 14284 final int length; |
| 14050 | 14285 |
| 14051 @DomName('MediaList.mediaText') | 14286 @DomName('MediaList.mediaText') |
| 14052 @DocsEditable | 14287 @DocsEditable |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 14100 abstract class MediaQueryListListener { | 14335 abstract class MediaQueryListListener { |
| 14101 | 14336 |
| 14102 void queryChanged(MediaQueryList list); | 14337 void queryChanged(MediaQueryList list); |
| 14103 } | 14338 } |
| 14104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14339 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14105 // for details. All rights reserved. Use of this source code is governed by a | 14340 // for details. All rights reserved. Use of this source code is governed by a |
| 14106 // BSD-style license that can be found in the LICENSE file. | 14341 // BSD-style license that can be found in the LICENSE file. |
| 14107 | 14342 |
| 14108 | 14343 |
| 14109 @DocsEditable | 14344 @DocsEditable |
| 14110 @DomName('MediaSource') | 14345 @DomName('WebKitMediaSource') |
| 14111 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #mediasource | 14346 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14347 @SupportedBrowser(SupportedBrowser.SAFARI) | |
| 14112 @Experimental | 14348 @Experimental |
| 14113 class MediaSource extends EventTarget native "MediaSource" { | 14349 @Experimental // untriaged |
| 14350 class MediaSource extends EventTarget native "WebKitMediaSource" { | |
| 14114 | 14351 |
| 14115 @DomName('MediaSource.MediaSource') | 14352 @DomName('WebKitMediaSource.WebKitMediaSource') |
| 14116 @DocsEditable | 14353 @DocsEditable |
| 14117 factory MediaSource() { | 14354 factory MediaSource() { |
| 14118 return MediaSource._create_1(); | 14355 return MediaSource._create_1(); |
| 14119 } | 14356 } |
| 14120 static MediaSource _create_1() => JS('MediaSource', 'new MediaSource()'); | 14357 static MediaSource _create_1() => JS('MediaSource', 'new WebKitMediaSource()') ; |
| 14121 | 14358 |
| 14122 @DomName('MediaSource.activeSourceBuffers') | 14359 @DomName('WebKitMediaSource.activeSourceBuffers') |
| 14123 @DocsEditable | 14360 @DocsEditable |
| 14361 @Experimental // untriaged | |
| 14124 final SourceBufferList activeSourceBuffers; | 14362 final SourceBufferList activeSourceBuffers; |
| 14125 | 14363 |
| 14126 @DomName('MediaSource.duration') | 14364 @DomName('WebKitMediaSource.duration') |
| 14127 @DocsEditable | 14365 @DocsEditable |
| 14366 @Experimental // untriaged | |
| 14128 num duration; | 14367 num duration; |
| 14129 | 14368 |
| 14130 @DomName('MediaSource.readyState') | 14369 @DomName('WebKitMediaSource.readyState') |
| 14131 @DocsEditable | 14370 @DocsEditable |
| 14371 @Experimental // untriaged | |
| 14132 final String readyState; | 14372 final String readyState; |
| 14133 | 14373 |
| 14134 @DomName('MediaSource.sourceBuffers') | 14374 @DomName('WebKitMediaSource.sourceBuffers') |
| 14135 @DocsEditable | 14375 @DocsEditable |
| 14376 @Experimental // untriaged | |
| 14136 final SourceBufferList sourceBuffers; | 14377 final SourceBufferList sourceBuffers; |
| 14137 | 14378 |
| 14138 @JSName('addEventListener') | 14379 @JSName('addEventListener') |
| 14139 @DomName('MediaSource.addEventListener') | 14380 @DomName('WebKitMediaSource.addEventListener') |
| 14140 @DocsEditable | 14381 @DocsEditable |
| 14382 @Experimental // untriaged | |
| 14141 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; | 14383 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; |
| 14142 | 14384 |
| 14143 @DomName('MediaSource.addSourceBuffer') | 14385 @DomName('WebKitMediaSource.addSourceBuffer') |
| 14144 @DocsEditable | 14386 @DocsEditable |
| 14387 @Experimental // untriaged | |
| 14145 SourceBuffer addSourceBuffer(String type) native; | 14388 SourceBuffer addSourceBuffer(String type) native; |
| 14146 | 14389 |
| 14147 @DomName('MediaSource.dispatchEvent') | 14390 @DomName('WebKitMediaSource.dispatchEvent') |
| 14148 @DocsEditable | 14391 @DocsEditable |
| 14392 @Experimental // untriaged | |
| 14149 bool dispatchEvent(Event event) native; | 14393 bool dispatchEvent(Event event) native; |
| 14150 | 14394 |
| 14151 @DomName('MediaSource.endOfStream') | 14395 @DomName('WebKitMediaSource.endOfStream') |
| 14152 @DocsEditable | 14396 @DocsEditable |
| 14397 @Experimental // untriaged | |
| 14153 void endOfStream(String error) native; | 14398 void endOfStream(String error) native; |
| 14154 | 14399 |
| 14155 @DomName('MediaSource.isTypeSupported') | 14400 @DomName('WebKitMediaSource.isTypeSupported') |
| 14156 @DocsEditable | 14401 @DocsEditable |
| 14402 @Experimental // untriaged | |
| 14157 static bool isTypeSupported(String type) native; | 14403 static bool isTypeSupported(String type) native; |
| 14158 | 14404 |
| 14159 @JSName('removeEventListener') | 14405 @JSName('removeEventListener') |
| 14160 @DomName('MediaSource.removeEventListener') | 14406 @DomName('WebKitMediaSource.removeEventListener') |
| 14161 @DocsEditable | 14407 @DocsEditable |
| 14408 @Experimental // untriaged | |
| 14162 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; | 14409 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; |
| 14163 | 14410 |
| 14164 @DomName('MediaSource.removeSourceBuffer') | 14411 @DomName('WebKitMediaSource.removeSourceBuffer') |
| 14165 @DocsEditable | 14412 @DocsEditable |
| 14413 @Experimental // untriaged | |
| 14166 void removeSourceBuffer(SourceBuffer buffer) native; | 14414 void removeSourceBuffer(SourceBuffer buffer) native; |
| 14167 } | 14415 } |
| 14168 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 14416 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 14169 // for details. All rights reserved. Use of this source code is governed by a | 14417 // for details. All rights reserved. Use of this source code is governed by a |
| 14170 // BSD-style license that can be found in the LICENSE file. | 14418 // BSD-style license that can be found in the LICENSE file. |
| 14171 | 14419 |
| 14172 | 14420 |
| 14173 @DomName('MediaStream') | 14421 @DomName('MediaStream') |
| 14174 @SupportedBrowser(SupportedBrowser.CHROME) | 14422 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14175 @Experimental | 14423 @Experimental |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 14500 final String lastEventId; | 14748 final String lastEventId; |
| 14501 | 14749 |
| 14502 @DomName('MessageEvent.origin') | 14750 @DomName('MessageEvent.origin') |
| 14503 @DocsEditable | 14751 @DocsEditable |
| 14504 final String origin; | 14752 final String origin; |
| 14505 | 14753 |
| 14506 @DomName('MessageEvent.ports') | 14754 @DomName('MessageEvent.ports') |
| 14507 @DocsEditable | 14755 @DocsEditable |
| 14508 @Unstable | 14756 @Unstable |
| 14509 @Creates('=List') | 14757 @Creates('=List') |
| 14510 final List ports; | 14758 final List<MessagePort> ports; |
| 14511 | 14759 |
| 14512 WindowBase get source => _convertNativeToDart_Window(this._get_source); | 14760 WindowBase get source => _convertNativeToDart_Window(this._get_source); |
| 14513 @JSName('source') | 14761 @JSName('source') |
| 14514 @DomName('MessageEvent.source') | 14762 @DomName('MessageEvent.source') |
| 14515 @DocsEditable | 14763 @DocsEditable |
| 14516 @Creates('Window|=Object') | 14764 @Creates('Window|=Object') |
| 14517 @Returns('Window|=Object') | 14765 @Returns('Window|=Object') |
| 14518 final dynamic _get_source; | 14766 final dynamic _get_source; |
| 14519 | 14767 |
| 14520 @JSName('initMessageEvent') | 14768 @JSName('initMessageEvent') |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 14732 @DocsEditable | 14980 @DocsEditable |
| 14733 @Experimental // untriaged | 14981 @Experimental // untriaged |
| 14734 final num receivedTime; | 14982 final num receivedTime; |
| 14735 } | 14983 } |
| 14736 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14984 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14737 // for details. All rights reserved. Use of this source code is governed by a | 14985 // for details. All rights reserved. Use of this source code is governed by a |
| 14738 // BSD-style license that can be found in the LICENSE file. | 14986 // BSD-style license that can be found in the LICENSE file. |
| 14739 | 14987 |
| 14740 | 14988 |
| 14741 @DocsEditable | 14989 @DocsEditable |
| 14990 @DomName('MIDIOutput') | |
| 14991 @Experimental // untriaged | |
| 14992 class MidiOutput extends MidiPort native "MIDIOutput" { | |
| 14993 | |
| 14994 @DomName('MIDIOutput.send') | |
| 14995 @DocsEditable | |
| 14996 @Experimental // untriaged | |
| 14997 void send(Uint8List data, [num timestamp]) native; | |
| 14998 } | |
| 14999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15000 // for details. All rights reserved. Use of this source code is governed by a | |
| 15001 // BSD-style license that can be found in the LICENSE file. | |
| 15002 | |
| 15003 | |
| 15004 @DocsEditable | |
| 14742 @DomName('MIDIPort') | 15005 @DomName('MIDIPort') |
| 14743 @Experimental // untriaged | 15006 @Experimental // untriaged |
| 14744 class MidiPort extends EventTarget native "MIDIPort" { | 15007 class MidiPort extends EventTarget native "MIDIPort" { |
| 14745 | 15008 |
| 14746 @DomName('MIDIPort.disconnectEvent') | 15009 @DomName('MIDIPort.disconnectEvent') |
| 14747 @DocsEditable | 15010 @DocsEditable |
| 14748 @Experimental // untriaged | 15011 @Experimental // untriaged |
| 14749 static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const EventStreamProvider<MidiConnectionEvent>('disconnect'); | 15012 static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const EventStreamProvider<MidiConnectionEvent>('disconnect'); |
| 14750 | 15013 |
| 14751 @DomName('MIDIPort.id') | 15014 @DomName('MIDIPort.id') |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 14795 @Experimental // untriaged | 15058 @Experimental // untriaged |
| 14796 Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.forTarget(this ); | 15059 Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.forTarget(this ); |
| 14797 } | 15060 } |
| 14798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14799 // for details. All rights reserved. Use of this source code is governed by a | 15062 // for details. All rights reserved. Use of this source code is governed by a |
| 14800 // BSD-style license that can be found in the LICENSE file. | 15063 // BSD-style license that can be found in the LICENSE file. |
| 14801 | 15064 |
| 14802 | 15065 |
| 14803 @DocsEditable | 15066 @DocsEditable |
| 14804 @DomName('MimeType') | 15067 @DomName('MimeType') |
| 14805 @Experimental // non-standard | 15068 @Experimental // untriaged |
| 14806 class MimeType native "MimeType" { | 15069 class MimeType native "MimeType" { |
| 14807 | 15070 |
| 14808 @DomName('MimeType.description') | 15071 @DomName('MimeType.description') |
| 14809 @DocsEditable | 15072 @DocsEditable |
| 15073 @Experimental // untriaged | |
| 14810 final String description; | 15074 final String description; |
| 14811 | 15075 |
| 14812 @DomName('MimeType.enabledPlugin') | 15076 @DomName('MimeType.enabledPlugin') |
| 14813 @DocsEditable | 15077 @DocsEditable |
| 15078 @Experimental // untriaged | |
| 14814 final Plugin enabledPlugin; | 15079 final Plugin enabledPlugin; |
| 14815 | 15080 |
| 14816 @DomName('MimeType.suffixes') | 15081 @DomName('MimeType.suffixes') |
| 14817 @DocsEditable | 15082 @DocsEditable |
| 15083 @Experimental // untriaged | |
| 14818 final String suffixes; | 15084 final String suffixes; |
| 14819 | 15085 |
| 14820 @DomName('MimeType.type') | 15086 @DomName('MimeType.type') |
| 14821 @DocsEditable | 15087 @DocsEditable |
| 15088 @Experimental // untriaged | |
| 14822 final String type; | 15089 final String type; |
| 14823 } | 15090 } |
| 14824 // 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 |
| 14825 // 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 |
| 14826 // BSD-style license that can be found in the LICENSE file. | 15093 // BSD-style license that can be found in the LICENSE file. |
| 14827 | 15094 |
| 14828 | 15095 |
| 14829 @DocsEditable | 15096 @DocsEditable |
| 14830 @DomName('MimeTypeArray') | 15097 @DomName('MimeTypeArray') |
| 14831 @Experimental // non-standard | 15098 @Experimental // untriaged |
| 14832 class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM ixin<MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "Mim eTypeArray" { | 15099 class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM ixin<MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "Mim eTypeArray" { |
| 14833 | 15100 |
| 14834 @DomName('MimeTypeArray.length') | 15101 @DomName('MimeTypeArray.length') |
| 14835 @DocsEditable | 15102 @DocsEditable |
| 15103 @Experimental // untriaged | |
| 14836 int get length => JS("int", "#.length", this); | 15104 int get length => JS("int", "#.length", this); |
| 14837 | 15105 |
| 14838 MimeType operator[](int index) { | 15106 MimeType operator[](int index) { |
| 14839 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 15107 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 14840 index, index, length)) | 15108 index, index, length)) |
| 14841 throw new RangeError.range(index, 0, length); | 15109 throw new RangeError.range(index, 0, length); |
| 14842 return JS("MimeType", "#[#]", this, index); | 15110 return JS("MimeType", "#[#]", this, index); |
| 14843 } | 15111 } |
| 14844 void operator[]=(int index, MimeType value) { | 15112 void operator[]=(int index, MimeType value) { |
| 14845 throw new UnsupportedError("Cannot assign element of immutable List."); | 15113 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 14874 } | 15142 } |
| 14875 if (len == 0) throw new StateError("No elements"); | 15143 if (len == 0) throw new StateError("No elements"); |
| 14876 throw new StateError("More than one element"); | 15144 throw new StateError("More than one element"); |
| 14877 } | 15145 } |
| 14878 | 15146 |
| 14879 MimeType elementAt(int index) => this[index]; | 15147 MimeType elementAt(int index) => this[index]; |
| 14880 // -- end List<MimeType> mixins. | 15148 // -- end List<MimeType> mixins. |
| 14881 | 15149 |
| 14882 @DomName('MimeTypeArray.item') | 15150 @DomName('MimeTypeArray.item') |
| 14883 @DocsEditable | 15151 @DocsEditable |
| 15152 @Experimental // untriaged | |
| 14884 MimeType item(int index) native; | 15153 MimeType item(int index) native; |
| 14885 | 15154 |
| 14886 @DomName('MimeTypeArray.namedItem') | 15155 @DomName('MimeTypeArray.namedItem') |
| 14887 @DocsEditable | 15156 @DocsEditable |
| 15157 @Experimental // untriaged | |
| 14888 MimeType namedItem(String name) native; | 15158 MimeType namedItem(String name) native; |
| 14889 } | 15159 } |
| 14890 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15160 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14891 // for details. All rights reserved. Use of this source code is governed by a | 15161 // for details. All rights reserved. Use of this source code is governed by a |
| 14892 // BSD-style license that can be found in the LICENSE file. | 15162 // BSD-style license that can be found in the LICENSE file. |
| 14893 | 15163 |
| 14894 | 15164 |
| 14895 @DocsEditable | 15165 @DocsEditable |
| 14896 @DomName('HTMLModElement') | 15166 @DomName('HTMLModElement') |
| 14897 @Unstable | 15167 @Unstable |
| (...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 16780 @DocsEditable | 17050 @DocsEditable |
| 16781 String value; | 17051 String value; |
| 16782 } | 17052 } |
| 16783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16784 // for details. All rights reserved. Use of this source code is governed by a | 17054 // for details. All rights reserved. Use of this source code is governed by a |
| 16785 // BSD-style license that can be found in the LICENSE file. | 17055 // BSD-style license that can be found in the LICENSE file. |
| 16786 | 17056 |
| 16787 | 17057 |
| 16788 @DocsEditable | 17058 @DocsEditable |
| 16789 @DomName('Path') | 17059 @DomName('Path') |
| 16790 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elemen t.html#path-objects | 17060 @Experimental // untriaged |
| 16791 @Experimental | |
| 16792 class Path native "Path" { | 17061 class Path native "Path" { |
| 16793 | 17062 |
| 16794 @DomName('Path.DOMPath') | 17063 @DomName('Path.Path') |
| 16795 @DocsEditable | 17064 @DocsEditable |
| 16796 factory Path([path_OR_text]) { | 17065 factory Path([path_OR_text]) { |
| 16797 if (!?path_OR_text) { | 17066 if (!?path_OR_text) { |
| 16798 return Path._create_1(); | 17067 return Path._create_1(); |
| 16799 } | 17068 } |
| 16800 if ((path_OR_text is Path || path_OR_text == null)) { | 17069 if ((path_OR_text is Path || path_OR_text == null)) { |
| 16801 return Path._create_2(path_OR_text); | 17070 return Path._create_2(path_OR_text); |
| 16802 } | 17071 } |
| 16803 if ((path_OR_text is String || path_OR_text == null)) { | 17072 if ((path_OR_text is String || path_OR_text == null)) { |
| 16804 return Path._create_3(path_OR_text); | 17073 return Path._create_3(path_OR_text); |
| 16805 } | 17074 } |
| 16806 throw new ArgumentError("Incorrect number or type of arguments"); | 17075 throw new ArgumentError("Incorrect number or type of arguments"); |
| 16807 } | 17076 } |
| 16808 static Path _create_1() => JS('Path', 'new Path()'); | 17077 static Path _create_1() => JS('Path', 'new Path()'); |
| 16809 static Path _create_2(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text) ; | 17078 static Path _create_2(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text) ; |
| 16810 static Path _create_3(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text) ; | 17079 static Path _create_3(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text) ; |
| 16811 | 17080 |
| 16812 @DomName('Path.arc') | 17081 @DomName('Path.arc') |
| 16813 @DocsEditable | 17082 @DocsEditable |
| 17083 @Experimental // untriaged | |
| 16814 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native; | 17084 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native; |
| 16815 | 17085 |
| 16816 @DomName('Path.arcTo') | 17086 @DomName('Path.arcTo') |
| 16817 @DocsEditable | 17087 @DocsEditable |
| 17088 @Experimental // untriaged | |
| 16818 void arcTo(num x1, num y1, num x2, num y2, num radius) native; | 17089 void arcTo(num x1, num y1, num x2, num y2, num radius) native; |
| 16819 | 17090 |
| 16820 @DomName('Path.bezierCurveTo') | 17091 @DomName('Path.bezierCurveTo') |
| 16821 @DocsEditable | 17092 @DocsEditable |
| 17093 @Experimental // untriaged | |
| 16822 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e; | 17094 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e; |
| 16823 | 17095 |
| 16824 @DomName('Path.closePath') | 17096 @DomName('Path.closePath') |
| 16825 @DocsEditable | 17097 @DocsEditable |
| 17098 @Experimental // untriaged | |
| 16826 void closePath() native; | 17099 void closePath() native; |
| 16827 | 17100 |
| 16828 @DomName('Path.lineTo') | 17101 @DomName('Path.lineTo') |
| 16829 @DocsEditable | 17102 @DocsEditable |
| 17103 @Experimental // untriaged | |
| 16830 void lineTo(num x, num y) native; | 17104 void lineTo(num x, num y) native; |
| 16831 | 17105 |
| 16832 @DomName('Path.moveTo') | 17106 @DomName('Path.moveTo') |
| 16833 @DocsEditable | 17107 @DocsEditable |
| 17108 @Experimental // untriaged | |
| 16834 void moveTo(num x, num y) native; | 17109 void moveTo(num x, num y) native; |
| 16835 | 17110 |
| 16836 @DomName('Path.quadraticCurveTo') | 17111 @DomName('Path.quadraticCurveTo') |
| 16837 @DocsEditable | 17112 @DocsEditable |
| 17113 @Experimental // untriaged | |
| 16838 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; | 17114 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; |
| 16839 | 17115 |
| 16840 @DomName('Path.rect') | 17116 @DomName('Path.rect') |
| 16841 @DocsEditable | 17117 @DocsEditable |
| 17118 @Experimental // untriaged | |
| 16842 void rect(num x, num y, num width, num height) native; | 17119 void rect(num x, num y, num width, num height) native; |
| 16843 } | 17120 } |
| 16844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16845 // for details. All rights reserved. Use of this source code is governed by a | 17122 // for details. All rights reserved. Use of this source code is governed by a |
| 16846 // BSD-style license that can be found in the LICENSE file. | 17123 // BSD-style license that can be found in the LICENSE file. |
| 16847 | 17124 |
| 16848 | 17125 |
| 16849 @DocsEditable | 17126 @DocsEditable |
| 16850 @DomName('Performance') | 17127 @DomName('Performance') |
| 16851 @SupportedBrowser(SupportedBrowser.CHROME) | 17128 @SupportedBrowser(SupportedBrowser.CHROME) |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 17179 @DocsEditable | 17456 @DocsEditable |
| 17180 final int unloadEventStart; | 17457 final int unloadEventStart; |
| 17181 } | 17458 } |
| 17182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17183 // for details. All rights reserved. Use of this source code is governed by a | 17460 // for details. All rights reserved. Use of this source code is governed by a |
| 17184 // BSD-style license that can be found in the LICENSE file. | 17461 // BSD-style license that can be found in the LICENSE file. |
| 17185 | 17462 |
| 17186 | 17463 |
| 17187 @DocsEditable | 17464 @DocsEditable |
| 17188 @DomName('Plugin') | 17465 @DomName('Plugin') |
| 17189 @Experimental // non-standard | 17466 @Experimental // untriaged |
| 17190 class Plugin native "Plugin" { | 17467 class Plugin native "Plugin" { |
| 17191 | 17468 |
| 17192 @DomName('Plugin.description') | 17469 @DomName('Plugin.description') |
| 17193 @DocsEditable | 17470 @DocsEditable |
| 17471 @Experimental // untriaged | |
| 17194 final String description; | 17472 final String description; |
| 17195 | 17473 |
| 17196 @DomName('Plugin.filename') | 17474 @DomName('Plugin.filename') |
| 17197 @DocsEditable | 17475 @DocsEditable |
| 17476 @Experimental // untriaged | |
| 17198 final String filename; | 17477 final String filename; |
| 17199 | 17478 |
| 17200 @DomName('Plugin.length') | 17479 @DomName('Plugin.length') |
| 17201 @DocsEditable | 17480 @DocsEditable |
| 17481 @Experimental // untriaged | |
| 17202 final int length; | 17482 final int length; |
| 17203 | 17483 |
| 17204 @DomName('Plugin.name') | 17484 @DomName('Plugin.name') |
| 17205 @DocsEditable | 17485 @DocsEditable |
| 17486 @Experimental // untriaged | |
| 17206 final String name; | 17487 final String name; |
| 17207 | 17488 |
| 17208 @DomName('Plugin.item') | 17489 @DomName('Plugin.item') |
| 17209 @DocsEditable | 17490 @DocsEditable |
| 17491 @Experimental // untriaged | |
| 17210 MimeType item(int index) native; | 17492 MimeType item(int index) native; |
| 17211 | 17493 |
| 17212 @DomName('Plugin.namedItem') | 17494 @DomName('Plugin.namedItem') |
| 17213 @DocsEditable | 17495 @DocsEditable |
| 17496 @Experimental // untriaged | |
| 17214 MimeType namedItem(String name) native; | 17497 MimeType namedItem(String name) native; |
| 17215 } | 17498 } |
| 17216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17217 // for details. All rights reserved. Use of this source code is governed by a | 17500 // for details. All rights reserved. Use of this source code is governed by a |
| 17218 // BSD-style license that can be found in the LICENSE file. | 17501 // BSD-style license that can be found in the LICENSE file. |
| 17219 | 17502 |
| 17220 | 17503 |
| 17221 @DocsEditable | 17504 @DocsEditable |
| 17222 @DomName('PluginArray') | 17505 @DomName('PluginArray') |
| 17223 @Experimental // non-standard | 17506 @Experimental // untriaged |
| 17224 class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin <Plugin> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray " { | 17507 class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin <Plugin> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray " { |
| 17225 | 17508 |
| 17226 @DomName('PluginArray.length') | 17509 @DomName('PluginArray.length') |
| 17227 @DocsEditable | 17510 @DocsEditable |
| 17511 @Experimental // untriaged | |
| 17228 int get length => JS("int", "#.length", this); | 17512 int get length => JS("int", "#.length", this); |
| 17229 | 17513 |
| 17230 Plugin operator[](int index) { | 17514 Plugin operator[](int index) { |
| 17231 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 17515 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 17232 index, index, length)) | 17516 index, index, length)) |
| 17233 throw new RangeError.range(index, 0, length); | 17517 throw new RangeError.range(index, 0, length); |
| 17234 return JS("Plugin", "#[#]", this, index); | 17518 return JS("Plugin", "#[#]", this, index); |
| 17235 } | 17519 } |
| 17236 void operator[]=(int index, Plugin value) { | 17520 void operator[]=(int index, Plugin value) { |
| 17237 throw new UnsupportedError("Cannot assign element of immutable List."); | 17521 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 17266 } | 17550 } |
| 17267 if (len == 0) throw new StateError("No elements"); | 17551 if (len == 0) throw new StateError("No elements"); |
| 17268 throw new StateError("More than one element"); | 17552 throw new StateError("More than one element"); |
| 17269 } | 17553 } |
| 17270 | 17554 |
| 17271 Plugin elementAt(int index) => this[index]; | 17555 Plugin elementAt(int index) => this[index]; |
| 17272 // -- end List<Plugin> mixins. | 17556 // -- end List<Plugin> mixins. |
| 17273 | 17557 |
| 17274 @DomName('PluginArray.item') | 17558 @DomName('PluginArray.item') |
| 17275 @DocsEditable | 17559 @DocsEditable |
| 17560 @Experimental // untriaged | |
| 17276 Plugin item(int index) native; | 17561 Plugin item(int index) native; |
| 17277 | 17562 |
| 17278 @DomName('PluginArray.namedItem') | 17563 @DomName('PluginArray.namedItem') |
| 17279 @DocsEditable | 17564 @DocsEditable |
| 17565 @Experimental // untriaged | |
| 17280 Plugin namedItem(String name) native; | 17566 Plugin namedItem(String name) native; |
| 17281 | 17567 |
| 17282 @DomName('PluginArray.refresh') | 17568 @DomName('PluginArray.refresh') |
| 17283 @DocsEditable | 17569 @DocsEditable |
| 17570 @Experimental // untriaged | |
| 17284 void refresh(bool reload) native; | 17571 void refresh(bool reload) native; |
| 17285 } | 17572 } |
| 17286 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17573 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17287 // for details. All rights reserved. Use of this source code is governed by a | 17574 // for details. All rights reserved. Use of this source code is governed by a |
| 17288 // BSD-style license that can be found in the LICENSE file. | 17575 // BSD-style license that can be found in the LICENSE file. |
| 17289 | 17576 |
| 17290 | 17577 |
| 17291 @DocsEditable | 17578 @DocsEditable |
| 17292 @DomName('PopStateEvent') | 17579 @DomName('PopStateEvent') |
| 17293 @SupportedBrowser(SupportedBrowser.CHROME) | 17580 @SupportedBrowser(SupportedBrowser.CHROME) |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 17505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17792 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17506 // for details. All rights reserved. Use of this source code is governed by a | 17793 // for details. All rights reserved. Use of this source code is governed by a |
| 17507 // BSD-style license that can be found in the LICENSE file. | 17794 // BSD-style license that can be found in the LICENSE file. |
| 17508 | 17795 |
| 17509 // WARNING: Do not edit - generated code. | 17796 // WARNING: Do not edit - generated code. |
| 17510 | 17797 |
| 17511 | 17798 |
| 17512 @DomName('Range') | 17799 @DomName('Range') |
| 17513 @Unstable | 17800 @Unstable |
| 17514 class Range native "Range" { | 17801 class Range native "Range" { |
| 17515 factory Range() => document.$dom_createRange(); | |
| 17516 | 17802 |
| 17803 @DomName('Range.Range') | |
| 17804 @DocsEditable | |
| 17805 factory Range() { | |
| 17806 return Range._create_1(); | |
| 17807 } | |
| 17808 static Range _create_1() => JS('Range', 'new Range()'); | |
| 17517 | 17809 |
| 17518 @DomName('Range.END_TO_END') | 17810 @DomName('Range.END_TO_END') |
| 17519 @DocsEditable | 17811 @DocsEditable |
| 17520 static const int END_TO_END = 2; | 17812 static const int END_TO_END = 2; |
| 17521 | 17813 |
| 17522 @DomName('Range.END_TO_START') | 17814 @DomName('Range.END_TO_START') |
| 17523 @DocsEditable | 17815 @DocsEditable |
| 17524 static const int END_TO_START = 3; | 17816 static const int END_TO_START = 3; |
| 17525 | 17817 |
| 17526 @DomName('Range.NODE_AFTER') | 17818 @DomName('Range.NODE_AFTER') |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 18443 @DomName('HTMLScriptElement.type') | 18735 @DomName('HTMLScriptElement.type') |
| 18444 @DocsEditable | 18736 @DocsEditable |
| 18445 String type; | 18737 String type; |
| 18446 } | 18738 } |
| 18447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18448 // for details. All rights reserved. Use of this source code is governed by a | 18740 // for details. All rights reserved. Use of this source code is governed by a |
| 18449 // BSD-style license that can be found in the LICENSE file. | 18741 // BSD-style license that can be found in the LICENSE file. |
| 18450 | 18742 |
| 18451 | 18743 |
| 18452 @DocsEditable | 18744 @DocsEditable |
| 18453 @DomName('ScriptProfile') | |
| 18454 @deprecated // nonstandard | |
| 18455 class ScriptProfile native "ScriptProfile" { | |
| 18456 | |
| 18457 @DomName('ScriptProfile.head') | |
| 18458 @DocsEditable | |
| 18459 final ScriptProfileNode head; | |
| 18460 | |
| 18461 @DomName('ScriptProfile.idleTime') | |
| 18462 @DocsEditable | |
| 18463 final num idleTime; | |
| 18464 | |
| 18465 @DomName('ScriptProfile.title') | |
| 18466 @DocsEditable | |
| 18467 final String title; | |
| 18468 | |
| 18469 @DomName('ScriptProfile.uid') | |
| 18470 @DocsEditable | |
| 18471 final int uid; | |
| 18472 } | |
| 18473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18474 // for details. All rights reserved. Use of this source code is governed by a | |
| 18475 // BSD-style license that can be found in the LICENSE file. | |
| 18476 | |
| 18477 | |
| 18478 @DocsEditable | |
| 18479 @DomName('ScriptProfileNode') | |
| 18480 @deprecated // nonstandard | |
| 18481 class ScriptProfileNode native "ScriptProfileNode" { | |
| 18482 | |
| 18483 @JSName('callUID') | |
| 18484 @DomName('ScriptProfileNode.callUID') | |
| 18485 @DocsEditable | |
| 18486 final int callUid; | |
| 18487 | |
| 18488 @DomName('ScriptProfileNode.functionName') | |
| 18489 @DocsEditable | |
| 18490 final String functionName; | |
| 18491 | |
| 18492 @DomName('ScriptProfileNode.lineNumber') | |
| 18493 @DocsEditable | |
| 18494 final int lineNumber; | |
| 18495 | |
| 18496 @DomName('ScriptProfileNode.numberOfCalls') | |
| 18497 @DocsEditable | |
| 18498 final int numberOfCalls; | |
| 18499 | |
| 18500 @DomName('ScriptProfileNode.selfTime') | |
| 18501 @DocsEditable | |
| 18502 final num selfTime; | |
| 18503 | |
| 18504 @DomName('ScriptProfileNode.totalTime') | |
| 18505 @DocsEditable | |
| 18506 final num totalTime; | |
| 18507 | |
| 18508 @DomName('ScriptProfileNode.url') | |
| 18509 @DocsEditable | |
| 18510 final String url; | |
| 18511 | |
| 18512 @DomName('ScriptProfileNode.visible') | |
| 18513 @DocsEditable | |
| 18514 final bool visible; | |
| 18515 | |
| 18516 @DomName('ScriptProfileNode.children') | |
| 18517 @DocsEditable | |
| 18518 List<ScriptProfileNode> children() native; | |
| 18519 } | |
| 18520 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18521 // for details. All rights reserved. Use of this source code is governed by a | |
| 18522 // BSD-style license that can be found in the LICENSE file. | |
| 18523 | |
| 18524 | |
| 18525 @DocsEditable | |
| 18526 @DomName('SecurityPolicy') | 18745 @DomName('SecurityPolicy') |
| 18527 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification .dev.html#securitypolicy | 18746 @Experimental // untriaged |
| 18528 @Experimental | |
| 18529 class SecurityPolicy native "SecurityPolicy" { | 18747 class SecurityPolicy native "SecurityPolicy" { |
| 18530 | 18748 |
| 18531 @DomName('SecurityPolicy.allowsEval') | 18749 @DomName('SecurityPolicy.allowsEval') |
| 18532 @DocsEditable | 18750 @DocsEditable |
| 18751 @Experimental // untriaged | |
| 18533 final bool allowsEval; | 18752 final bool allowsEval; |
| 18534 | 18753 |
| 18535 @DomName('SecurityPolicy.allowsInlineScript') | 18754 @DomName('SecurityPolicy.allowsInlineScript') |
| 18536 @DocsEditable | 18755 @DocsEditable |
| 18756 @Experimental // untriaged | |
| 18537 final bool allowsInlineScript; | 18757 final bool allowsInlineScript; |
| 18538 | 18758 |
| 18539 @DomName('SecurityPolicy.allowsInlineStyle') | 18759 @DomName('SecurityPolicy.allowsInlineStyle') |
| 18540 @DocsEditable | 18760 @DocsEditable |
| 18761 @Experimental // untriaged | |
| 18541 final bool allowsInlineStyle; | 18762 final bool allowsInlineStyle; |
| 18542 | 18763 |
| 18543 @DomName('SecurityPolicy.isActive') | 18764 @DomName('SecurityPolicy.isActive') |
| 18544 @DocsEditable | 18765 @DocsEditable |
| 18766 @Experimental // untriaged | |
| 18545 final bool isActive; | 18767 final bool isActive; |
| 18546 | 18768 |
| 18547 @DomName('SecurityPolicy.reportURIs') | 18769 @DomName('SecurityPolicy.reportURIs') |
| 18548 @DocsEditable | 18770 @DocsEditable |
| 18771 @Experimental // untriaged | |
| 18549 @Returns('DomStringList') | 18772 @Returns('DomStringList') |
| 18550 @Creates('DomStringList') | 18773 @Creates('DomStringList') |
| 18551 final List<String> reportURIs; | 18774 final List<String> reportURIs; |
| 18552 | 18775 |
| 18553 @DomName('SecurityPolicy.allowsConnectionTo') | 18776 @DomName('SecurityPolicy.allowsConnectionTo') |
| 18554 @DocsEditable | 18777 @DocsEditable |
| 18778 @Experimental // untriaged | |
| 18555 bool allowsConnectionTo(String url) native; | 18779 bool allowsConnectionTo(String url) native; |
| 18556 | 18780 |
| 18557 @DomName('SecurityPolicy.allowsFontFrom') | 18781 @DomName('SecurityPolicy.allowsFontFrom') |
| 18558 @DocsEditable | 18782 @DocsEditable |
| 18783 @Experimental // untriaged | |
| 18559 bool allowsFontFrom(String url) native; | 18784 bool allowsFontFrom(String url) native; |
| 18560 | 18785 |
| 18561 @DomName('SecurityPolicy.allowsFormAction') | 18786 @DomName('SecurityPolicy.allowsFormAction') |
| 18562 @DocsEditable | 18787 @DocsEditable |
| 18788 @Experimental // untriaged | |
| 18563 bool allowsFormAction(String url) native; | 18789 bool allowsFormAction(String url) native; |
| 18564 | 18790 |
| 18565 @DomName('SecurityPolicy.allowsFrameFrom') | 18791 @DomName('SecurityPolicy.allowsFrameFrom') |
| 18566 @DocsEditable | 18792 @DocsEditable |
| 18793 @Experimental // untriaged | |
| 18567 bool allowsFrameFrom(String url) native; | 18794 bool allowsFrameFrom(String url) native; |
| 18568 | 18795 |
| 18569 @DomName('SecurityPolicy.allowsImageFrom') | 18796 @DomName('SecurityPolicy.allowsImageFrom') |
| 18570 @DocsEditable | 18797 @DocsEditable |
| 18798 @Experimental // untriaged | |
| 18571 bool allowsImageFrom(String url) native; | 18799 bool allowsImageFrom(String url) native; |
| 18572 | 18800 |
| 18573 @DomName('SecurityPolicy.allowsMediaFrom') | 18801 @DomName('SecurityPolicy.allowsMediaFrom') |
| 18574 @DocsEditable | 18802 @DocsEditable |
| 18803 @Experimental // untriaged | |
| 18575 bool allowsMediaFrom(String url) native; | 18804 bool allowsMediaFrom(String url) native; |
| 18576 | 18805 |
| 18577 @DomName('SecurityPolicy.allowsObjectFrom') | 18806 @DomName('SecurityPolicy.allowsObjectFrom') |
| 18578 @DocsEditable | 18807 @DocsEditable |
| 18808 @Experimental // untriaged | |
| 18579 bool allowsObjectFrom(String url) native; | 18809 bool allowsObjectFrom(String url) native; |
| 18580 | 18810 |
| 18581 @DomName('SecurityPolicy.allowsPluginType') | 18811 @DomName('SecurityPolicy.allowsPluginType') |
| 18582 @DocsEditable | 18812 @DocsEditable |
| 18813 @Experimental // untriaged | |
| 18583 bool allowsPluginType(String type) native; | 18814 bool allowsPluginType(String type) native; |
| 18584 | 18815 |
| 18585 @DomName('SecurityPolicy.allowsScriptFrom') | 18816 @DomName('SecurityPolicy.allowsScriptFrom') |
| 18586 @DocsEditable | 18817 @DocsEditable |
| 18818 @Experimental // untriaged | |
| 18587 bool allowsScriptFrom(String url) native; | 18819 bool allowsScriptFrom(String url) native; |
| 18588 | 18820 |
| 18589 @DomName('SecurityPolicy.allowsStyleFrom') | 18821 @DomName('SecurityPolicy.allowsStyleFrom') |
| 18590 @DocsEditable | 18822 @DocsEditable |
| 18823 @Experimental // untriaged | |
| 18591 bool allowsStyleFrom(String url) native; | 18824 bool allowsStyleFrom(String url) native; |
| 18592 } | 18825 } |
| 18593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18594 // for details. All rights reserved. Use of this source code is governed by a | 18827 // for details. All rights reserved. Use of this source code is governed by a |
| 18595 // BSD-style license that can be found in the LICENSE file. | 18828 // BSD-style license that can be found in the LICENSE file. |
| 18596 | 18829 |
| 18597 | 18830 |
| 18598 @DocsEditable | 18831 @DocsEditable |
| 18599 @DomName('SecurityPolicyViolationEvent') | 18832 @DomName('SecurityPolicyViolationEvent') |
| 18600 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification .dev.html#securitypolicyviolationevent-events | 18833 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification .dev.html#securitypolicyviolationevent-events |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 18749 } | 18982 } |
| 18750 } | 18983 } |
| 18751 } | 18984 } |
| 18752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18985 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18753 // for details. All rights reserved. Use of this source code is governed by a | 18986 // for details. All rights reserved. Use of this source code is governed by a |
| 18754 // BSD-style license that can be found in the LICENSE file. | 18987 // BSD-style license that can be found in the LICENSE file. |
| 18755 | 18988 |
| 18756 | 18989 |
| 18757 @DocsEditable | 18990 @DocsEditable |
| 18758 @DomName('Selection') | 18991 @DomName('Selection') |
| 18992 @Experimental // untriaged | |
| 18759 class Selection native "Selection" { | 18993 class Selection native "Selection" { |
| 18760 | 18994 |
| 18761 @DomName('Selection.anchorNode') | 18995 @DomName('Selection.anchorNode') |
| 18762 @DocsEditable | 18996 @DocsEditable |
| 18997 @Experimental // untriaged | |
| 18763 final Node anchorNode; | 18998 final Node anchorNode; |
| 18764 | 18999 |
| 18765 @DomName('Selection.anchorOffset') | 19000 @DomName('Selection.anchorOffset') |
| 18766 @DocsEditable | 19001 @DocsEditable |
| 19002 @Experimental // untriaged | |
| 18767 final int anchorOffset; | 19003 final int anchorOffset; |
| 18768 | 19004 |
| 18769 @DomName('Selection.baseNode') | 19005 @DomName('Selection.baseNode') |
| 18770 @DocsEditable | 19006 @DocsEditable |
| 18771 @Experimental // non-standard | 19007 @Experimental // untriaged |
| 18772 final Node baseNode; | 19008 final Node baseNode; |
| 18773 | 19009 |
| 18774 @DomName('Selection.baseOffset') | 19010 @DomName('Selection.baseOffset') |
| 18775 @DocsEditable | 19011 @DocsEditable |
| 18776 @Experimental // non-standard | 19012 @Experimental // untriaged |
| 18777 final int baseOffset; | 19013 final int baseOffset; |
| 18778 | 19014 |
| 18779 @DomName('Selection.extentNode') | 19015 @DomName('Selection.extentNode') |
| 18780 @DocsEditable | 19016 @DocsEditable |
| 18781 @Experimental // non-standard | 19017 @Experimental // untriaged |
| 18782 final Node extentNode; | 19018 final Node extentNode; |
| 18783 | 19019 |
| 18784 @DomName('Selection.extentOffset') | 19020 @DomName('Selection.extentOffset') |
| 18785 @DocsEditable | 19021 @DocsEditable |
| 18786 @Experimental // non-standard | 19022 @Experimental // untriaged |
| 18787 final int extentOffset; | 19023 final int extentOffset; |
| 18788 | 19024 |
| 18789 @DomName('Selection.focusNode') | 19025 @DomName('Selection.focusNode') |
| 18790 @DocsEditable | 19026 @DocsEditable |
| 19027 @Experimental // untriaged | |
| 18791 final Node focusNode; | 19028 final Node focusNode; |
| 18792 | 19029 |
| 18793 @DomName('Selection.focusOffset') | 19030 @DomName('Selection.focusOffset') |
| 18794 @DocsEditable | 19031 @DocsEditable |
| 19032 @Experimental // untriaged | |
| 18795 final int focusOffset; | 19033 final int focusOffset; |
| 18796 | 19034 |
| 18797 @DomName('Selection.isCollapsed') | 19035 @DomName('Selection.isCollapsed') |
| 18798 @DocsEditable | 19036 @DocsEditable |
| 19037 @Experimental // untriaged | |
| 18799 final bool isCollapsed; | 19038 final bool isCollapsed; |
| 18800 | 19039 |
| 18801 @DomName('Selection.rangeCount') | 19040 @DomName('Selection.rangeCount') |
| 18802 @DocsEditable | 19041 @DocsEditable |
| 19042 @Experimental // untriaged | |
| 18803 final int rangeCount; | 19043 final int rangeCount; |
| 18804 | 19044 |
| 18805 @DomName('Selection.type') | 19045 @DomName('Selection.type') |
| 18806 @DocsEditable | 19046 @DocsEditable |
| 18807 @Experimental // non-standard | 19047 @Experimental // untriaged |
| 18808 final String type; | 19048 final String type; |
| 18809 | 19049 |
| 18810 @DomName('Selection.addRange') | 19050 @DomName('Selection.addRange') |
| 18811 @DocsEditable | 19051 @DocsEditable |
| 19052 @Experimental // untriaged | |
| 18812 void addRange(Range range) native; | 19053 void addRange(Range range) native; |
| 18813 | 19054 |
| 18814 @DomName('Selection.collapse') | 19055 @DomName('Selection.collapse') |
| 18815 @DocsEditable | 19056 @DocsEditable |
| 19057 @Experimental // untriaged | |
| 18816 void collapse(Node node, int index) native; | 19058 void collapse(Node node, int index) native; |
| 18817 | 19059 |
| 18818 @DomName('Selection.collapseToEnd') | 19060 @DomName('Selection.collapseToEnd') |
| 18819 @DocsEditable | 19061 @DocsEditable |
| 19062 @Experimental // untriaged | |
| 18820 void collapseToEnd() native; | 19063 void collapseToEnd() native; |
| 18821 | 19064 |
| 18822 @DomName('Selection.collapseToStart') | 19065 @DomName('Selection.collapseToStart') |
| 18823 @DocsEditable | 19066 @DocsEditable |
| 19067 @Experimental // untriaged | |
| 18824 void collapseToStart() native; | 19068 void collapseToStart() native; |
| 18825 | 19069 |
| 18826 @DomName('Selection.containsNode') | 19070 @DomName('Selection.containsNode') |
| 18827 @DocsEditable | 19071 @DocsEditable |
| 18828 @Experimental // non-standard | 19072 @Experimental // untriaged |
| 18829 bool containsNode(Node node, bool allowPartial) native; | 19073 bool containsNode(Node node, bool allowPartial) native; |
| 18830 | 19074 |
| 18831 @DomName('Selection.deleteFromDocument') | 19075 @DomName('Selection.deleteFromDocument') |
| 18832 @DocsEditable | 19076 @DocsEditable |
| 19077 @Experimental // untriaged | |
| 18833 void deleteFromDocument() native; | 19078 void deleteFromDocument() native; |
| 18834 | 19079 |
| 18835 @DomName('Selection.empty') | 19080 @DomName('Selection.empty') |
| 18836 @DocsEditable | 19081 @DocsEditable |
| 18837 @Experimental // non-standard | 19082 @Experimental // untriaged |
| 18838 void empty() native; | 19083 void empty() native; |
| 18839 | 19084 |
| 18840 @DomName('Selection.extend') | 19085 @DomName('Selection.extend') |
| 18841 @DocsEditable | 19086 @DocsEditable |
| 19087 @Experimental // untriaged | |
| 18842 void extend(Node node, int offset) native; | 19088 void extend(Node node, int offset) native; |
| 18843 | 19089 |
| 18844 @DomName('Selection.getRangeAt') | 19090 @DomName('Selection.getRangeAt') |
| 18845 @DocsEditable | 19091 @DocsEditable |
| 19092 @Experimental // untriaged | |
| 18846 Range getRangeAt(int index) native; | 19093 Range getRangeAt(int index) native; |
| 18847 | 19094 |
| 18848 @DomName('Selection.modify') | 19095 @DomName('Selection.modify') |
| 18849 @DocsEditable | 19096 @DocsEditable |
| 18850 @Experimental // non-standard | 19097 @Experimental // untriaged |
| 18851 void modify(String alter, String direction, String granularity) native; | 19098 void modify(String alter, String direction, String granularity) native; |
| 18852 | 19099 |
| 18853 @DomName('Selection.removeAllRanges') | 19100 @DomName('Selection.removeAllRanges') |
| 18854 @DocsEditable | 19101 @DocsEditable |
| 19102 @Experimental // untriaged | |
| 18855 void removeAllRanges() native; | 19103 void removeAllRanges() native; |
| 18856 | 19104 |
| 18857 @DomName('Selection.selectAllChildren') | 19105 @DomName('Selection.selectAllChildren') |
| 18858 @DocsEditable | 19106 @DocsEditable |
| 19107 @Experimental // untriaged | |
| 18859 void selectAllChildren(Node node) native; | 19108 void selectAllChildren(Node node) native; |
| 18860 | 19109 |
| 18861 @DomName('Selection.setBaseAndExtent') | 19110 @DomName('Selection.setBaseAndExtent') |
| 18862 @DocsEditable | 19111 @DocsEditable |
| 18863 @Experimental // non-standard | 19112 @Experimental // untriaged |
| 18864 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset) native; | 19113 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset) native; |
| 18865 | 19114 |
| 18866 @DomName('Selection.setPosition') | 19115 @DomName('Selection.setPosition') |
| 18867 @DocsEditable | 19116 @DocsEditable |
| 18868 @Experimental // non-standard | 19117 @Experimental // untriaged |
| 18869 void setPosition(Node node, int offset) native; | 19118 void setPosition(Node node, int offset) native; |
| 18870 | 19119 |
| 18871 @DomName('Selection.toString') | 19120 @DomName('Selection.toString') |
| 18872 @DocsEditable | 19121 @DocsEditable |
| 19122 @Experimental // untriaged | |
| 18873 String toString() native; | 19123 String toString() native; |
| 18874 } | 19124 } |
| 18875 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19125 // 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 | 19126 // 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. | 19127 // BSD-style license that can be found in the LICENSE file. |
| 18878 | 19128 |
| 18879 | 19129 |
| 18880 @DocsEditable | 19130 @DocsEditable |
| 18881 @DomName('HTMLShadowElement') | 19131 @DomName('HTMLShadowElement') |
| 18882 @SupportedBrowser(SupportedBrowser.CHROME, '26') | 19132 @SupportedBrowser(SupportedBrowser.CHROME, '26') |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 18956 | 19206 |
| 18957 static bool get supported => | 19207 static bool get supported => |
| 18958 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)'); | 19208 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)'); |
| 18959 } | 19209 } |
| 18960 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18961 // for details. All rights reserved. Use of this source code is governed by a | 19211 // for details. All rights reserved. Use of this source code is governed by a |
| 18962 // BSD-style license that can be found in the LICENSE file. | 19212 // BSD-style license that can be found in the LICENSE file. |
| 18963 | 19213 |
| 18964 | 19214 |
| 18965 @DocsEditable | 19215 @DocsEditable |
| 18966 @DomName('SourceBuffer') | 19216 @DomName('WebKitSourceBuffer') |
| 18967 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #sourcebuffer | 19217 @SupportedBrowser(SupportedBrowser.CHROME) |
| 19218 @SupportedBrowser(SupportedBrowser.SAFARI) | |
| 18968 @Experimental | 19219 @Experimental |
| 18969 class SourceBuffer native "SourceBuffer" { | 19220 @Experimental // untriaged |
| 19221 class SourceBuffer native "WebKitSourceBuffer" { | |
| 18970 | 19222 |
| 18971 @DomName('SourceBuffer.buffered') | 19223 @DomName('WebKitSourceBuffer.buffered') |
| 18972 @DocsEditable | 19224 @DocsEditable |
| 19225 @Experimental // untriaged | |
| 18973 final TimeRanges buffered; | 19226 final TimeRanges buffered; |
| 18974 | 19227 |
| 18975 @DomName('SourceBuffer.timestampOffset') | 19228 @DomName('WebKitSourceBuffer.timestampOffset') |
| 18976 @DocsEditable | 19229 @DocsEditable |
| 19230 @Experimental // untriaged | |
| 18977 num timestampOffset; | 19231 num timestampOffset; |
| 18978 | 19232 |
| 18979 @DomName('SourceBuffer.abort') | 19233 @DomName('WebKitSourceBuffer.abort') |
| 18980 @DocsEditable | 19234 @DocsEditable |
| 19235 @Experimental // untriaged | |
| 18981 void abort() native; | 19236 void abort() native; |
| 18982 | 19237 |
| 18983 @DomName('SourceBuffer.append') | 19238 @DomName('WebKitSourceBuffer.append') |
| 18984 @DocsEditable | 19239 @DocsEditable |
| 18985 @Experimental // non-standard | 19240 @Experimental // untriaged |
| 18986 void append(Uint8List data) native; | 19241 void append(Uint8List data) native; |
| 18987 } | 19242 } |
| 18988 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18989 // for details. All rights reserved. Use of this source code is governed by a | 19244 // for details. All rights reserved. Use of this source code is governed by a |
| 18990 // BSD-style license that can be found in the LICENSE file. | 19245 // BSD-style license that can be found in the LICENSE file. |
| 18991 | 19246 |
| 18992 | 19247 |
| 18993 @DocsEditable | 19248 @DocsEditable |
| 18994 @DomName('SourceBufferList') | 19249 @DomName('WebKitSourceBufferList') |
| 18995 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #sourcebufferlist | 19250 @SupportedBrowser(SupportedBrowser.CHROME) |
| 19251 @SupportedBrowser(SupportedBrowser.SAFARI) | |
| 18996 @Experimental | 19252 @Experimental |
| 18997 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab leListMixin<SourceBuffer> implements JavaScriptIndexingBehavior, List<SourceBuff er> native "SourceBufferList" { | 19253 @Experimental // untriaged |
| 19254 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab leListMixin<SourceBuffer> implements JavaScriptIndexingBehavior, List<SourceBuff er> native "WebKitSourceBufferList" { | |
| 18998 | 19255 |
| 18999 @DomName('SourceBufferList.length') | 19256 @DomName('WebKitSourceBufferList.length') |
| 19000 @DocsEditable | 19257 @DocsEditable |
| 19258 @Experimental // untriaged | |
| 19001 int get length => JS("int", "#.length", this); | 19259 int get length => JS("int", "#.length", this); |
| 19002 | 19260 |
| 19003 SourceBuffer operator[](int index) { | 19261 SourceBuffer operator[](int index) { |
| 19004 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 19262 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 19005 index, index, length)) | 19263 index, index, length)) |
| 19006 throw new RangeError.range(index, 0, length); | 19264 throw new RangeError.range(index, 0, length); |
| 19007 return JS("SourceBuffer", "#[#]", this, index); | 19265 return JS("SourceBuffer", "#[#]", this, index); |
| 19008 } | 19266 } |
| 19009 void operator[]=(int index, SourceBuffer value) { | 19267 void operator[]=(int index, SourceBuffer value) { |
| 19010 throw new UnsupportedError("Cannot assign element of immutable List."); | 19268 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 19038 return JS('SourceBuffer', '#[0]', this); | 19296 return JS('SourceBuffer', '#[0]', this); |
| 19039 } | 19297 } |
| 19040 if (len == 0) throw new StateError("No elements"); | 19298 if (len == 0) throw new StateError("No elements"); |
| 19041 throw new StateError("More than one element"); | 19299 throw new StateError("More than one element"); |
| 19042 } | 19300 } |
| 19043 | 19301 |
| 19044 SourceBuffer elementAt(int index) => this[index]; | 19302 SourceBuffer elementAt(int index) => this[index]; |
| 19045 // -- end List<SourceBuffer> mixins. | 19303 // -- end List<SourceBuffer> mixins. |
| 19046 | 19304 |
| 19047 @JSName('addEventListener') | 19305 @JSName('addEventListener') |
| 19048 @DomName('SourceBufferList.addEventListener') | 19306 @DomName('WebKitSourceBufferList.addEventListener') |
| 19049 @DocsEditable | 19307 @DocsEditable |
| 19308 @Experimental // untriaged | |
| 19050 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; | 19309 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; |
| 19051 | 19310 |
| 19052 @DomName('SourceBufferList.dispatchEvent') | 19311 @DomName('WebKitSourceBufferList.dispatchEvent') |
| 19053 @DocsEditable | 19312 @DocsEditable |
| 19313 @Experimental // untriaged | |
| 19054 bool dispatchEvent(Event event) native; | 19314 bool dispatchEvent(Event event) native; |
| 19055 | 19315 |
| 19056 @DomName('SourceBufferList.item') | 19316 @DomName('WebKitSourceBufferList.item') |
| 19057 @DocsEditable | 19317 @DocsEditable |
| 19318 @Experimental // untriaged | |
| 19058 SourceBuffer item(int index) native; | 19319 SourceBuffer item(int index) native; |
| 19059 | 19320 |
| 19060 @JSName('removeEventListener') | 19321 @JSName('removeEventListener') |
| 19061 @DomName('SourceBufferList.removeEventListener') | 19322 @DomName('WebKitSourceBufferList.removeEventListener') |
| 19062 @DocsEditable | 19323 @DocsEditable |
| 19324 @Experimental // untriaged | |
| 19063 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; | 19325 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; |
| 19064 } | 19326 } |
| 19065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19327 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19066 // for details. All rights reserved. Use of this source code is governed by a | 19328 // for details. All rights reserved. Use of this source code is governed by a |
| 19067 // BSD-style license that can be found in the LICENSE file. | 19329 // BSD-style license that can be found in the LICENSE file. |
| 19068 | 19330 |
| 19069 | 19331 |
| 19070 @DocsEditable | 19332 @DocsEditable |
| 19071 @DomName('HTMLSourceElement') | 19333 @DomName('HTMLSourceElement') |
| 19072 class SourceElement extends Element native "HTMLSourceElement" { | 19334 class SourceElement extends Element native "HTMLSourceElement" { |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 19802 | 20064 |
| 19803 bool get isEmpty => $dom_key(0) == null; | 20065 bool get isEmpty => $dom_key(0) == null; |
| 19804 | 20066 |
| 19805 bool get isNotEmpty => !isEmpty; | 20067 bool get isNotEmpty => !isEmpty; |
| 19806 | 20068 |
| 19807 @JSName('length') | 20069 @JSName('length') |
| 19808 @DomName('Storage.length') | 20070 @DomName('Storage.length') |
| 19809 @DocsEditable | 20071 @DocsEditable |
| 19810 final int $dom_length; | 20072 final int $dom_length; |
| 19811 | 20073 |
| 20074 @JSName('None') | |
| 20075 @DomName('Storage') | |
| 20076 @Unstable | |
| 20077 String anonymousIndexedGetter(index_OR_name) native; | |
| 20078 | |
| 19812 @JSName('clear') | 20079 @JSName('clear') |
| 19813 @DomName('Storage.clear') | 20080 @DomName('Storage.clear') |
| 19814 @DocsEditable | 20081 @DocsEditable |
| 19815 void $dom_clear() native; | 20082 void $dom_clear() native; |
| 19816 | 20083 |
| 19817 @JSName('getItem') | 20084 @JSName('getItem') |
| 19818 @DomName('Storage.getItem') | 20085 @DomName('Storage.getItem') |
| 19819 @DocsEditable | 20086 @DocsEditable |
| 19820 String $dom_getItem(String key) native; | 20087 String $dom_getItem(String key) native; |
| 19821 | 20088 |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 20492 } | 20759 } |
| 20493 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20494 // for details. All rights reserved. Use of this source code is governed by a | 20761 // for details. All rights reserved. Use of this source code is governed by a |
| 20495 // BSD-style license that can be found in the LICENSE file. | 20762 // BSD-style license that can be found in the LICENSE file. |
| 20496 | 20763 |
| 20497 // WARNING: Do not edit - generated code. | 20764 // WARNING: Do not edit - generated code. |
| 20498 | 20765 |
| 20499 | 20766 |
| 20500 @DomName('Text') | 20767 @DomName('Text') |
| 20501 class Text extends CharacterData native "Text" { | 20768 class Text extends CharacterData native "Text" { |
| 20502 factory Text(String data) => _TextFactoryProvider.createText(data); | 20769 |
| 20770 @DomName('Text.Text') | |
| 20771 @DocsEditable | |
| 20772 factory Text([String data]) { | |
| 20773 if (?data) { | |
| 20774 return Text._create_1(data); | |
| 20775 } | |
| 20776 return Text._create_2(); | |
| 20777 } | |
| 20778 static Text _create_1(data) => JS('Text', 'new Text(#)', data); | |
| 20779 static Text _create_2() => JS('Text', 'new Text()'); | |
| 20503 | 20780 |
| 20504 @JSName('webkitInsertionParent') | 20781 @JSName('webkitInsertionParent') |
| 20505 @DomName('Text.webkitInsertionParent') | 20782 @DomName('Text.webkitInsertionParent') |
| 20506 @DocsEditable | 20783 @DocsEditable |
| 20507 @SupportedBrowser(SupportedBrowser.CHROME) | 20784 @SupportedBrowser(SupportedBrowser.CHROME) |
| 20508 @SupportedBrowser(SupportedBrowser.SAFARI) | 20785 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 20509 @Experimental | 20786 @Experimental |
| 20510 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=21067 | 20787 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=21067 |
| 20511 final Node insertionParent; | 20788 final Node insertionParent; |
| 20512 | 20789 |
| (...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 21640 @DocsEditable | 21917 @DocsEditable |
| 21641 @DomName('HTMLUnknownElement') | 21918 @DomName('HTMLUnknownElement') |
| 21642 class UnknownElement extends Element native "HTMLUnknownElement" { | 21919 class UnknownElement extends Element native "HTMLUnknownElement" { |
| 21643 } | 21920 } |
| 21644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21645 // for details. All rights reserved. Use of this source code is governed by a | 21922 // for details. All rights reserved. Use of this source code is governed by a |
| 21646 // BSD-style license that can be found in the LICENSE file. | 21923 // BSD-style license that can be found in the LICENSE file. |
| 21647 | 21924 |
| 21648 | 21925 |
| 21649 @DomName('URL') | 21926 @DomName('URL') |
| 21927 @Experimental // untriaged | |
| 21650 class Url native "URL" { | 21928 class Url native "URL" { |
| 21651 | 21929 |
| 21652 static String createObjectUrl(blob_OR_source_OR_stream) => | 21930 static String createObjectUrl(blob_OR_source_OR_stream) => |
| 21653 JS('String', | 21931 JS('String', |
| 21654 '(self.URL || self.webkitURL).createObjectURL(#)', | 21932 '(self.URL || self.webkitURL).createObjectURL(#)', |
| 21655 blob_OR_source_OR_stream); | 21933 blob_OR_source_OR_stream); |
| 21656 | 21934 |
| 21657 static void revokeObjectUrl(String url) => | 21935 static void revokeObjectUrl(String url) => |
| 21658 JS('void', | 21936 JS('void', |
| 21659 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); | 21937 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 22629 @DomName('Window.innerWidth') | 22907 @DomName('Window.innerWidth') |
| 22630 @DocsEditable | 22908 @DocsEditable |
| 22631 final int innerWidth; | 22909 final int innerWidth; |
| 22632 | 22910 |
| 22633 @DomName('Window.localStorage') | 22911 @DomName('Window.localStorage') |
| 22634 @DocsEditable | 22912 @DocsEditable |
| 22635 final Storage localStorage; | 22913 final Storage localStorage; |
| 22636 | 22914 |
| 22637 @DomName('Window.locationbar') | 22915 @DomName('Window.locationbar') |
| 22638 @DocsEditable | 22916 @DocsEditable |
| 22639 final BarInfo locationbar; | 22917 final BarProp locationbar; |
| 22640 | 22918 |
| 22641 @DomName('Window.menubar') | 22919 @DomName('Window.menubar') |
| 22642 @DocsEditable | 22920 @DocsEditable |
| 22643 final BarInfo menubar; | 22921 final BarProp menubar; |
| 22644 | 22922 |
| 22645 @DomName('Window.name') | 22923 @DomName('Window.name') |
| 22646 @DocsEditable | 22924 @DocsEditable |
| 22647 String name; | 22925 String name; |
| 22648 | 22926 |
| 22649 @DomName('Window.navigator') | 22927 @DomName('Window.navigator') |
| 22650 @DocsEditable | 22928 @DocsEditable |
| 22651 final Navigator navigator; | 22929 final Navigator navigator; |
| 22652 | 22930 |
| 22653 @DomName('Window.offscreenBuffering') | 22931 @DomName('Window.offscreenBuffering') |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 22691 @DocsEditable | 22969 @DocsEditable |
| 22692 @SupportedBrowser(SupportedBrowser.CHROME) | 22970 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22693 @SupportedBrowser(SupportedBrowser.FIREFOX) | 22971 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 22694 @SupportedBrowser(SupportedBrowser.IE) | 22972 @SupportedBrowser(SupportedBrowser.IE) |
| 22695 final Performance performance; | 22973 final Performance performance; |
| 22696 | 22974 |
| 22697 @DomName('Window.personalbar') | 22975 @DomName('Window.personalbar') |
| 22698 @DocsEditable | 22976 @DocsEditable |
| 22699 // https://developer.mozilla.org/en-US/docs/DOM/window.personalbar | 22977 // https://developer.mozilla.org/en-US/docs/DOM/window.personalbar |
| 22700 @deprecated // deprecated | 22978 @deprecated // deprecated |
| 22701 final BarInfo personalbar; | 22979 final BarProp personalbar; |
| 22702 | 22980 |
| 22703 @DomName('Window.screen') | 22981 @DomName('Window.screen') |
| 22704 @DocsEditable | 22982 @DocsEditable |
| 22705 final Screen screen; | 22983 final Screen screen; |
| 22706 | 22984 |
| 22707 @DomName('Window.screenLeft') | 22985 @DomName('Window.screenLeft') |
| 22708 @DocsEditable | 22986 @DocsEditable |
| 22709 final int screenLeft; | 22987 final int screenLeft; |
| 22710 | 22988 |
| 22711 @DomName('Window.screenTop') | 22989 @DomName('Window.screenTop') |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22723 @DomName('Window.scrollX') | 23001 @DomName('Window.scrollX') |
| 22724 @DocsEditable | 23002 @DocsEditable |
| 22725 final int scrollX; | 23003 final int scrollX; |
| 22726 | 23004 |
| 22727 @DomName('Window.scrollY') | 23005 @DomName('Window.scrollY') |
| 22728 @DocsEditable | 23006 @DocsEditable |
| 22729 final int scrollY; | 23007 final int scrollY; |
| 22730 | 23008 |
| 22731 @DomName('Window.scrollbars') | 23009 @DomName('Window.scrollbars') |
| 22732 @DocsEditable | 23010 @DocsEditable |
| 22733 final BarInfo scrollbars; | 23011 final BarProp scrollbars; |
| 22734 | 23012 |
| 22735 WindowBase get self => _convertNativeToDart_Window(this._get_self); | 23013 WindowBase get self => _convertNativeToDart_Window(this._get_self); |
| 22736 @JSName('self') | 23014 @JSName('self') |
| 22737 @DomName('Window.self') | 23015 @DomName('Window.self') |
| 22738 @DocsEditable | 23016 @DocsEditable |
| 22739 @Creates('Window|=Object') | 23017 @Creates('Window|=Object') |
| 22740 @Returns('Window|=Object') | 23018 @Returns('Window|=Object') |
| 22741 final dynamic _get_self; | 23019 final dynamic _get_self; |
| 22742 | 23020 |
| 22743 @DomName('Window.sessionStorage') | 23021 @DomName('Window.sessionStorage') |
| 22744 @DocsEditable | 23022 @DocsEditable |
| 22745 final Storage sessionStorage; | 23023 final Storage sessionStorage; |
| 22746 | 23024 |
| 22747 @DomName('Window.speechSynthesis') | 23025 @DomName('Window.speechSynthesis') |
| 22748 @DocsEditable | 23026 @DocsEditable |
| 22749 @Experimental // untriaged | 23027 @Experimental // untriaged |
| 22750 final SpeechSynthesis speechSynthesis; | 23028 final SpeechSynthesis speechSynthesis; |
| 22751 | 23029 |
| 22752 @DomName('Window.status') | 23030 @DomName('Window.status') |
| 22753 @DocsEditable | 23031 @DocsEditable |
| 22754 String status; | 23032 String status; |
| 22755 | 23033 |
| 22756 @DomName('Window.statusbar') | 23034 @DomName('Window.statusbar') |
| 22757 @DocsEditable | 23035 @DocsEditable |
| 22758 final BarInfo statusbar; | 23036 final BarProp statusbar; |
| 22759 | 23037 |
| 22760 @DomName('Window.styleMedia') | 23038 @DomName('Window.styleMedia') |
| 22761 @DocsEditable | 23039 @DocsEditable |
| 22762 // http://developer.apple.com/library/safari/#documentation/SafariDOMAdditions /Reference/StyleMedia/StyleMedia/StyleMedia.html | 23040 // http://developer.apple.com/library/safari/#documentation/SafariDOMAdditions /Reference/StyleMedia/StyleMedia/StyleMedia.html |
| 22763 @Experimental // nonstandard | 23041 @Experimental // nonstandard |
| 22764 final StyleMedia styleMedia; | 23042 final StyleMedia styleMedia; |
| 22765 | 23043 |
| 22766 @DomName('Window.toolbar') | 23044 @DomName('Window.toolbar') |
| 22767 @DocsEditable | 23045 @DocsEditable |
| 22768 final BarInfo toolbar; | 23046 final BarProp toolbar; |
| 22769 | 23047 |
| 22770 WindowBase get top => _convertNativeToDart_Window(this._get_top); | 23048 WindowBase get top => _convertNativeToDart_Window(this._get_top); |
| 22771 @JSName('top') | 23049 @JSName('top') |
| 22772 @DomName('Window.top') | 23050 @DomName('Window.top') |
| 22773 @DocsEditable | 23051 @DocsEditable |
| 22774 @Creates('Window|=Object') | 23052 @Creates('Window|=Object') |
| 22775 @Returns('Window|=Object') | 23053 @Returns('Window|=Object') |
| 22776 final dynamic _get_top; | 23054 final dynamic _get_top; |
| 22777 | 23055 |
| 22778 @JSName('webkitNotifications') | 23056 @JSName('webkitNotifications') |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 22796 final StorageInfo storageInfo; | 23074 final StorageInfo storageInfo; |
| 22797 | 23075 |
| 22798 WindowBase get window => _convertNativeToDart_Window(this._get_window); | 23076 WindowBase get window => _convertNativeToDart_Window(this._get_window); |
| 22799 @JSName('window') | 23077 @JSName('window') |
| 22800 @DomName('Window.window') | 23078 @DomName('Window.window') |
| 22801 @DocsEditable | 23079 @DocsEditable |
| 22802 @Creates('Window|=Object') | 23080 @Creates('Window|=Object') |
| 22803 @Returns('Window|=Object') | 23081 @Returns('Window|=Object') |
| 22804 final dynamic _get_window; | 23082 final dynamic _get_window; |
| 22805 | 23083 |
| 23084 @DomName('Window') | |
| 23085 @Creates('Window|=Object') | |
| 23086 @Returns('Window|=Object') | |
| 23087 WindowBase anonymousIndexedGetter(int index) { | |
| 23088 return _convertNativeToDart_Window(_anonymousIndexedGetter_1(index)); | |
| 23089 } | |
| 23090 @JSName('None') | |
| 23091 @DomName('Window') | |
| 23092 @Creates('Window|=Object') | |
| 23093 @Returns('Window|=Object') | |
| 23094 _anonymousIndexedGetter_1(index) native; | |
| 23095 | |
| 22806 @JSName('addEventListener') | 23096 @JSName('addEventListener') |
| 22807 @DomName('Window.addEventListener') | 23097 @DomName('Window.addEventListener') |
| 22808 @DocsEditable | 23098 @DocsEditable |
| 22809 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; | 23099 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; |
| 22810 | 23100 |
| 22811 @DomName('Window.alert') | 23101 @DomName('Window.alert') |
| 22812 @DocsEditable | 23102 @DocsEditable |
| 22813 void alert(String message) native; | 23103 void alert(String message) native; |
| 22814 | 23104 |
| 22815 @DomName('Window.atob') | 23105 @DomName('Window.atob') |
| 22816 @DocsEditable | 23106 @DocsEditable |
| 22817 String atob(String string) native; | 23107 String atob(String string) native; |
| 22818 | 23108 |
| 22819 @DomName('Window.btoa') | 23109 @DomName('Window.btoa') |
| 22820 @DocsEditable | 23110 @DocsEditable |
| 22821 String btoa(String string) native; | 23111 String btoa(String string) native; |
| 22822 | 23112 |
| 22823 @DomName('Window.captureEvents') | |
| 22824 @DocsEditable | |
| 22825 // http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-capture | |
| 22826 @deprecated // deprecated | |
| 22827 void captureEvents() native; | |
| 22828 | |
| 22829 @JSName('clearInterval') | 23113 @JSName('clearInterval') |
| 22830 @DomName('Window.clearInterval') | 23114 @DomName('Window.clearInterval') |
| 22831 @DocsEditable | 23115 @DocsEditable |
| 22832 void _clearInterval(int handle) native; | 23116 void _clearInterval(int handle) native; |
| 22833 | 23117 |
| 22834 @JSName('clearTimeout') | 23118 @JSName('clearTimeout') |
| 22835 @DomName('Window.clearTimeout') | 23119 @DomName('Window.clearTimeout') |
| 22836 @DocsEditable | 23120 @DocsEditable |
| 22837 void _clearTimeout(int handle) native; | 23121 void _clearTimeout(int handle) native; |
| 22838 | 23122 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 22910 void _postMessage_1(message, targetOrigin, List messagePorts) native; | 23194 void _postMessage_1(message, targetOrigin, List messagePorts) native; |
| 22911 @JSName('postMessage') | 23195 @JSName('postMessage') |
| 22912 @DomName('Window.postMessage') | 23196 @DomName('Window.postMessage') |
| 22913 @DocsEditable | 23197 @DocsEditable |
| 22914 void _postMessage_2(message, targetOrigin) native; | 23198 void _postMessage_2(message, targetOrigin) native; |
| 22915 | 23199 |
| 22916 @DomName('Window.print') | 23200 @DomName('Window.print') |
| 22917 @DocsEditable | 23201 @DocsEditable |
| 22918 void print() native; | 23202 void print() native; |
| 22919 | 23203 |
| 22920 @DomName('Window.releaseEvents') | |
| 22921 @DocsEditable | |
| 22922 // http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-capture | |
| 22923 @deprecated // deprecated | |
| 22924 void releaseEvents() native; | |
| 22925 | |
| 22926 @JSName('removeEventListener') | 23204 @JSName('removeEventListener') |
| 22927 @DomName('Window.removeEventListener') | 23205 @DomName('Window.removeEventListener') |
| 22928 @DocsEditable | 23206 @DocsEditable |
| 22929 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; | 23207 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; |
| 22930 | 23208 |
| 22931 @DomName('Window.resizeBy') | 23209 @DomName('Window.resizeBy') |
| 22932 @DocsEditable | 23210 @DocsEditable |
| 22933 void resizeBy(num x, num y) native; | 23211 void resizeBy(num x, num y) native; |
| 22934 | 23212 |
| 22935 @DomName('Window.resizeTo') | 23213 @DomName('Window.resizeTo') |
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 24094 @DomName('WebKitPoint.y') | 24372 @DomName('WebKitPoint.y') |
| 24095 @DocsEditable | 24373 @DocsEditable |
| 24096 num y; | 24374 num y; |
| 24097 } | 24375 } |
| 24098 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24099 // for details. All rights reserved. Use of this source code is governed by a | 24377 // for details. All rights reserved. Use of this source code is governed by a |
| 24100 // BSD-style license that can be found in the LICENSE file. | 24378 // BSD-style license that can be found in the LICENSE file. |
| 24101 | 24379 |
| 24102 | 24380 |
| 24103 @DocsEditable | 24381 @DocsEditable |
| 24104 @DomName('EntityReference') | |
| 24105 @deprecated // deprecated | |
| 24106 abstract class _EntityReference extends Node native "EntityReference" { | |
| 24107 } | |
| 24108 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24109 // for details. All rights reserved. Use of this source code is governed by a | |
| 24110 // BSD-style license that can be found in the LICENSE file. | |
| 24111 | |
| 24112 | |
| 24113 @DocsEditable | |
| 24114 @DomName('EntryArray') | 24382 @DomName('EntryArray') |
| 24115 // http://www.w3.org/TR/file-system-api/#the-entry-interface | 24383 // http://www.w3.org/TR/file-system-api/#the-entry-interface |
| 24116 @Experimental | 24384 @Experimental |
| 24117 class _EntryArray extends Interceptor with ListMixin<Entry>, ImmutableListMixin< Entry> implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" { | 24385 class _EntryArray extends Interceptor with ListMixin<Entry>, ImmutableListMixin< Entry> implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" { |
| 24118 | 24386 |
| 24119 @DomName('EntryArray.length') | 24387 @DomName('EntryArray.length') |
| 24120 @DocsEditable | 24388 @DocsEditable |
| 24121 int get length => JS("int", "#.length", this); | 24389 int get length => JS("int", "#.length", this); |
| 24122 | 24390 |
| 24123 Entry operator[](int index) { | 24391 Entry operator[](int index) { |
| (...skipping 5225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 29349 _position = nextPosition; | 29617 _position = nextPosition; |
| 29350 return true; | 29618 return true; |
| 29351 } | 29619 } |
| 29352 _current = null; | 29620 _current = null; |
| 29353 _position = _array.length; | 29621 _position = _array.length; |
| 29354 return false; | 29622 return false; |
| 29355 } | 29623 } |
| 29356 | 29624 |
| 29357 T get current => _current; | 29625 T get current => _current; |
| 29358 } | 29626 } |
| OLD | NEW |