| 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 | 5 // DO NOT EDIT |
| 6 // Auto-generated dart:html library. | 6 // Auto-generated dart:html library. |
| 7 | 7 |
| 8 /// The Dart HTML library. | 8 /** |
| 9 /// | 9 * HTML elements and other resources for web-based applications that need to |
| 10 /// For examples, see | 10 * interact with the browser and the DOM (Document Object Model). |
| 11 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) | 11 * |
| 12 /// on Github. | 12 * This library includes DOM element types, CSS styling, local storage, |
| 13 * media, speech, events, and more. |
| 14 * To get started, |
| 15 * check out the [Element] class, the base class for many of the HTML |
| 16 * DOM types. |
| 17 * |
| 18 * ## Other resources |
| 19 * |
| 20 * * If you've never written a web app before, try our |
| 21 * tutorials—[A Game of Darts](http://dartlang.org/docs/tutorials). |
| 22 * |
| 23 * * To see some web-based Dart apps in action and to play with the code, |
| 24 * download |
| 25 * [Dart Editor](http://www.dartlang.org/#get-started) |
| 26 * and run its built-in examples. |
| 27 * |
| 28 * * For even more examples, see |
| 29 * [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) |
| 30 * on Github. |
| 31 */ |
| 13 library dart.dom.html; | 32 library dart.dom.html; |
| 14 | 33 |
| 15 import 'dart:async'; | 34 import 'dart:async'; |
| 16 import 'dart:collection'; | 35 import 'dart:collection'; |
| 17 import 'dart:_collection-dev' hide Symbol, deprecated; | 36 import 'dart:_collection-dev' hide Symbol, deprecated; |
| 18 import 'dart:html_common'; | 37 import 'dart:html_common'; |
| 19 import 'dart:indexed_db'; | 38 import 'dart:indexed_db'; |
| 20 import 'dart:isolate'; | 39 import 'dart:isolate'; |
| 21 import "dart:convert"; | 40 import "dart:convert"; |
| 22 import 'dart:math'; | 41 import 'dart:math'; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 _callPortLastResult = JSON.decode(_getPortSyncEventData(event)); | 135 _callPortLastResult = JSON.decode(_getPortSyncEventData(event)); |
| 117 }); | 136 }); |
| 118 _callPortInitialized = true; | 137 _callPortInitialized = true; |
| 119 } | 138 } |
| 120 assert(_callPortLastResult == null); | 139 assert(_callPortLastResult == null); |
| 121 _dispatchEvent('js-sync-message', {'id': id, 'message': message}); | 140 _dispatchEvent('js-sync-message', {'id': id, 'message': message}); |
| 122 var result = _callPortLastResult; | 141 var result = _callPortLastResult; |
| 123 _callPortLastResult = null; | 142 _callPortLastResult = null; |
| 124 return result; | 143 return result; |
| 125 } | 144 } |
| OLD | NEW |