| 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 /// | 10 /// |
| 11 /// For examples, see | 11 /// For examples, see |
| 12 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) | 12 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) |
| 13 /// on Github. | 13 /// on Github. |
| 14 library dart.dom.html; | 14 library dart.dom.html; |
| 15 | 15 |
| 16 import 'dart:async'; | 16 import 'dart:async'; |
| 17 import 'dart:collection'; | 17 import 'dart:collection'; |
| 18 import 'dart:_collection-dev' hide Symbol; | 18 import 'dart:_collection-dev' hide Symbol; |
| 19 import 'dart:html_common'; | 19 import 'dart:html_common'; |
| 20 import 'dart:indexed_db'; | 20 import 'dart:indexed_db'; |
| 21 import 'dart:isolate'; | 21 import 'dart:isolate'; |
| 22 import 'dart:json' as json; | 22 import 'dart:json' as json; |
| 23 import 'dart:math'; | 23 import 'dart:math'; |
| 24 import 'dart:mdv_observe_impl'; | |
| 25 import 'dart:typed_data'; | 24 import 'dart:typed_data'; |
| 26 // Not actually used, but imported since dart:html can generate these objects. | 25 // Not actually used, but imported since dart:html can generate these objects. |
| 27 import 'dart:svg' as svg; | 26 import 'dart:svg' as svg; |
| 28 import 'dart:web_audio' as web_audio; | 27 import 'dart:web_audio' as web_audio; |
| 29 import 'dart:web_gl' as gl; | 28 import 'dart:web_gl' as gl; |
| 30 import 'dart:web_sql'; | 29 import 'dart:web_sql'; |
| 31 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin
gBehavior, JSName, Null, Returns; | 30 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin
gBehavior, JSName, Null, Returns; |
| 32 import 'dart:_interceptors' show Interceptor, JSExtendableArray; | 31 import 'dart:_interceptors' show Interceptor, JSExtendableArray; |
| 33 import 'dart:_isolate_helper' show IsolateNatives; | 32 import 'dart:_isolate_helper' show IsolateNatives; |
| 34 import 'dart:_foreign_helper' show JS; | 33 import 'dart:_foreign_helper' show JS; |
| 35 | 34 |
| 36 $!GENERATED_DART_FILES | 35 $!GENERATED_DART_FILES |
| 37 | 36 |
| 38 part '$AUXILIARY_DIR/AttributeMap.dart'; | 37 part '$AUXILIARY_DIR/AttributeMap.dart'; |
| 39 part '$AUXILIARY_DIR/CanvasImageSource.dart'; | 38 part '$AUXILIARY_DIR/CanvasImageSource.dart'; |
| 40 part '$AUXILIARY_DIR/CrossFrameTypes.dart'; | 39 part '$AUXILIARY_DIR/CrossFrameTypes.dart'; |
| 41 part '$AUXILIARY_DIR/CssClassSet.dart'; | 40 part '$AUXILIARY_DIR/CssClassSet.dart'; |
| 42 part '$AUXILIARY_DIR/EventListener.dart'; | 41 part '$AUXILIARY_DIR/EventListener.dart'; |
| 43 part '$AUXILIARY_DIR/EventStreamProvider.dart'; | 42 part '$AUXILIARY_DIR/EventStreamProvider.dart'; |
| 44 part '$AUXILIARY_DIR/ImmutableListMixin.dart'; | 43 part '$AUXILIARY_DIR/ImmutableListMixin.dart'; |
| 45 part '$AUXILIARY_DIR/KeyboardEventStream.dart'; | 44 part '$AUXILIARY_DIR/KeyboardEventStream.dart'; |
| 46 part '$AUXILIARY_DIR/KeyCode.dart'; | 45 part '$AUXILIARY_DIR/KeyCode.dart'; |
| 47 part '$AUXILIARY_DIR/KeyLocation.dart'; | 46 part '$AUXILIARY_DIR/KeyLocation.dart'; |
| 48 part '$AUXILIARY_DIR/KeyName.dart'; | 47 part '$AUXILIARY_DIR/KeyName.dart'; |
| 49 part '$AUXILIARY_DIR/Point.dart'; | 48 part '$AUXILIARY_DIR/Point.dart'; |
| 50 part '$AUXILIARY_DIR/ReadyState.dart'; | 49 part '$AUXILIARY_DIR/ReadyState.dart'; |
| 51 part '$AUXILIARY_DIR/Rectangle.dart'; | 50 part '$AUXILIARY_DIR/Rectangle.dart'; |
| 52 part '$AUXILIARY_DIR/TemplateBindings.dart'; | |
| 53 part '$AUXILIARY_DIR/_HttpRequestUtils.dart'; | 51 part '$AUXILIARY_DIR/_HttpRequestUtils.dart'; |
| 54 part '$AUXILIARY_DIR/Isolates.dart'; | 52 part '$AUXILIARY_DIR/Isolates.dart'; |
| 55 part '$AUXILIARY_DIR/Microtask.dart'; | 53 part '$AUXILIARY_DIR/Microtask.dart'; |
| 56 part '$AUXILIARY_DIR/Serialization.dart'; | 54 part '$AUXILIARY_DIR/Serialization.dart'; |
| 57 part '$AUXILIARY_DIR/WrappedEvent.dart'; | 55 part '$AUXILIARY_DIR/WrappedEvent.dart'; |
| 58 part '$AUXILIARY_DIR/WrappedList.dart'; | 56 part '$AUXILIARY_DIR/WrappedList.dart'; |
| 59 part '$AUXILIARY_DIR/dart2js_Conversions.dart'; | 57 part '$AUXILIARY_DIR/dart2js_Conversions.dart'; |
| 60 part '$AUXILIARY_DIR/dart2js_DOMImplementation.dart'; | 58 part '$AUXILIARY_DIR/dart2js_DOMImplementation.dart'; |
| 61 part '$AUXILIARY_DIR/dart2js_KeyEvent.dart'; | 59 part '$AUXILIARY_DIR/dart2js_KeyEvent.dart'; |
| 62 part '$AUXILIARY_DIR/dart2js_LocationWrapper.dart'; | 60 part '$AUXILIARY_DIR/dart2js_LocationWrapper.dart'; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 90 return JS('int', r'window.$dart$isolate$counter++'); | 88 return JS('int', r'window.$dart$isolate$counter++'); |
| 91 } | 89 } |
| 92 | 90 |
| 93 // Fast path to invoke JS send port. | 91 // Fast path to invoke JS send port. |
| 94 _callPortSync(int id, message) { | 92 _callPortSync(int id, message) { |
| 95 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); | 93 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); |
| 96 } | 94 } |
| 97 | 95 |
| 98 Future<SendPort> spawnDomFunction(Function f) => | 96 Future<SendPort> spawnDomFunction(Function f) => |
| 99 new Future.value(IsolateNatives.spawnDomFunction(f)); | 97 new Future.value(IsolateNatives.spawnDomFunction(f)); |
| OLD | NEW |