| OLD | NEW |
| 1 #library('dom'); | 1 #library('dom'); |
| 2 | 2 |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2011, 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 DOM library. | 8 // Auto-generated Dart DOM library. |
| 9 | 9 |
| 10 | 10 |
| (...skipping 11916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11927 void setParameter(String namespaceURI, String localName, String value) native; | 11927 void setParameter(String namespaceURI, String localName, String value) native; |
| 11928 | 11928 |
| 11929 _DocumentJs transformToDocument(_NodeJs source) native; | 11929 _DocumentJs transformToDocument(_NodeJs source) native; |
| 11930 | 11930 |
| 11931 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na
tive; | 11931 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na
tive; |
| 11932 } | 11932 } |
| 11933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11934 // for details. All rights reserved. Use of this source code is governed by a | 11934 // for details. All rights reserved. Use of this source code is governed by a |
| 11935 // BSD-style license that can be found in the LICENSE file. | 11935 // BSD-style license that can be found in the LICENSE file. |
| 11936 | 11936 |
| 11937 class _ArrayBufferFactoryProvider { |
| 11938 factory ArrayBuffer(int length) native |
| 11939 '''return new ArrayBuffer(length);'''; |
| 11940 } |
| 11941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11942 // for details. All rights reserved. Use of this source code is governed by a |
| 11943 // BSD-style license that can be found in the LICENSE file. |
| 11944 |
| 11937 class _BlobFactoryProvider { | 11945 class _BlobFactoryProvider { |
| 11938 factory Blob(List blobParts, [String type, String endings]) native | 11946 factory Blob(List blobParts, [String type, String endings]) native |
| 11939 '''return new Blob(blobParts, type, endings);'''; | 11947 '''return new Blob(blobParts, type, endings);'''; |
| 11940 } | 11948 } |
| 11941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11942 // for details. All rights reserved. Use of this source code is governed by a | 11950 // for details. All rights reserved. Use of this source code is governed by a |
| 11943 // BSD-style license that can be found in the LICENSE file. | 11951 // BSD-style license that can be found in the LICENSE file. |
| 11944 | 11952 |
| 11945 class _DOMParserFactoryProvider { | 11953 class _DOMParserFactoryProvider { |
| 11946 factory DOMParser() native | 11954 factory DOMParser() native |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12199 bool dispatchEvent(Event evt); | 12207 bool dispatchEvent(Event evt); |
| 12200 | 12208 |
| 12201 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 12209 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 12202 } | 12210 } |
| 12203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12204 // for details. All rights reserved. Use of this source code is governed by a | 12212 // for details. All rights reserved. Use of this source code is governed by a |
| 12205 // BSD-style license that can be found in the LICENSE file. | 12213 // BSD-style license that can be found in the LICENSE file. |
| 12206 | 12214 |
| 12207 // WARNING: Do not edit - generated code. | 12215 // WARNING: Do not edit - generated code. |
| 12208 | 12216 |
| 12209 interface ArrayBuffer { | 12217 interface ArrayBuffer default _ArrayBufferFactoryProvider { |
| 12218 |
| 12219 ArrayBuffer(int length); |
| 12210 | 12220 |
| 12211 final int byteLength; | 12221 final int byteLength; |
| 12212 | 12222 |
| 12213 ArrayBuffer slice(int begin, [int end]); | 12223 ArrayBuffer slice(int begin, [int end]); |
| 12214 } | 12224 } |
| 12215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12216 // for details. All rights reserved. Use of this source code is governed by a | 12226 // for details. All rights reserved. Use of this source code is governed by a |
| 12217 // BSD-style license that can be found in the LICENSE file. | 12227 // BSD-style license that can be found in the LICENSE file. |
| 12218 | 12228 |
| 12219 // WARNING: Do not edit - generated code. | 12229 // WARNING: Do not edit - generated code. |
| (...skipping 13038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25258 if (length < 0) throw new IllegalArgumentException('length'); | 25268 if (length < 0) throw new IllegalArgumentException('length'); |
| 25259 if (start < 0) throw new IndexOutOfRangeException(start); | 25269 if (start < 0) throw new IndexOutOfRangeException(start); |
| 25260 int end = start + length; | 25270 int end = start + length; |
| 25261 if (end > a.length) throw new IndexOutOfRangeException(end); | 25271 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 25262 for (int i = start; i < end; i++) { | 25272 for (int i = start; i < end; i++) { |
| 25263 accumulator.add(a[i]); | 25273 accumulator.add(a[i]); |
| 25264 } | 25274 } |
| 25265 return accumulator; | 25275 return accumulator; |
| 25266 } | 25276 } |
| 25267 } | 25277 } |
| OLD | NEW |