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

Side by Side Diff: tools/dom/templates/html/dartium/html_dartium.darttemplate

Issue 1209093005: Revert "Enhance dart:js interop in a backwards compatible manner." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « tests/html/js_typed_interop_test.dart ('k') | no next file » | 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 5 // DO NOT EDIT
6 // Auto-generated dart:html library. 6 // Auto-generated dart:html library.
7 7
8 /** 8 /**
9 * HTML elements and other resources for web-based applications that need to 9 * HTML elements and other resources for web-based applications that need to
10 * interact with the browser and the DOM (Document Object Model). 10 * interact with the browser and the DOM (Document Object Model).
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // TODO(17738): Plumb arguments and return value through. 139 // TODO(17738): Plumb arguments and return value through.
140 return _Utils.spawnDomUri(uri.toString()); 140 return _Utils.spawnDomUri(uri.toString());
141 } 141 }
142 // FIXME: Can we make this private? 142 // FIXME: Can we make this private?
143 final htmlBlinkMap = { 143 final htmlBlinkMap = {
144 '_HistoryCrossFrame': () => _HistoryCrossFrame, 144 '_HistoryCrossFrame': () => _HistoryCrossFrame,
145 '_LocationCrossFrame': () => _LocationCrossFrame, 145 '_LocationCrossFrame': () => _LocationCrossFrame,
146 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame, 146 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame,
147 // FIXME: Move these to better locations. 147 // FIXME: Move these to better locations.
148 'DateTime': () => DateTime, 148 'DateTime': () => DateTime,
149 'JsObject': () => js.JsObjectImpl, 149 'JsObject': () => js.JsObject,
150 'JsFunction': () => js.JsFunctionImpl, 150 'JsFunction': () => js.JsFunction,
151 'JsArray': () => js.JsArrayImpl, 151 'JsArray': () => js.JsArray,
152 $!TYPE_MAP 152 $!TYPE_MAP
153 }; 153 };
154 154
155 // TODO(leafp): We may want to move this elsewhere if html becomes 155 // TODO(leafp): We may want to move this elsewhere if html becomes
156 // a package to avoid dartium depending on pkg:html. 156 // a package to avoid dartium depending on pkg:html.
157 Type _getType(String key) { 157 Type _getType(String key) {
158 var result; 158 var result;
159 159
160 // TODO(vsm): Add Cross Frame and JS types here as well. 160 // TODO(vsm): Add Cross Frame and JS types here as well.
161 161
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 232 }
233 return null; 233 return null;
234 } 234 }
235 235
236 Type _getSvgType(String key) { 236 Type _getSvgType(String key) {
237 if (svgBlinkMap.containsKey(key)) { 237 if (svgBlinkMap.containsKey(key)) {
238 return svgBlinkMap[key](); 238 return svgBlinkMap[key]();
239 } 239 }
240 return null; 240 return null;
241 } 241 }
OLDNEW
« no previous file with comments | « tests/html/js_typed_interop_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698