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

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

Issue 13973017: Revert "Revert "Allow multiple tags in native clause."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 8 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
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/templates/html/impl/impl_Window.darttemplate » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library dart.dom.html; 10 library dart.dom.html;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 /** 67 /**
68 * The top-level Document object. 68 * The top-level Document object.
69 */ 69 */
70 HtmlDocument get document => JS('HtmlDocument', 'document'); 70 HtmlDocument get document => JS('HtmlDocument', 'document');
71 71
72 Element query(String selector) => document.query(selector); 72 Element query(String selector) => document.query(selector);
73 List<Element> queryAll(String selector) => document.queryAll(selector); 73 List<Element> queryAll(String selector) => document.queryAll(selector);
74 74
75 // Workaround for tags like <cite> that lack their own Element subclass -- 75 // Workaround for tags like <cite> that lack their own Element subclass --
76 // Dart issue 1990. 76 // Dart issue 1990.
77 class _HTMLElement extends Element native "*HTMLElement" { 77 class _HTMLElement extends Element native "HTMLElement" {
78 } 78 }
79 79
80 // Support for Send/ReceivePortSync. 80 // Support for Send/ReceivePortSync.
81 int _getNewIsolateId() { 81 int _getNewIsolateId() {
82 if (JS('bool', r'!window.$dart$isolate$counter')) { 82 if (JS('bool', r'!window.$dart$isolate$counter')) {
83 JS('void', r'window.$dart$isolate$counter = 1'); 83 JS('void', r'window.$dart$isolate$counter = 1');
84 } 84 }
85 return JS('int', r'window.$dart$isolate$counter++'); 85 return JS('int', r'window.$dart$isolate$counter++');
86 } 86 }
87 87
88 // Fast path to invoke JS send port. 88 // Fast path to invoke JS send port.
89 _callPortSync(int id, message) { 89 _callPortSync(int id, message) {
90 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 90 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
91 } 91 }
92 92
93 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f); 93 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f);
OLDNEW
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/templates/html/impl/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698