Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: tools/dom/templates/html/dart2js/html_dart2js.darttemplate

Issue 23442011: Revert "Revert "Basic functionality is working with JS native support and polyfill, still some issu… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
11 * interact with the browser and the DOM (Document Object Model). 11 * interact with the browser and the DOM (Document Object Model).
12 * 12 *
13 * This library includes DOM element types, CSS styling, local storage, 13 * This library includes DOM element types, CSS styling, local storage,
14 * media, speech, events, and more. 14 * media, speech, events, and more.
15 * To get started, 15 * To get started,
16 * check out the [Element] class, the base class for many of the HTML 16 * check out the [Element] class, the base class for many of the HTML
17 * DOM types. 17 * DOM types.
18 * 18 *
19 * ## Other resources 19 * ## Other resources
20 * 20 *
21 * * If you've never written a web app before, try our 21 * * If you've never written a web app before, try our
22 * tutorials—[A Game of Darts](http://dartlang.org/docs/tutorials). 22 * tutorials—[A Game of Darts](http://dartlang.org/docs/tutorials).
23 * 23 *
24 * * To see some web-based Dart apps in action and to play with the code, 24 * * To see some web-based Dart apps in action and to play with the code,
25 * download 25 * download
26 * [Dart Editor](http://www.dartlang.org/#get-started) 26 * [Dart Editor](http://www.dartlang.org/#get-started)
27 * and run its built-in examples. 27 * and run its built-in examples.
28 * 28 *
29 * * For even more examples, see 29 * * For even more examples, see
30 * [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) 30 * [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples)
31 * on Github. 31 * on Github.
32 */ 32 */
33 library dart.dom.html; 33 library dart.dom.html;
(...skipping 10 matching lines...) Expand all
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 import 'dart:_interceptors' show 53 import 'dart:_interceptors' show
54 Interceptor, JSExtendableArray, findInterceptorConstructorForType; 54 Interceptor, JSExtendableArray, findInterceptorConstructorForType,
55 getNativeInterceptor;
55 import 'dart:_isolate_helper' show IsolateNatives; 56 import 'dart:_isolate_helper' show IsolateNatives;
56 import 'dart:_foreign_helper' show JS; 57 import 'dart:_foreign_helper' show JS;
57 58
58 $!GENERATED_DART_FILES 59 $!GENERATED_DART_FILES
59 60
60 part '$AUXILIARY_DIR/AttributeMap.dart'; 61 part '$AUXILIARY_DIR/AttributeMap.dart';
61 part '$AUXILIARY_DIR/CanvasImageSource.dart'; 62 part '$AUXILIARY_DIR/CanvasImageSource.dart';
62 part '$AUXILIARY_DIR/CrossFrameTypes.dart'; 63 part '$AUXILIARY_DIR/CrossFrameTypes.dart';
63 part '$AUXILIARY_DIR/CssClassSet.dart'; 64 part '$AUXILIARY_DIR/CssClassSet.dart';
64 part '$AUXILIARY_DIR/CssRectangle.dart'; 65 part '$AUXILIARY_DIR/CssRectangle.dart';
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 return JS('int', r'window.$dart$isolate$counter++'); 129 return JS('int', r'window.$dart$isolate$counter++');
129 } 130 }
130 131
131 // Fast path to invoke JS send port. 132 // Fast path to invoke JS send port.
132 _callPortSync(int id, message) { 133 _callPortSync(int id, message) {
133 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 134 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
134 } 135 }
135 136
136 Future<SendPort> spawnDomFunction(Function f) => 137 Future<SendPort> spawnDomFunction(Function f) =>
137 new Future.value(IsolateNatives.spawnDomFunction(f)); 138 new Future.value(IsolateNatives.spawnDomFunction(f));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698