| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // DO NOT EDIT - unless you are editing documentation as per: | 5 // DO NOT EDIT - unless you are editing documentation as per: |
| 6 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation | 6 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
| 7 // Auto-generated dart:html library. | 7 // Auto-generated dart:html library. |
| 8 | 8 |
| 9 /// The Dart HTML library. | 9 /// The Dart HTML library. |
| 10 /// |
| 11 /// For examples, see [Dart HTML5 Samples](https://github.com/dart-lang/dart-htm
l5-samples) on Github. |
| 10 library dart.dom.html; | 12 library dart.dom.html; |
| 11 | 13 |
| 12 import 'dart:async'; | 14 import 'dart:async'; |
| 13 import 'dart:collection'; | 15 import 'dart:collection'; |
| 14 import 'dart:_collection-dev' hide Symbol; | 16 import 'dart:_collection-dev' hide Symbol; |
| 15 import 'dart:html_common'; | 17 import 'dart:html_common'; |
| 16 import 'dart:indexed_db'; | 18 import 'dart:indexed_db'; |
| 17 import 'dart:isolate'; | 19 import 'dart:isolate'; |
| 18 import 'dart:json' as json; | 20 import 'dart:json' as json; |
| 19 import 'dart:math'; | 21 import 'dart:math'; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 return JS('int', r'window.$dart$isolate$counter++'); | 88 return JS('int', r'window.$dart$isolate$counter++'); |
| 87 } | 89 } |
| 88 | 90 |
| 89 // Fast path to invoke JS send port. | 91 // Fast path to invoke JS send port. |
| 90 _callPortSync(int id, message) { | 92 _callPortSync(int id, message) { |
| 91 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); | 93 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); |
| 92 } | 94 } |
| 93 | 95 |
| 94 Future<SendPort> spawnDomFunction(Function f) => | 96 Future<SendPort> spawnDomFunction(Function f) => |
| 95 new Future.value(IsolateNatives.spawnDomFunction(f)); | 97 new Future.value(IsolateNatives.spawnDomFunction(f)); |
| OLD | NEW |