OLD | NEW |
---|---|
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:collection'; | 3 import 'dart:collection'; |
4 import 'dart:html_common'; | 4 import 'dart:html_common'; |
5 import 'dart:indexed_db'; | 5 import 'dart:indexed_db'; |
6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
7 import 'dart:json'; | 7 import 'dart:json'; |
8 import 'dart:svg' as svg; | 8 import 'dart:svg' as svg; |
9 import 'dart:web_audio' as web_audio; | 9 import 'dart:web_audio' as web_audio; |
10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
(...skipping 28 matching lines...) Expand all Loading... | |
39 JS('void', r'window.$dart$isolate$counter = 1'); | 39 JS('void', r'window.$dart$isolate$counter = 1'); |
40 } | 40 } |
41 return JS('int', r'window.$dart$isolate$counter++'); | 41 return JS('int', r'window.$dart$isolate$counter++'); |
42 } | 42 } |
43 | 43 |
44 // Fast path to invoke JS send port. | 44 // Fast path to invoke JS send port. |
45 _callPortSync(int id, message) { | 45 _callPortSync(int id, message) { |
46 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); | 46 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); |
47 } | 47 } |
48 | 48 |
49 // TODO(vsm): Plumb this properly. | 49 // TODO(vsm): Plumb this properly. |
kasperl
2012/12/13 08:45:12
Remove the TODO?
ngeoffray
2012/12/13 11:56:15
Done.
| |
50 spawnDomFunction(f) => spawnFunction(f); | 50 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f); |
51 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 51 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
52 // for details. All rights reserved. Use of this source code is governed by a | 52 // for details. All rights reserved. Use of this source code is governed by a |
53 // BSD-style license that can be found in the LICENSE file. | 53 // BSD-style license that can be found in the LICENSE file. |
54 | 54 |
55 | 55 |
56 /// @domName AbstractWorker; @docsEditable true | 56 /// @domName AbstractWorker; @docsEditable true |
57 class AbstractWorker extends EventTarget native "*AbstractWorker" { | 57 class AbstractWorker extends EventTarget native "*AbstractWorker" { |
58 | 58 |
59 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true | 59 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true |
60 AbstractWorkerEvents get on => | 60 AbstractWorkerEvents get on => |
(...skipping 25642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
25703 T next() { | 25703 T next() { |
25704 if (!hasNext) { | 25704 if (!hasNext) { |
25705 throw new StateError("No more elements"); | 25705 throw new StateError("No more elements"); |
25706 } | 25706 } |
25707 return _array[_pos++]; | 25707 return _array[_pos++]; |
25708 } | 25708 } |
25709 | 25709 |
25710 final List<T> _array; | 25710 final List<T> _array; |
25711 int _pos; | 25711 int _pos; |
25712 } | 25712 } |
OLD | NEW |