| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 JS('void', r'window.$dart$isolate$counter = 1'); | 58 JS('void', r'window.$dart$isolate$counter = 1'); |
| 59 } | 59 } |
| 60 return JS('int', r'window.$dart$isolate$counter++'); | 60 return JS('int', r'window.$dart$isolate$counter++'); |
| 61 } | 61 } |
| 62 | 62 |
| 63 // Fast path to invoke JS send port. | 63 // Fast path to invoke JS send port. |
| 64 _callPortSync(int id, message) { | 64 _callPortSync(int id, message) { |
| 65 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); | 65 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); |
| 66 } | 66 } |
| 67 | 67 |
| 68 spawnDomFunction(Function f) => IsolateNatives.spawnDomFunction(f); | 68 Future<SendPort> spawnDomFunction(Function f) => |
| 69 new Future.value(IsolateNatives.spawnDomFunction(f)); |
| 69 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 70 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 70 // for details. All rights reserved. Use of this source code is governed by a | 71 // for details. All rights reserved. Use of this source code is governed by a |
| 71 // BSD-style license that can be found in the LICENSE file. | 72 // BSD-style license that can be found in the LICENSE file. |
| 72 | 73 |
| 73 | 74 |
| 74 @DocsEditable | 75 @DocsEditable |
| 75 @DomName('AbstractWorker') | 76 @DomName('AbstractWorker') |
| 76 class AbstractWorker extends EventTarget native "AbstractWorker" { | 77 class AbstractWorker extends EventTarget native "AbstractWorker" { |
| 77 | 78 |
| 78 @DomName('AbstractWorker.errorEvent') | 79 @DomName('AbstractWorker.errorEvent') |
| (...skipping 29807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29886 _position = nextPosition; | 29887 _position = nextPosition; |
| 29887 return true; | 29888 return true; |
| 29888 } | 29889 } |
| 29889 _current = null; | 29890 _current = null; |
| 29890 _position = _array.length; | 29891 _position = _array.length; |
| 29891 return false; | 29892 return false; |
| 29892 } | 29893 } |
| 29893 | 29894 |
| 29894 T get current => _current; | 29895 T get current => _current; |
| 29895 } | 29896 } |
| OLD | NEW |