OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:isolate'; | 3 import 'dart:isolate'; |
4 import 'dart:json'; | 4 import 'dart:json'; |
5 import 'dart:svg' as svg; | 5 import 'dart:svg' as svg; |
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7 // for details. All rights reserved. Use of this source code is governed by a | 7 // for details. All rights reserved. Use of this source code is governed by a |
8 // BSD-style license that can be found in the LICENSE file. | 8 // BSD-style license that can be found in the LICENSE file. |
9 | 9 |
10 // DO NOT EDIT | 10 // DO NOT EDIT |
11 // Auto-generated dart:html library. | 11 // Auto-generated dart:html library. |
12 | 12 |
13 | 13 |
14 | 14 |
15 | 15 |
16 | 16 |
17 | 17 |
18 | 18 |
19 LocalWindow get window => JS('LocalWindow', 'window'); | 19 LocalWindow get window => JS('LocalWindow', 'window'); |
20 | 20 |
21 HtmlDocument get document => JS('Document', 'document'); | 21 HtmlDocument get document => JS('Document', 'document'); |
22 | 22 |
23 Element query(String selector) => document.query(selector); | 23 Element query(String selector) => document.query(selector); |
24 List<Element> queryAll(String selector) => document.queryAll(selector); | 24 List<Element> queryAll(String selector) => document.queryAll(selector); |
25 | 25 |
26 // Workaround for tags like <cite> that lack their own Element subclass -- | 26 // Workaround for tags like <cite> that lack their own Element subclass -- |
27 // Dart issue 1990. | 27 // Dart issue 1990. |
28 class HTMLElement extends Element native "*HTMLElement" { | 28 class _HTMLElement extends Element native "*HTMLElement" { |
29 } | 29 } |
30 | 30 |
31 // Support for Send/ReceivePortSync. | 31 // Support for Send/ReceivePortSync. |
32 int _getNewIsolateId() { | 32 int _getNewIsolateId() { |
33 if (JS('bool', r'!window.$dart$isolate$counter')) { | 33 if (JS('bool', r'!window.$dart$isolate$counter')) { |
34 JS('void', r'window.$dart$isolate$counter = 1'); | 34 JS('void', r'window.$dart$isolate$counter = 1'); |
35 } | 35 } |
36 return JS('int', r'window.$dart$isolate$counter++'); | 36 return JS('int', r'window.$dart$isolate$counter++'); |
37 } | 37 } |
38 | 38 |
(...skipping 25114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25153 if (length < 0) throw new ArgumentError('length'); | 25153 if (length < 0) throw new ArgumentError('length'); |
25154 if (start < 0) throw new RangeError.value(start); | 25154 if (start < 0) throw new RangeError.value(start); |
25155 int end = start + length; | 25155 int end = start + length; |
25156 if (end > a.length) throw new RangeError.value(end); | 25156 if (end > a.length) throw new RangeError.value(end); |
25157 for (int i = start; i < end; i++) { | 25157 for (int i = start; i < end; i++) { |
25158 accumulator.add(a[i]); | 25158 accumulator.add(a[i]); |
25159 } | 25159 } |
25160 return accumulator; | 25160 return accumulator; |
25161 } | 25161 } |
25162 } | 25162 } |
OLD | NEW |