| 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 |
| 11 | 11 |
| 12 | 12 |
| 13 // TODO(sra): What 'window' do we get in a worker? Perhaps this | 13 // TODO(sra): What 'window' do we get in a worker? Perhaps this |
| 14 // should return the interface type. | 14 // should return the interface type. |
| 15 Window get window() native "return window;"; | 15 DOMWindow get window() native "return window;"; |
| 16 | 16 |
| 17 HTMLDocument get document() native "return document;"; | 17 HTMLDocument get document() native "return document;"; |
| 18 | 18 |
| 19 class _AbstractWorkerJs extends _EventTargetJs implements AbstractWorker native
"*AbstractWorker" { | 19 class _AbstractWorkerJs extends _EventTargetJs implements AbstractWorker native
"*AbstractWorker" { |
| 20 | 20 |
| 21 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 21 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 22 | 22 |
| 23 bool dispatchEvent(_EventJs evt) native; | 23 bool dispatchEvent(_EventJs evt) native; |
| 24 | 24 |
| 25 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 25 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| (...skipping 24774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24800 if (length < 0) throw new IllegalArgumentException('length'); | 24800 if (length < 0) throw new IllegalArgumentException('length'); |
| 24801 if (start < 0) throw new IndexOutOfRangeException(start); | 24801 if (start < 0) throw new IndexOutOfRangeException(start); |
| 24802 int end = start + length; | 24802 int end = start + length; |
| 24803 if (end > a.length) throw new IndexOutOfRangeException(end); | 24803 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 24804 for (int i = start; i < end; i++) { | 24804 for (int i = start; i < end; i++) { |
| 24805 accumulator.add(a[i]); | 24805 accumulator.add(a[i]); |
| 24806 } | 24806 } |
| 24807 return accumulator; | 24807 return accumulator; |
| 24808 } | 24808 } |
| 24809 } | 24809 } |
| OLD | NEW |