OLD | NEW |
1 #library('html'); | 1 #library('html'); |
2 | 2 |
3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 // DO NOT EDIT | 7 // DO NOT EDIT |
8 // Auto-generated dart:html library. | 8 // Auto-generated dart:html library. |
9 | 9 |
10 | 10 |
(...skipping 20306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20317 * getElementsByTagNameNS | 20317 * getElementsByTagNameNS |
20318 */ | 20318 */ |
20319 ElementList queryAll(String selectors); | 20319 ElementList queryAll(String selectors); |
20320 | 20320 |
20321 /** | 20321 /** |
20322 * @domName childElementCount, firstElementChild, lastElementChild, | 20322 * @domName childElementCount, firstElementChild, lastElementChild, |
20323 * children, Node.nodes.add | 20323 * children, Node.nodes.add |
20324 */ | 20324 */ |
20325 ElementList get elements(); | 20325 ElementList get elements(); |
20326 | 20326 |
20327 // TODO: The type of value should be Collection<Element>. See http://b/5392897 | 20327 void set elements(Collection<Element> value); |
20328 void set elements(value); | |
20329 | 20328 |
20330 /** @domName className, classList */ | 20329 /** @domName className, classList */ |
20331 Set<String> get classes(); | 20330 Set<String> get classes(); |
20332 | 20331 |
20333 // TODO: The type of value should be Collection<String>. See http://b/5392897 | 20332 void set classes(Collection<String> value); |
20334 void set classes(value); | |
20335 | 20333 |
20336 Map<String, String> get dataAttributes(); | 20334 Map<String, String> get dataAttributes(); |
20337 void set dataAttributes(Map<String, String> value); | 20335 void set dataAttributes(Map<String, String> value); |
20338 | 20336 |
20339 /** | 20337 /** |
20340 * @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth, | 20338 * @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth, |
20341 * clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft, | 20339 * clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft, |
20342 * scrollHeight, scrollWidth, scrollTop, scrollLeft | 20340 * scrollHeight, scrollWidth, scrollTop, scrollLeft |
20343 */ | 20341 */ |
20344 Future<ElementRect> get rect(); | 20342 Future<ElementRect> get rect(); |
(...skipping 2765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23110 typedef bool NavigatorUserMediaSuccessCallback(LocalMediaStream stream); | 23108 typedef bool NavigatorUserMediaSuccessCallback(LocalMediaStream stream); |
23111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23112 // for details. All rights reserved. Use of this source code is governed by a | 23110 // for details. All rights reserved. Use of this source code is governed by a |
23113 // BSD-style license that can be found in the LICENSE file. | 23111 // BSD-style license that can be found in the LICENSE file. |
23114 | 23112 |
23115 // WARNING: Do not edit - generated code. | 23113 // WARNING: Do not edit - generated code. |
23116 | 23114 |
23117 interface Node extends EventTarget { | 23115 interface Node extends EventTarget { |
23118 NodeList get nodes(); | 23116 NodeList get nodes(); |
23119 | 23117 |
23120 // TODO: The type of value should be Collection<Node>. See http://b/5392897 | 23118 void set nodes(Collection<Node> value); |
23121 void set nodes(value); | |
23122 | 23119 |
23123 Node replaceWith(Node otherNode); | 23120 Node replaceWith(Node otherNode); |
23124 | 23121 |
23125 Node remove(); | 23122 Node remove(); |
23126 | 23123 |
23127 | 23124 |
23128 static final int ATTRIBUTE_NODE = 2; | 23125 static final int ATTRIBUTE_NODE = 2; |
23129 | 23126 |
23130 static final int CDATA_SECTION_NODE = 4; | 23127 static final int CDATA_SECTION_NODE = 4; |
23131 | 23128 |
(...skipping 7838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
30970 if (length < 0) throw new IllegalArgumentException('length'); | 30967 if (length < 0) throw new IllegalArgumentException('length'); |
30971 if (start < 0) throw new IndexOutOfRangeException(start); | 30968 if (start < 0) throw new IndexOutOfRangeException(start); |
30972 int end = start + length; | 30969 int end = start + length; |
30973 if (end > a.length) throw new IndexOutOfRangeException(end); | 30970 if (end > a.length) throw new IndexOutOfRangeException(end); |
30974 for (int i = start; i < end; i++) { | 30971 for (int i = start; i < end; i++) { |
30975 accumulator.add(a[i]); | 30972 accumulator.add(a[i]); |
30976 } | 30973 } |
30977 return accumulator; | 30974 return accumulator; |
30978 } | 30975 } |
30979 } | 30976 } |
OLD | NEW |