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

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

Issue 11748003: Fixing up WebComponents types & tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 #!/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 os 10 import os
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 'HTMLEmbedElement': "Element.isTagSupported('embed')", 73 'HTMLEmbedElement': "Element.isTagSupported('embed')",
74 # IE creates keygen as Block elements 74 # IE creates keygen as Block elements
75 'HTMLKeygenElement': "Element.isTagSupported('keygen') " 75 'HTMLKeygenElement': "Element.isTagSupported('keygen') "
76 "&& (new Element.tag('keygen') is KeygenElement)", 76 "&& (new Element.tag('keygen') is KeygenElement)",
77 'HTMLMarqueeElement': "Element.isTagSupported('marquee')" 77 'HTMLMarqueeElement': "Element.isTagSupported('marquee')"
78 "&& (new Element.tag('marquee') is MarqueeElement)", 78 "&& (new Element.tag('marquee') is MarqueeElement)",
79 'HTMLMeterElement': "Element.isTagSupported('meter')", 79 'HTMLMeterElement': "Element.isTagSupported('meter')",
80 'HTMLObjectElement': "Element.isTagSupported('object')", 80 'HTMLObjectElement': "Element.isTagSupported('object')",
81 'HTMLOutputElement': "Element.isTagSupported('output')", 81 'HTMLOutputElement': "Element.isTagSupported('output')",
82 'HTMLProgressElement': "Element.isTagSupported('progress')", 82 'HTMLProgressElement': "Element.isTagSupported('progress')",
83 'HTMLShadowElement': "Element.isTagSupported('shadow')",
83 'HTMLTrackElement': "Element.isTagSupported('track')", 84 'HTMLTrackElement': "Element.isTagSupported('track')",
84 } 85 }
85 86
86 # Classes that offer only static methods, and therefore we should suppress 87 # Classes that offer only static methods, and therefore we should suppress
87 # constructor creation. 88 # constructor creation.
88 _static_classes = set(['Url']) 89 _static_classes = set(['Url'])
89 90
90 # Information for generating element constructors. 91 # Information for generating element constructors.
91 # 92 #
92 # TODO(sra): maybe remove all the argument complexity and use cascades. 93 # TODO(sra): maybe remove all the argument complexity and use cascades.
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 for library_name in libraries: 1042 for library_name in libraries:
1042 self._libraries[library_name] = DartLibrary( 1043 self._libraries[library_name] = DartLibrary(
1043 library_name, template_loader, library_type, output_dir) 1044 library_name, template_loader, library_type, output_dir)
1044 1045
1045 def AddFile(self, basename, library_name, path): 1046 def AddFile(self, basename, library_name, path):
1046 self._libraries[library_name].AddFile(path) 1047 self._libraries[library_name].AddFile(path)
1047 1048
1048 def Emit(self, emitter, auxiliary_dir): 1049 def Emit(self, emitter, auxiliary_dir):
1049 for lib in self._libraries.values(): 1050 for lib in self._libraries.values():
1050 lib.Emit(emitter, auxiliary_dir) 1051 lib.Emit(emitter, auxiliary_dir)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698