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 12046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12057 // BSD-style license that can be found in the LICENSE file. | 12057 // BSD-style license that can be found in the LICENSE file. |
12058 | 12058 |
12059 class _BlobFactoryProvider { | 12059 class _BlobFactoryProvider { |
12060 factory Blob(List blobParts, [String type, String endings]) native | 12060 factory Blob(List blobParts, [String type, String endings]) native |
12061 '''return new Blob(blobParts, type, endings);'''; | 12061 '''return new Blob(blobParts, type, endings);'''; |
12062 } | 12062 } |
12063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12064 // for details. All rights reserved. Use of this source code is governed by a | 12064 // for details. All rights reserved. Use of this source code is governed by a |
12065 // BSD-style license that can be found in the LICENSE file. | 12065 // BSD-style license that can be found in the LICENSE file. |
12066 | 12066 |
12067 class _DOMFormDataFactoryProvider { | |
12068 factory DOMFormData([FormElement form]) native | |
12069 '''return new DOMFormData(form);'''; | |
12070 } | |
12071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12072 // for details. All rights reserved. Use of this source code is governed by a | |
12073 // BSD-style license that can be found in the LICENSE file. | |
12074 | |
12075 class _DOMParserFactoryProvider { | 12067 class _DOMParserFactoryProvider { |
12076 factory DOMParser() native | 12068 factory DOMParser() native |
12077 '''return new DOMParser();'''; | 12069 '''return new DOMParser();'''; |
12078 } | 12070 } |
12079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12080 // for details. All rights reserved. Use of this source code is governed by a | 12072 // for details. All rights reserved. Use of this source code is governed by a |
12081 // BSD-style license that can be found in the LICENSE file. | 12073 // BSD-style license that can be found in the LICENSE file. |
12082 | 12074 |
12083 class _DOMURLFactoryProvider { | 12075 class _DOMURLFactoryProvider { |
12084 factory DOMURL() native | 12076 factory DOMURL() native |
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13624 final String name; | 13616 final String name; |
13625 | 13617 |
13626 final DirectoryEntrySync root; | 13618 final DirectoryEntrySync root; |
13627 } | 13619 } |
13628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13629 // for details. All rights reserved. Use of this source code is governed by a | 13621 // for details. All rights reserved. Use of this source code is governed by a |
13630 // BSD-style license that can be found in the LICENSE file. | 13622 // BSD-style license that can be found in the LICENSE file. |
13631 | 13623 |
13632 // WARNING: Do not edit - generated code. | 13624 // WARNING: Do not edit - generated code. |
13633 | 13625 |
13634 interface FormData default _FormDataFactoryProvider { | 13626 interface FormData { |
13635 | |
13636 FormData([FormElement form]); | |
13637 | 13627 |
13638 void append(String name, String value, String filename); | 13628 void append(String name, String value, String filename); |
13639 } | 13629 } |
13640 | 13630 |
13641 interface DOMFormData extends FormData { | 13631 interface DOMFormData extends FormData { |
13642 } | 13632 } |
13643 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13644 // for details. All rights reserved. Use of this source code is governed by a | 13634 // for details. All rights reserved. Use of this source code is governed by a |
13645 // BSD-style license that can be found in the LICENSE file. | 13635 // BSD-style license that can be found in the LICENSE file. |
13646 | 13636 |
(...skipping 11567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25214 // BSD-style license that can be found in the LICENSE file. | 25204 // BSD-style license that can be found in the LICENSE file. |
25215 | 25205 |
25216 class _AudioContextFactoryProvider { | 25206 class _AudioContextFactoryProvider { |
25217 | 25207 |
25218 factory AudioContext() native ''' | 25208 factory AudioContext() native ''' |
25219 var constructor = window.AudioContext || window.webkitAudioContext; | 25209 var constructor = window.AudioContext || window.webkitAudioContext; |
25220 return new constructor(); | 25210 return new constructor(); |
25221 '''; | 25211 '''; |
25222 } | 25212 } |
25223 | 25213 |
25224 class _FormDataFactoryProvider { | |
25225 | |
25226 factory FormData([FormElement form = null]) native ''' | |
25227 if (form == null) return new FormData(); | |
25228 return new FormData(form); | |
25229 '''; | |
25230 | |
25231 } | |
25232 | |
25233 class _WebKitPointFactoryProvider { | 25214 class _WebKitPointFactoryProvider { |
25234 | 25215 |
25235 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);'''; | 25216 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);'''; |
25236 } | 25217 } |
25237 | 25218 |
25238 class _WebSocketFactoryProvider { | 25219 class _WebSocketFactoryProvider { |
25239 | 25220 |
25240 factory WebSocket(String url) native '''return new WebSocket(url);'''; | 25221 factory WebSocket(String url) native '''return new WebSocket(url);'''; |
25241 } | 25222 } |
25242 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25223 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25545 if (length < 0) throw new IllegalArgumentException('length'); | 25526 if (length < 0) throw new IllegalArgumentException('length'); |
25546 if (start < 0) throw new IndexOutOfRangeException(start); | 25527 if (start < 0) throw new IndexOutOfRangeException(start); |
25547 int end = start + length; | 25528 int end = start + length; |
25548 if (end > a.length) throw new IndexOutOfRangeException(end); | 25529 if (end > a.length) throw new IndexOutOfRangeException(end); |
25549 for (int i = start; i < end; i++) { | 25530 for (int i = start; i < end; i++) { |
25550 accumulator.add(a[i]); | 25531 accumulator.add(a[i]); |
25551 } | 25532 } |
25552 return accumulator; | 25533 return accumulator; |
25553 } | 25534 } |
25554 } | 25535 } |
OLD | NEW |