| 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 11740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11751 final String url; | 11751 final String url; |
| 11752 | 11752 |
| 11753 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | 11753 void addEventListener(String type, EventListener listener, [bool useCapture])
native; |
| 11754 | 11754 |
| 11755 void close([int code, String reason]) native; | 11755 void close([int code, String reason]) native; |
| 11756 | 11756 |
| 11757 bool dispatchEvent(_EventJs evt) native; | 11757 bool dispatchEvent(_EventJs evt) native; |
| 11758 | 11758 |
| 11759 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | 11759 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; |
| 11760 | 11760 |
| 11761 bool send(String data) native; | 11761 void send(data) native; |
| 11762 } | 11762 } |
| 11763 | 11763 |
| 11764 class _WheelEventJs extends _MouseEventJs implements WheelEvent native "*WheelEv
ent" { | 11764 class _WheelEventJs extends _MouseEventJs implements WheelEvent native "*WheelEv
ent" { |
| 11765 | 11765 |
| 11766 final bool webkitDirectionInvertedFromDevice; | 11766 final bool webkitDirectionInvertedFromDevice; |
| 11767 | 11767 |
| 11768 final int wheelDelta; | 11768 final int wheelDelta; |
| 11769 | 11769 |
| 11770 final int wheelDeltaX; | 11770 final int wheelDeltaX; |
| 11771 | 11771 |
| (...skipping 12402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24174 final String url; | 24174 final String url; |
| 24175 | 24175 |
| 24176 void addEventListener(String type, EventListener listener, [bool useCapture]); | 24176 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 24177 | 24177 |
| 24178 void close([int code, String reason]); | 24178 void close([int code, String reason]); |
| 24179 | 24179 |
| 24180 bool dispatchEvent(Event evt); | 24180 bool dispatchEvent(Event evt); |
| 24181 | 24181 |
| 24182 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 24182 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 24183 | 24183 |
| 24184 bool send(String data); | 24184 void send(data); |
| 24185 } | 24185 } |
| 24186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24187 // for details. All rights reserved. Use of this source code is governed by a | 24187 // for details. All rights reserved. Use of this source code is governed by a |
| 24188 // BSD-style license that can be found in the LICENSE file. | 24188 // BSD-style license that can be found in the LICENSE file. |
| 24189 | 24189 |
| 24190 // WARNING: Do not edit - generated code. | 24190 // WARNING: Do not edit - generated code. |
| 24191 | 24191 |
| 24192 interface WheelEvent extends MouseEvent { | 24192 interface WheelEvent extends MouseEvent { |
| 24193 | 24193 |
| 24194 final bool webkitDirectionInvertedFromDevice; | 24194 final bool webkitDirectionInvertedFromDevice; |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25216 class _AudioContextFactoryProvider { | 25216 class _AudioContextFactoryProvider { |
| 25217 | 25217 |
| 25218 factory AudioContext() native ''' | 25218 factory AudioContext() native ''' |
| 25219 var constructor = window.AudioContext || window.webkitAudioContext; | 25219 var constructor = window.AudioContext || window.webkitAudioContext; |
| 25220 return new constructor(); | 25220 return new constructor(); |
| 25221 '''; | 25221 '''; |
| 25222 } | 25222 } |
| 25223 | 25223 |
| 25224 class _FormDataFactoryProvider { | 25224 class _FormDataFactoryProvider { |
| 25225 | 25225 |
| 25226 factory FormData([FormElement form = null]) native ''' | 25226 factory FormData([HTMLFormElement form = null]) native ''' |
| 25227 if (form == null) return new FormData(); | 25227 if (form == null) return new FormData(); |
| 25228 return new FormData(form); | 25228 return new FormData(form); |
| 25229 '''; | 25229 '''; |
| 25230 | 25230 |
| 25231 } | 25231 } |
| 25232 | 25232 |
| 25233 class _WebKitPointFactoryProvider { | 25233 class _WebKitPointFactoryProvider { |
| 25234 | 25234 |
| 25235 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);'''; | 25235 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);'''; |
| 25236 } | 25236 } |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25545 if (length < 0) throw new IllegalArgumentException('length'); | 25545 if (length < 0) throw new IllegalArgumentException('length'); |
| 25546 if (start < 0) throw new IndexOutOfRangeException(start); | 25546 if (start < 0) throw new IndexOutOfRangeException(start); |
| 25547 int end = start + length; | 25547 int end = start + length; |
| 25548 if (end > a.length) throw new IndexOutOfRangeException(end); | 25548 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 25549 for (int i = start; i < end; i++) { | 25549 for (int i = start; i < end; i++) { |
| 25550 accumulator.add(a[i]); | 25550 accumulator.add(a[i]); |
| 25551 } | 25551 } |
| 25552 return accumulator; | 25552 return accumulator; |
| 25553 } | 25553 } |
| 25554 } | 25554 } |
| OLD | NEW |