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

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

Issue 569783002: Migrate to Chrome 37 IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 /** 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 final htmlBlinkMap = { 142 final htmlBlinkMap = {
143 '_HistoryCrossFrame': () => _HistoryCrossFrame, 143 '_HistoryCrossFrame': () => _HistoryCrossFrame,
144 '_LocationCrossFrame': () => _LocationCrossFrame, 144 '_LocationCrossFrame': () => _LocationCrossFrame,
145 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame, 145 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame,
146 // FIXME: Move these to better locations. 146 // FIXME: Move these to better locations.
147 'DateTime': () => DateTime, 147 'DateTime': () => DateTime,
148 'JsObject': () => js.JsObject, 148 'JsObject': () => js.JsObject,
149 'JsFunction': () => js.JsFunction, 149 'JsFunction': () => js.JsFunction,
150 'JsArray': () => js.JsArray, 150 'JsArray': () => js.JsArray,
151 $!TYPE_MAP 151 $!TYPE_MAP
152 // FIXME: Temporary workaround. The Blink name matches the Dart name
153 // post Chrome 35. We still generate the old mapping from 'Clipboard'.
154 'DataTransfer': () => DataTransfer,
155 }; 152 };
156 153
157 // TODO(leafp): We may want to move this elsewhere if html becomes 154 // TODO(leafp): We may want to move this elsewhere if html becomes
158 // a package to avoid dartium depending on pkg:html. 155 // a package to avoid dartium depending on pkg:html.
159 Type _getType(String key) { 156 Type _getType(String key) {
160 var result; 157 var result;
161 158
162 // TODO(vsm): Add Cross Frame and JS types here as well. 159 // TODO(vsm): Add Cross Frame and JS types here as well.
163 160
164 // Check the html library. 161 // Check the html library.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 231 }
235 return null; 232 return null;
236 } 233 }
237 234
238 Type _getSvgType(String key) { 235 Type _getSvgType(String key) {
239 if (svgBlinkMap.containsKey(key)) { 236 if (svgBlinkMap.containsKey(key)) {
240 return svgBlinkMap[key](); 237 return svgBlinkMap[key]();
241 } 238 }
242 return null; 239 return null;
243 } 240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698