| OLD | NEW |
| 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 logging | 10 import logging |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 ElementConstructorInfo(tag='img', | 160 ElementConstructorInfo(tag='img', |
| 161 opt_params=[('DOMString', 'src'), | 161 opt_params=[('DOMString', 'src'), |
| 162 ('int', 'width'), ('int', 'height')]), | 162 ('int', 'width'), ('int', 'height')]), |
| 163 'HTMLKeygenElement': 'keygen', | 163 'HTMLKeygenElement': 'keygen', |
| 164 'HTMLLIElement': 'li', | 164 'HTMLLIElement': 'li', |
| 165 'HTMLLabelElement': 'label', | 165 'HTMLLabelElement': 'label', |
| 166 'HTMLLegendElement': 'legend', | 166 'HTMLLegendElement': 'legend', |
| 167 'HTMLLinkElement': 'link', | 167 'HTMLLinkElement': 'link', |
| 168 'HTMLMapElement': 'map', | 168 'HTMLMapElement': 'map', |
| 169 'HTMLMenuElement': 'menu', | 169 'HTMLMenuElement': 'menu', |
| 170 'HTMLMetaElement': 'meta', |
| 170 'HTMLMeterElement': 'meter', | 171 'HTMLMeterElement': 'meter', |
| 171 'HTMLOListElement': 'ol', | 172 'HTMLOListElement': 'ol', |
| 172 'HTMLObjectElement': 'object', | 173 'HTMLObjectElement': 'object', |
| 173 'HTMLOptGroupElement': 'optgroup', | 174 'HTMLOptGroupElement': 'optgroup', |
| 174 'HTMLOutputElement': 'output', | 175 'HTMLOutputElement': 'output', |
| 175 'HTMLParagraphElement': 'p', | 176 'HTMLParagraphElement': 'p', |
| 176 'HTMLParamElement': 'param', | 177 'HTMLParamElement': 'param', |
| 177 'HTMLPreElement': 'pre', | 178 'HTMLPreElement': 'pre', |
| 178 'HTMLProgressElement': 'progress', | 179 'HTMLProgressElement': 'progress', |
| 180 'HTMLQuoteElement': 'q', |
| 179 'HTMLScriptElement': 'script', | 181 'HTMLScriptElement': 'script', |
| 180 'HTMLSelectElement': 'select', | 182 'HTMLSelectElement': 'select', |
| 183 'HTMLShadowElement': 'shadow', |
| 181 'HTMLSourceElement': 'source', | 184 'HTMLSourceElement': 'source', |
| 182 'HTMLSpanElement': 'span', | 185 'HTMLSpanElement': 'span', |
| 183 'HTMLStyleElement': 'style', | 186 'HTMLStyleElement': 'style', |
| 184 'HTMLTableCaptionElement': 'caption', | 187 'HTMLTableCaptionElement': 'caption', |
| 185 'HTMLTableCellElement': 'td', | 188 'HTMLTableCellElement': 'td', |
| 186 'HTMLTableColElement': 'col', | 189 'HTMLTableColElement': 'col', |
| 187 'HTMLTableElement': 'table', | 190 'HTMLTableElement': 'table', |
| 188 'HTMLTableRowElement': 'tr', | 191 'HTMLTableRowElement': 'tr', |
| 189 #'HTMLTableSectionElement' <thead> <tbody> <tfoot> | 192 #'HTMLTableSectionElement' <thead> <tbody> <tfoot> |
| 190 'HTMLTemplateElement': 'template', | 193 'HTMLTemplateElement': 'template', |
| (...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1188 for library_name in libraries: | 1191 for library_name in libraries: |
| 1189 self._libraries[library_name] = DartLibrary( | 1192 self._libraries[library_name] = DartLibrary( |
| 1190 library_name, template_loader, library_type, output_dir) | 1193 library_name, template_loader, library_type, output_dir) |
| 1191 | 1194 |
| 1192 def AddFile(self, basename, library_name, path): | 1195 def AddFile(self, basename, library_name, path): |
| 1193 self._libraries[library_name].AddFile(path) | 1196 self._libraries[library_name].AddFile(path) |
| 1194 | 1197 |
| 1195 def Emit(self, emitter, auxiliary_dir): | 1198 def Emit(self, emitter, auxiliary_dir): |
| 1196 for lib in self._libraries.values(): | 1199 for lib in self._libraries.values(): |
| 1197 lib.Emit(emitter, auxiliary_dir) | 1200 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |