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

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

Issue 25603002: Fixing File API test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 - 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 Element query(String selector) => document.query(selector); 115 Element query(String selector) => document.query(selector);
116 ElementList queryAll(String selector) => document.queryAll(selector); 116 ElementList queryAll(String selector) => document.queryAll(selector);
117 117
118 // Workaround for tags like <cite> that lack their own Element subclass -- 118 // Workaround for tags like <cite> that lack their own Element subclass --
119 // Dart issue 1990. 119 // Dart issue 1990.
120 class HtmlElement extends Element native "HTMLElement" { 120 class HtmlElement extends Element native "HTMLElement" {
121 factory HtmlElement() { throw new UnsupportedError("Not supported"); } 121 factory HtmlElement() { throw new UnsupportedError("Not supported"); }
122 } 122 }
123 123
124 // EntryArray type was removed, so explicitly adding it to allow support for
125 // older Chrome versions.
126 // Issue #12573.
127 abstract class _EntryArray implements List<Entry> native "EntryArray" {}
128
124 // Support for Send/ReceivePortSync. 129 // Support for Send/ReceivePortSync.
125 int _getNewIsolateId() { 130 int _getNewIsolateId() {
126 if (JS('bool', r'!window.$dart$isolate$counter')) { 131 if (JS('bool', r'!window.$dart$isolate$counter')) {
127 JS('void', r'window.$dart$isolate$counter = 1'); 132 JS('void', r'window.$dart$isolate$counter = 1');
128 } 133 }
129 return JS('int', r'window.$dart$isolate$counter++'); 134 return JS('int', r'window.$dart$isolate$counter++');
130 } 135 }
131 136
132 // Fast path to invoke JS send port. 137 // Fast path to invoke JS send port.
133 _callPortSync(int id, message) { 138 _callPortSync(int id, message) {
134 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 139 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
135 } 140 }
OLDNEW
« sdk/lib/html/dartium/html_dartium.dart ('K') | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698