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 /** | 9 /** |
10 * HTML elements and other resources for web-based applications that need to | 10 * HTML elements and other resources for web-based applications that need to |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 import 'dart:math'; | 42 import 'dart:math'; |
43 import 'dart:typed_data'; | 43 import 'dart:typed_data'; |
44 // Not actually used, but imported since dart:html can generate these objects. | 44 // Not actually used, but imported since dart:html can generate these objects. |
45 import 'dart:svg' as svg; | 45 import 'dart:svg' as svg; |
46 import 'dart:web_audio' as web_audio; | 46 import 'dart:web_audio' as web_audio; |
47 import 'dart:web_gl' as gl; | 47 import 'dart:web_gl' as gl; |
48 import 'dart:web_sql'; | 48 import 'dart:web_sql'; |
49 import 'dart:_js_helper' show | 49 import 'dart:_js_helper' show |
50 convertDartClosureToJS, Creates, JavaScriptIndexingBehavior, | 50 convertDartClosureToJS, Creates, JavaScriptIndexingBehavior, |
51 JSName, Null, Returns, | 51 JSName, Null, Returns, |
52 findDispatchTagForInterceptorClass, setNativeSubclassDispatchRecord; | 52 findDispatchTagForInterceptorClass, setNativeSubclassDispatchRecord, |
| 53 makeLeafDispatchRecord; |
53 import 'dart:_interceptors' show | 54 import 'dart:_interceptors' show |
54 Interceptor, JSExtendableArray, findInterceptorConstructorForType; | 55 Interceptor, JSExtendableArray, findInterceptorConstructorForType, |
| 56 setDispatchProperty; |
55 import 'dart:_isolate_helper' show IsolateNatives; | 57 import 'dart:_isolate_helper' show IsolateNatives; |
56 import 'dart:_foreign_helper' show JS; | 58 import 'dart:_foreign_helper' show JS; |
57 | 59 |
58 $!GENERATED_DART_FILES | 60 $!GENERATED_DART_FILES |
59 | 61 |
60 part '$AUXILIARY_DIR/AttributeMap.dart'; | 62 part '$AUXILIARY_DIR/AttributeMap.dart'; |
61 part '$AUXILIARY_DIR/CanvasImageSource.dart'; | 63 part '$AUXILIARY_DIR/CanvasImageSource.dart'; |
62 part '$AUXILIARY_DIR/CrossFrameTypes.dart'; | 64 part '$AUXILIARY_DIR/CrossFrameTypes.dart'; |
63 part '$AUXILIARY_DIR/CssClassSet.dart'; | 65 part '$AUXILIARY_DIR/CssClassSet.dart'; |
64 part '$AUXILIARY_DIR/CssRectangle.dart'; | 66 part '$AUXILIARY_DIR/CssRectangle.dart'; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 return JS('int', r'window.$dart$isolate$counter++'); | 130 return JS('int', r'window.$dart$isolate$counter++'); |
129 } | 131 } |
130 | 132 |
131 // Fast path to invoke JS send port. | 133 // Fast path to invoke JS send port. |
132 _callPortSync(int id, message) { | 134 _callPortSync(int id, message) { |
133 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); | 135 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); |
134 } | 136 } |
135 | 137 |
136 Future<SendPort> spawnDomFunction(Function f) => | 138 Future<SendPort> spawnDomFunction(Function f) => |
137 new Future.value(IsolateNatives.spawnDomFunction(f)); | 139 new Future.value(IsolateNatives.spawnDomFunction(f)); |
OLD | NEW |