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

Side by Side Diff: lib/html/templates/html/dart2js/html_dart2js.darttemplate

Issue 11016015: Removing ElementList. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for dartium? Created 8 years, 2 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 5 // DO NOT EDIT
6 // Auto-generated dart:html library. 6 // Auto-generated dart:html library.
7 7
8 #library('dart:html'); 8 #library('dart:html');
9 9
10 #import('dart:isolate'); 10 #import('dart:isolate');
(...skipping 26 matching lines...) Expand all
37 37
38 38
39 Window get window() native "return window;"; 39 Window get window() native "return window;";
40 _WindowImpl get _window() native "return window;"; 40 _WindowImpl get _window() native "return window;";
41 41
42 Document get document() native "return document;"; 42 Document get document() native "return document;";
43 43
44 _DocumentImpl get _document() native "return document;"; 44 _DocumentImpl get _document() native "return document;";
45 45
46 Element query(String selector) => _document.query(selector); 46 Element query(String selector) => _document.query(selector);
47 ElementList queryAll(String selector) => _document.queryAll(selector); 47 List<Element> queryAll(String selector) => _document.queryAll(selector);
48 48
49 // Workaround for tags like <cite> that lack their own Element subclass -- 49 // Workaround for tags like <cite> that lack their own Element subclass --
50 // Dart issue 1990. 50 // Dart issue 1990.
51 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" { 51 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" {
52 } 52 }
53 53
54 // Support for Send/ReceivePortSync. 54 // Support for Send/ReceivePortSync.
55 int _getNewIsolateId() native r''' 55 int _getNewIsolateId() native r'''
56 if (!window.$dart$isolate$counter) { 56 if (!window.$dart$isolate$counter) {
57 window.$dart$isolate$counter = 1; 57 window.$dart$isolate$counter = 1;
58 } 58 }
59 return window.$dart$isolate$counter++; 59 return window.$dart$isolate$counter++;
60 '''; 60 ''';
61 61
62 // Fast path to invoke JS send port. 62 // Fast path to invoke JS send port.
63 _callPortSync(int id, message) { 63 _callPortSync(int id, message) {
64 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 64 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
65 } 65 }
66 66
67 // TODO(vsm): Plumb this properly. 67 // TODO(vsm): Plumb this properly.
68 spawnDomFunction(f) => spawnFunction(f); 68 spawnDomFunction(f) => spawnFunction(f);
OLDNEW
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698