| 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 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 class _DOMMimeTypeArrayJs extends _DOMTypeJs implements DOMMimeTypeArray native
"*DOMMimeTypeArray" { | 1152 class _DOMMimeTypeArrayJs extends _DOMTypeJs implements DOMMimeTypeArray native
"*DOMMimeTypeArray" { |
| 1153 | 1153 |
| 1154 int get length() native "return this.length;"; | 1154 int get length() native "return this.length;"; |
| 1155 | 1155 |
| 1156 _DOMMimeTypeJs item(int index) native; | 1156 _DOMMimeTypeJs item(int index) native; |
| 1157 | 1157 |
| 1158 _DOMMimeTypeJs namedItem(String name) native; | 1158 _DOMMimeTypeJs namedItem(String name) native; |
| 1159 } | 1159 } |
| 1160 | 1160 |
| 1161 class _DOMParserJs extends _DOMTypeJs implements DOMParser native "*DOMParser" { | 1161 class _DOMParserJs extends _DOMTypeJs implements DOMParser native "*DOMParser" { |
| 1162 DOMParser() native; |
| 1162 | 1163 |
| 1163 _DocumentJs parseFromString(String str, String contentType) native; | 1164 _DocumentJs parseFromString(String str, String contentType) native; |
| 1164 } | 1165 } |
| 1165 | 1166 |
| 1166 class _DOMPluginJs extends _DOMTypeJs implements DOMPlugin native "*DOMPlugin" { | 1167 class _DOMPluginJs extends _DOMTypeJs implements DOMPlugin native "*DOMPlugin" { |
| 1167 | 1168 |
| 1168 String get description() native "return this.description;"; | 1169 String get description() native "return this.description;"; |
| 1169 | 1170 |
| 1170 String get filename() native "return this.filename;"; | 1171 String get filename() native "return this.filename;"; |
| 1171 | 1172 |
| (...skipping 13234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14406 DOMMimeType item(int index); | 14407 DOMMimeType item(int index); |
| 14407 | 14408 |
| 14408 DOMMimeType namedItem(String name); | 14409 DOMMimeType namedItem(String name); |
| 14409 } | 14410 } |
| 14410 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 14411 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 14411 // for details. All rights reserved. Use of this source code is governed by a | 14412 // for details. All rights reserved. Use of this source code is governed by a |
| 14412 // BSD-style license that can be found in the LICENSE file. | 14413 // BSD-style license that can be found in the LICENSE file. |
| 14413 | 14414 |
| 14414 // WARNING: Do not edit - generated code. | 14415 // WARNING: Do not edit - generated code. |
| 14415 | 14416 |
| 14416 interface DOMParser { | 14417 interface DOMParser default _DOMParserFactoryProvider { |
| 14418 |
| 14419 DOMParser(); |
| 14417 | 14420 |
| 14418 Document parseFromString(String str, String contentType); | 14421 Document parseFromString(String str, String contentType); |
| 14419 } | 14422 } |
| 14420 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 14423 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 14421 // for details. All rights reserved. Use of this source code is governed by a | 14424 // for details. All rights reserved. Use of this source code is governed by a |
| 14422 // BSD-style license that can be found in the LICENSE file. | 14425 // BSD-style license that can be found in the LICENSE file. |
| 14423 | 14426 |
| 14424 // WARNING: Do not edit - generated code. | 14427 // WARNING: Do not edit - generated code. |
| 14425 | 14428 |
| 14426 interface DOMPlugin { | 14429 interface DOMPlugin { |
| (...skipping 12258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26685 // has a bug (5399939) preventing that. | 26688 // has a bug (5399939) preventing that. |
| 26686 | 26689 |
| 26687 class _AudioContextFactoryProvider { | 26690 class _AudioContextFactoryProvider { |
| 26688 | 26691 |
| 26689 factory AudioContext() native ''' | 26692 factory AudioContext() native ''' |
| 26690 var constructor = window.AudioContext || window.webkitAudioContext; | 26693 var constructor = window.AudioContext || window.webkitAudioContext; |
| 26691 return new constructor(); | 26694 return new constructor(); |
| 26692 '''; | 26695 '''; |
| 26693 } | 26696 } |
| 26694 | 26697 |
| 26698 class _DOMParserFactoryProvider { |
| 26699 factory DOMParser() native '''return new DOMParser();'''; |
| 26700 } |
| 26701 |
| 26695 class _FileReaderFactoryProvider { | 26702 class _FileReaderFactoryProvider { |
| 26696 | 26703 |
| 26697 factory FileReader() native '''return new FileReader();'''; | 26704 factory FileReader() native '''return new FileReader();'''; |
| 26698 } | 26705 } |
| 26699 | 26706 |
| 26700 class _TypedArrayFactoryProvider { | 26707 class _TypedArrayFactoryProvider { |
| 26701 | 26708 |
| 26702 factory Float32Array(int length) => _F32(length); | 26709 factory Float32Array(int length) => _F32(length); |
| 26703 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list)); | 26710 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list)); |
| 26704 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer); | 26711 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26862 if (length < 0) throw new IllegalArgumentException('length'); | 26869 if (length < 0) throw new IllegalArgumentException('length'); |
| 26863 if (start < 0) throw new IndexOutOfRangeException(start); | 26870 if (start < 0) throw new IndexOutOfRangeException(start); |
| 26864 int end = start + length; | 26871 int end = start + length; |
| 26865 if (end > a.length) throw new IndexOutOfRangeException(end); | 26872 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 26866 for (int i = start; i < end; i++) { | 26873 for (int i = start; i < end; i++) { |
| 26867 accumulator.add(a[i]); | 26874 accumulator.add(a[i]); |
| 26868 } | 26875 } |
| 26869 return accumulator; | 26876 return accumulator; |
| 26870 } | 26877 } |
| 26871 } | 26878 } |
| OLD | NEW |