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 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f); |
50 spawnDomFunction(f) => spawnFunction(f); | |
51 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 50 // 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 | 51 // 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. | 52 // BSD-style license that can be found in the LICENSE file. |
54 | 53 |
55 | 54 |
56 /// @domName AbstractWorker; @docsEditable true | 55 /// @domName AbstractWorker; @docsEditable true |
57 class AbstractWorker extends EventTarget native "*AbstractWorker" { | 56 class AbstractWorker extends EventTarget native "*AbstractWorker" { |
58 | 57 |
59 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 58 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
60 AbstractWorkerEvents get on => | 59 AbstractWorkerEvents get on => |
(...skipping 25845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25906 T next() { | 25905 T next() { |
25907 if (!hasNext) { | 25906 if (!hasNext) { |
25908 throw new StateError("No more elements"); | 25907 throw new StateError("No more elements"); |
25909 } | 25908 } |
25910 return _array[_pos++]; | 25909 return _array[_pos++]; |
25911 } | 25910 } |
25912 | 25911 |
25913 final List<T> _array; | 25912 final List<T> _array; |
25914 int _pos; | 25913 int _pos; |
25915 } | 25914 } |
OLD | NEW |