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

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

Issue 19754002: Rewrite how we handle synthesized constructors in the compiler. This was motivated by issue https:/… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 /// The Dart HTML library. 9 /// The Dart HTML library.
10 /// 10 ///
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 * Root node for all content in a web page. 81 * Root node for all content in a web page.
82 */ 82 */
83 HtmlDocument get document => JS('HtmlDocument', 'document'); 83 HtmlDocument get document => JS('HtmlDocument', 'document');
84 84
85 Element query(String selector) => document.query(selector); 85 Element query(String selector) => document.query(selector);
86 ElementList queryAll(String selector) => document.queryAll(selector); 86 ElementList queryAll(String selector) => document.queryAll(selector);
87 87
88 // Workaround for tags like <cite> that lack their own Element subclass -- 88 // Workaround for tags like <cite> that lack their own Element subclass --
89 // Dart issue 1990. 89 // Dart issue 1990.
90 class _HTMLElement extends Element native "HTMLElement" { 90 class _HTMLElement extends Element native "HTMLElement" {
91 factory _HTMLElement() { throw new UnsupportedError("Not supported"); }
91 } 92 }
92 93
93 // Support for Send/ReceivePortSync. 94 // Support for Send/ReceivePortSync.
94 int _getNewIsolateId() { 95 int _getNewIsolateId() {
95 if (JS('bool', r'!window.$dart$isolate$counter')) { 96 if (JS('bool', r'!window.$dart$isolate$counter')) {
96 JS('void', r'window.$dart$isolate$counter = 1'); 97 JS('void', r'window.$dart$isolate$counter = 1');
97 } 98 }
98 return JS('int', r'window.$dart$isolate$counter++'); 99 return JS('int', r'window.$dart$isolate$counter++');
99 } 100 }
100 101
101 // Fast path to invoke JS send port. 102 // Fast path to invoke JS send port.
102 _callPortSync(int id, message) { 103 _callPortSync(int id, message) {
103 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 104 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
104 } 105 }
105 106
106 Future<SendPort> spawnDomFunction(Function f) => 107 Future<SendPort> spawnDomFunction(Function f) =>
107 new Future.value(IsolateNatives.spawnDomFunction(f)); 108 new Future.value(IsolateNatives.spawnDomFunction(f));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698