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

Side by Side Diff: tools/dom/scripts/systemhtml.py

Issue 13686018: Testing & supporting new HTMLTemplateElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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/dartmetadata.py ('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 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """This module provides shared functionality for the system to generate 6 """This module provides shared functionality for the system to generate
7 Dart:html APIs from the IDL database.""" 7 Dart:html APIs from the IDL database."""
8 8
9 import emitter 9 import emitter
10 import monitored 10 import monitored
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 'HTMLSelectElement': 'select', 177 'HTMLSelectElement': 'select',
178 'HTMLSourceElement': 'source', 178 'HTMLSourceElement': 'source',
179 'HTMLSpanElement': 'span', 179 'HTMLSpanElement': 'span',
180 'HTMLStyleElement': 'style', 180 'HTMLStyleElement': 'style',
181 'HTMLTableCaptionElement': 'caption', 181 'HTMLTableCaptionElement': 'caption',
182 'HTMLTableCellElement': 'td', 182 'HTMLTableCellElement': 'td',
183 'HTMLTableColElement': 'col', 183 'HTMLTableColElement': 'col',
184 'HTMLTableElement': 'table', 184 'HTMLTableElement': 'table',
185 'HTMLTableRowElement': 'tr', 185 'HTMLTableRowElement': 'tr',
186 #'HTMLTableSectionElement' <thead> <tbody> <tfoot> 186 #'HTMLTableSectionElement' <thead> <tbody> <tfoot>
187 'HTMLTemplateElement': 'template',
187 'HTMLTextAreaElement': 'textarea', 188 'HTMLTextAreaElement': 'textarea',
188 'HTMLTitleElement': 'title', 189 'HTMLTitleElement': 'title',
189 'HTMLTrackElement': 'track', 190 'HTMLTrackElement': 'track',
190 'HTMLUListElement': 'ul', 191 'HTMLUListElement': 'ul',
191 'HTMLVideoElement': 'video' 192 'HTMLVideoElement': 'video'
192 }) 193 })
193 194
194 _svg_element_constructors = monitored.Dict( 195 _svg_element_constructors = monitored.Dict(
195 'systemhtml._svg_element_constructors', { 196 'systemhtml._svg_element_constructors', {
196 'SVGAElement': 'a', 197 'SVGAElement': 'a',
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 326
326 _js_support_checks_basic_element_with_constructors = [ 327 _js_support_checks_basic_element_with_constructors = [
327 'HTMLContentElement', 328 'HTMLContentElement',
328 'HTMLDataListElement', 329 'HTMLDataListElement',
329 'HTMLDetailsElement', 330 'HTMLDetailsElement',
330 'HTMLEmbedElement', 331 'HTMLEmbedElement',
331 'HTMLMeterElement', 332 'HTMLMeterElement',
332 'HTMLObjectElement', 333 'HTMLObjectElement',
333 'HTMLOutputElement', 334 'HTMLOutputElement',
334 'HTMLProgressElement', 335 'HTMLProgressElement',
336 'HTMLTemplateElement',
335 'HTMLTrackElement', 337 'HTMLTrackElement',
336 ] 338 ]
337 339
338 _js_support_checks_additional_element = [ 340 _js_support_checks_additional_element = [
339 # IE creates keygen as Block elements 341 # IE creates keygen as Block elements
340 'HTMLKeygenElement', 342 'HTMLKeygenElement',
341 'SVGAltGlyphElement', 343 'SVGAltGlyphElement',
342 'SVGAnimateElement', 344 'SVGAnimateElement',
343 'SVGAnimateMotionElement', 345 'SVGAnimateMotionElement',
344 'SVGAnimateTransformElement', 346 'SVGAnimateTransformElement',
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 for library_name in libraries: 1167 for library_name in libraries:
1166 self._libraries[library_name] = DartLibrary( 1168 self._libraries[library_name] = DartLibrary(
1167 library_name, template_loader, library_type, output_dir) 1169 library_name, template_loader, library_type, output_dir)
1168 1170
1169 def AddFile(self, basename, library_name, path): 1171 def AddFile(self, basename, library_name, path):
1170 self._libraries[library_name].AddFile(path) 1172 self._libraries[library_name].AddFile(path)
1171 1173
1172 def Emit(self, emitter, auxiliary_dir): 1174 def Emit(self, emitter, auxiliary_dir):
1173 for lib in self._libraries.values(): 1175 for lib in self._libraries.values():
1174 lib.Emit(emitter, auxiliary_dir) 1176 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartmetadata.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698