| OLD | NEW |
| 1 #library('dart:dom_deprecated'); | 1 #library('dart:dom_deprecated'); |
| 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 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1004 final _DirectoryEntryJs root; | 1004 final _DirectoryEntryJs root; |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 class _DOMFileSystemSyncJs extends _DOMTypeJs implements DOMFileSystemSync nativ
e "*DOMFileSystemSync" { | 1007 class _DOMFileSystemSyncJs extends _DOMTypeJs implements DOMFileSystemSync nativ
e "*DOMFileSystemSync" { |
| 1008 | 1008 |
| 1009 final String name; | 1009 final String name; |
| 1010 | 1010 |
| 1011 final _DirectoryEntrySyncJs root; | 1011 final _DirectoryEntrySyncJs root; |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 class _DOMFormDataJs extends _DOMTypeJs implements DOMFormData native "*DOMFormD
ata" { | |
| 1015 | |
| 1016 void append(String name, String value, String filename) native; | |
| 1017 } | |
| 1018 | |
| 1019 class _DOMImplementationJs extends _DOMTypeJs implements DOMImplementation nativ
e "*DOMImplementation" { | 1014 class _DOMImplementationJs extends _DOMTypeJs implements DOMImplementation nativ
e "*DOMImplementation" { |
| 1020 | 1015 |
| 1021 _CSSStyleSheetJs createCSSStyleSheet(String title, String media) native; | 1016 _CSSStyleSheetJs createCSSStyleSheet(String title, String media) native; |
| 1022 | 1017 |
| 1023 _DocumentJs createDocument(String namespaceURI, String qualifiedName, _Documen
tTypeJs doctype) native; | 1018 _DocumentJs createDocument(String namespaceURI, String qualifiedName, _Documen
tTypeJs doctype) native; |
| 1024 | 1019 |
| 1025 _DocumentTypeJs createDocumentType(String qualifiedName, String publicId, Stri
ng systemId) native; | 1020 _DocumentTypeJs createDocumentType(String qualifiedName, String publicId, Stri
ng systemId) native; |
| 1026 | 1021 |
| 1027 _HTMLDocumentJs createHTMLDocument(String title) native; | 1022 _HTMLDocumentJs createHTMLDocument(String title) native; |
| 1028 | 1023 |
| (...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2580 List<num> getRange(int start, int rangeLength) => | 2575 List<num> getRange(int start, int rangeLength) => |
| 2581 _Lists.getRange(this, start, rangeLength, <num>[]); | 2576 _Lists.getRange(this, start, rangeLength, <num>[]); |
| 2582 | 2577 |
| 2583 // -- end List<num> mixins. | 2578 // -- end List<num> mixins. |
| 2584 | 2579 |
| 2585 void setElements(Object array, [int offset]) native 'set'; | 2580 void setElements(Object array, [int offset]) native 'set'; |
| 2586 | 2581 |
| 2587 _Float64ArrayJs subarray(int start, [int end]) native; | 2582 _Float64ArrayJs subarray(int start, [int end]) native; |
| 2588 } | 2583 } |
| 2589 | 2584 |
| 2585 class _FormDataJs extends _DOMTypeJs implements FormData native "*FormData" { |
| 2586 |
| 2587 void append(String name, String value, String filename) native; |
| 2588 } |
| 2589 |
| 2590 class _GamepadJs extends _DOMTypeJs implements Gamepad native "*Gamepad" { | 2590 class _GamepadJs extends _DOMTypeJs implements Gamepad native "*Gamepad" { |
| 2591 | 2591 |
| 2592 final List<num> axes; | 2592 final List<num> axes; |
| 2593 | 2593 |
| 2594 final List<num> buttons; | 2594 final List<num> buttons; |
| 2595 | 2595 |
| 2596 final String id; | 2596 final String id; |
| 2597 | 2597 |
| 2598 final int index; | 2598 final int index; |
| 2599 | 2599 |
| (...skipping 9505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12105 // BSD-style license that can be found in the LICENSE file. | 12105 // BSD-style license that can be found in the LICENSE file. |
| 12106 | 12106 |
| 12107 class _FileReaderSyncFactoryProvider { | 12107 class _FileReaderSyncFactoryProvider { |
| 12108 factory FileReaderSync() native | 12108 factory FileReaderSync() native |
| 12109 '''return new FileReaderSync();'''; | 12109 '''return new FileReaderSync();'''; |
| 12110 } | 12110 } |
| 12111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12112 // for details. All rights reserved. Use of this source code is governed by a | 12112 // for details. All rights reserved. Use of this source code is governed by a |
| 12113 // BSD-style license that can be found in the LICENSE file. | 12113 // BSD-style license that can be found in the LICENSE file. |
| 12114 | 12114 |
| 12115 class _FormDataFactoryProvider { |
| 12116 factory FormData([FormElement form]) native |
| 12117 '''return new FormData(form);'''; |
| 12118 } |
| 12119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12120 // for details. All rights reserved. Use of this source code is governed by a |
| 12121 // BSD-style license that can be found in the LICENSE file. |
| 12122 |
| 12115 class _HTMLAudioElementFactoryProvider { | 12123 class _HTMLAudioElementFactoryProvider { |
| 12116 factory HTMLAudioElement([String src = null]) native | 12124 factory HTMLAudioElement([String src = null]) native |
| 12117 ''' | 12125 ''' |
| 12118 if (src == null) return new Audio(); | 12126 if (src == null) return new Audio(); |
| 12119 return new Audio(src); | 12127 return new Audio(src); |
| 12120 '''; | 12128 '''; |
| 12121 } | 12129 } |
| 12122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12123 // for details. All rights reserved. Use of this source code is governed by a | 12131 // for details. All rights reserved. Use of this source code is governed by a |
| 12124 // BSD-style license that can be found in the LICENSE file. | 12132 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13616 final String name; | 13624 final String name; |
| 13617 | 13625 |
| 13618 final DirectoryEntrySync root; | 13626 final DirectoryEntrySync root; |
| 13619 } | 13627 } |
| 13620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13621 // for details. All rights reserved. Use of this source code is governed by a | 13629 // for details. All rights reserved. Use of this source code is governed by a |
| 13622 // BSD-style license that can be found in the LICENSE file. | 13630 // BSD-style license that can be found in the LICENSE file. |
| 13623 | 13631 |
| 13624 // WARNING: Do not edit - generated code. | 13632 // WARNING: Do not edit - generated code. |
| 13625 | 13633 |
| 13626 interface FormData { | |
| 13627 | |
| 13628 void append(String name, String value, String filename); | |
| 13629 } | |
| 13630 | |
| 13631 interface DOMFormData extends FormData { | |
| 13632 } | |
| 13633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13634 // for details. All rights reserved. Use of this source code is governed by a | |
| 13635 // BSD-style license that can be found in the LICENSE file. | |
| 13636 | |
| 13637 // WARNING: Do not edit - generated code. | |
| 13638 | |
| 13639 interface DOMImplementation { | 13634 interface DOMImplementation { |
| 13640 | 13635 |
| 13641 CSSStyleSheet createCSSStyleSheet(String title, String media); | 13636 CSSStyleSheet createCSSStyleSheet(String title, String media); |
| 13642 | 13637 |
| 13643 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp
e doctype); | 13638 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp
e doctype); |
| 13644 | 13639 |
| 13645 DocumentType createDocumentType(String qualifiedName, String publicId, String
systemId); | 13640 DocumentType createDocumentType(String qualifiedName, String publicId, String
systemId); |
| 13646 | 13641 |
| 13647 HTMLDocument createHTMLDocument(String title); | 13642 HTMLDocument createHTMLDocument(String title); |
| 13648 | 13643 |
| (...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15247 void setElements(Object array, [int offset]); | 15242 void setElements(Object array, [int offset]); |
| 15248 | 15243 |
| 15249 Float64Array subarray(int start, [int end]); | 15244 Float64Array subarray(int start, [int end]); |
| 15250 } | 15245 } |
| 15251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15252 // for details. All rights reserved. Use of this source code is governed by a | 15247 // for details. All rights reserved. Use of this source code is governed by a |
| 15253 // BSD-style license that can be found in the LICENSE file. | 15248 // BSD-style license that can be found in the LICENSE file. |
| 15254 | 15249 |
| 15255 // WARNING: Do not edit - generated code. | 15250 // WARNING: Do not edit - generated code. |
| 15256 | 15251 |
| 15252 interface FormData default _FormDataFactoryProvider { |
| 15253 |
| 15254 FormData([FormElement form]); |
| 15255 |
| 15256 void append(String name, String value, String filename); |
| 15257 } |
| 15258 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15259 // for details. All rights reserved. Use of this source code is governed by a |
| 15260 // BSD-style license that can be found in the LICENSE file. |
| 15261 |
| 15262 // WARNING: Do not edit - generated code. |
| 15263 |
| 15257 interface Gamepad { | 15264 interface Gamepad { |
| 15258 | 15265 |
| 15259 final List<num> axes; | 15266 final List<num> axes; |
| 15260 | 15267 |
| 15261 final List<num> buttons; | 15268 final List<num> buttons; |
| 15262 | 15269 |
| 15263 final String id; | 15270 final String id; |
| 15264 | 15271 |
| 15265 final int index; | 15272 final int index; |
| 15266 | 15273 |
| (...skipping 10259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25526 if (length < 0) throw new IllegalArgumentException('length'); | 25533 if (length < 0) throw new IllegalArgumentException('length'); |
| 25527 if (start < 0) throw new IndexOutOfRangeException(start); | 25534 if (start < 0) throw new IndexOutOfRangeException(start); |
| 25528 int end = start + length; | 25535 int end = start + length; |
| 25529 if (end > a.length) throw new IndexOutOfRangeException(end); | 25536 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 25530 for (int i = start; i < end; i++) { | 25537 for (int i = start; i < end; i++) { |
| 25531 accumulator.add(a[i]); | 25538 accumulator.add(a[i]); |
| 25532 } | 25539 } |
| 25533 return accumulator; | 25540 return accumulator; |
| 25534 } | 25541 } |
| 25535 } | 25542 } |
| OLD | NEW |