Chromium Code Reviews| 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 /** |
| 10 /// | 10 * Resources, including HTML elements, for web-based applications that need to |
|
Emily Fortuna
2013/08/28 17:45:17
these files are auto-generated. Seems like these c
mem
2013/08/29 11:41:53
My understanding is that this is the source file.
| |
| 11 /// For examples, see | 11 * interact with the browser and the DOM (Document Object Model). |
| 12 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) | 12 * |
| 13 /// on Github. | 13 * This library includes DOM element types, CSS styling, local storage, |
| 14 * plus support for media, speech, events, and more. | |
| 15 * | |
| 16 * ## Other resources | |
| 17 * | |
| 18 * * If you've never written a web app before, try our | |
| 19 * tutorials—[The Game of Darts](http://dartlang.org/docs/tutorials). | |
| 20 * | |
| 21 * * To see some web-based Dart apps in action and to play with the code, | |
| 22 * download | |
| 23 * [Dart Editor](http://www.dartlang.org/#get-started) | |
| 24 * and run its built-in examples. | |
| 25 * | |
| 26 * * For even more examples, see | |
| 27 * [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) | |
| 28 * on Github. | |
|
blois
2013/08/28 15:59:06
Can these be cloned into the Dartium version as we
mem
2013/08/29 11:41:53
Done.
| |
| 29 */ | |
| 14 library dart.dom.html; | 30 library dart.dom.html; |
| 15 | 31 |
| 16 import 'dart:async'; | 32 import 'dart:async'; |
| 17 import 'dart:collection'; | 33 import 'dart:collection'; |
| 18 import 'dart:_collection-dev' hide Symbol, deprecated; | 34 import 'dart:_collection-dev' hide Symbol, deprecated; |
| 19 import 'dart:html_common'; | 35 import 'dart:html_common'; |
| 20 import 'dart:indexed_db'; | 36 import 'dart:indexed_db'; |
| 21 import 'dart:isolate'; | 37 import 'dart:isolate'; |
| 22 import 'dart:json' as json; | 38 import 'dart:json' as json; |
| 23 import 'dart:math'; | 39 import 'dart:math'; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 return JS('int', r'window.$dart$isolate$counter++'); | 125 return JS('int', r'window.$dart$isolate$counter++'); |
| 110 } | 126 } |
| 111 | 127 |
| 112 // Fast path to invoke JS send port. | 128 // Fast path to invoke JS send port. |
| 113 _callPortSync(int id, message) { | 129 _callPortSync(int id, message) { |
| 114 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); | 130 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); |
| 115 } | 131 } |
| 116 | 132 |
| 117 Future<SendPort> spawnDomFunction(Function f) => | 133 Future<SendPort> spawnDomFunction(Function f) => |
| 118 new Future.value(IsolateNatives.spawnDomFunction(f)); | 134 new Future.value(IsolateNatives.spawnDomFunction(f)); |
| OLD | NEW |