OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:isolate'; | 3 import 'dart:isolate'; |
4 import 'dart:json'; | 4 import 'dart:json'; |
5 import 'dart:svg' as svg; | 5 import 'dart:svg' as svg; |
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7 // for details. All rights reserved. Use of this source code is governed by a | 7 // for details. All rights reserved. Use of this source code is governed by a |
8 // BSD-style license that can be found in the LICENSE file. | 8 // BSD-style license that can be found in the LICENSE file. |
9 | 9 |
10 // DO NOT EDIT | 10 // DO NOT EDIT |
(...skipping 12860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12871 final int totalJSHeapSize; | 12871 final int totalJSHeapSize; |
12872 | 12872 |
12873 /// @domName MemoryInfo.usedJSHeapSize; @docsEditable true | 12873 /// @domName MemoryInfo.usedJSHeapSize; @docsEditable true |
12874 final int usedJSHeapSize; | 12874 final int usedJSHeapSize; |
12875 } | 12875 } |
12876 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12876 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12877 // for details. All rights reserved. Use of this source code is governed by a | 12877 // for details. All rights reserved. Use of this source code is governed by a |
12878 // BSD-style license that can be found in the LICENSE file. | 12878 // BSD-style license that can be found in the LICENSE file. |
12879 | 12879 |
12880 | 12880 |
| 12881 /** |
| 12882 * An HTML <menu> element. |
| 12883 * |
| 12884 * A <menu> element represents an unordered list of menu commands. |
| 12885 * |
| 12886 * See also: |
| 12887 * |
| 12888 * * [Menu Element](https://developer.mozilla.org/en-US/docs/HTML/Element/menu)
from MDN. |
| 12889 * * [Menu Element](http://www.w3.org/TR/html5/the-menu-element.html#the-menu-e
lement) from the W3C. |
| 12890 */ |
12881 /// @domName HTMLMenuElement; @docsEditable true | 12891 /// @domName HTMLMenuElement; @docsEditable true |
12882 class MenuElement extends Element implements Element native "*HTMLMenuElement" { | 12892 class MenuElement extends Element implements Element native "*HTMLMenuElement" { |
12883 | 12893 |
12884 factory MenuElement() => document.$dom_createElement("menu"); | 12894 factory MenuElement() => document.$dom_createElement("menu"); |
12885 | |
12886 /// @domName HTMLMenuElement.compact; @docsEditable true | |
12887 bool compact; | |
12888 } | 12895 } |
12889 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12896 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12890 // for details. All rights reserved. Use of this source code is governed by a | 12897 // for details. All rights reserved. Use of this source code is governed by a |
12891 // BSD-style license that can be found in the LICENSE file. | 12898 // BSD-style license that can be found in the LICENSE file. |
12892 | 12899 |
12893 | 12900 |
12894 /// @domName MessageChannel; @docsEditable true | 12901 /// @domName MessageChannel; @docsEditable true |
12895 class MessageChannel native "*MessageChannel" { | 12902 class MessageChannel native "*MessageChannel" { |
12896 | 12903 |
12897 factory MessageChannel() => _MessageChannelFactoryProvider.createMessageChanne
l(); | 12904 factory MessageChannel() => _MessageChannelFactoryProvider.createMessageChanne
l(); |
(...skipping 9072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21970 return length == 0; | 21977 return length == 0; |
21971 } | 21978 } |
21972 | 21979 |
21973 /** | 21980 /** |
21974 * Checks to see if the node should be included in this map. | 21981 * Checks to see if the node should be included in this map. |
21975 */ | 21982 */ |
21976 bool _matches(Node node); | 21983 bool _matches(Node node); |
21977 } | 21984 } |
21978 | 21985 |
21979 /** | 21986 /** |
21980 * Wrapper to expose Element.attributes as a typed map. | 21987 * Wrapper to expose [Element.attributes] as a typed map. |
21981 */ | 21988 */ |
21982 class _ElementAttributeMap extends _AttributeMap { | 21989 class _ElementAttributeMap extends _AttributeMap { |
21983 | 21990 |
21984 final Element _element; | 21991 final Element _element; |
21985 | 21992 |
21986 _ElementAttributeMap(this._element); | 21993 _ElementAttributeMap(this._element); |
21987 | 21994 |
21988 bool containsKey(String key) { | 21995 bool containsKey(String key) { |
21989 return _element.$dom_hasAttribute(key); | 21996 return _element.$dom_hasAttribute(key); |
21990 } | 21997 } |
(...skipping 3070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25061 if (length < 0) throw new ArgumentError('length'); | 25068 if (length < 0) throw new ArgumentError('length'); |
25062 if (start < 0) throw new RangeError.value(start); | 25069 if (start < 0) throw new RangeError.value(start); |
25063 int end = start + length; | 25070 int end = start + length; |
25064 if (end > a.length) throw new RangeError.value(end); | 25071 if (end > a.length) throw new RangeError.value(end); |
25065 for (int i = start; i < end; i++) { | 25072 for (int i = start; i < end; i++) { |
25066 accumulator.add(a[i]); | 25073 accumulator.add(a[i]); |
25067 } | 25074 } |
25068 return accumulator; | 25075 return accumulator; |
25069 } | 25076 } |
25070 } | 25077 } |
OLD | NEW |