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 | 10 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 'ButtonElement': 'button', | 252 'ButtonElement': 'button', |
253 'CanvasElement': | 253 'CanvasElement': |
254 ElementConstructorInfo(tag='canvas', | 254 ElementConstructorInfo(tag='canvas', |
255 opt_params=[('int', 'width'), ('int', 'height')]), | 255 opt_params=[('int', 'width'), ('int', 'height')]), |
256 'DataListElement': 'datalist', | 256 'DataListElement': 'datalist', |
257 'DListElement': 'dl', | 257 'DListElement': 'dl', |
258 'DetailsElement': 'details', | 258 'DetailsElement': 'details', |
259 'DivElement': 'div', | 259 'DivElement': 'div', |
260 'EmbedElement': 'embed', | 260 'EmbedElement': 'embed', |
261 'FieldSetElement': 'fieldset', | 261 'FieldSetElement': 'fieldset', |
262 'Form': 'form', | 262 'FormElement': 'form', |
263 'HRElement': 'hr', | 263 'HRElement': 'hr', |
264 'HeadElement': 'head', | 264 'HeadElement': 'head', |
265 'HeadingElement': [ElementConstructorInfo('h1'), | 265 'HeadingElement': [ElementConstructorInfo('h1'), |
266 ElementConstructorInfo('h2'), | 266 ElementConstructorInfo('h2'), |
267 ElementConstructorInfo('h3'), | 267 ElementConstructorInfo('h3'), |
268 ElementConstructorInfo('h4'), | 268 ElementConstructorInfo('h4'), |
269 ElementConstructorInfo('h5'), | 269 ElementConstructorInfo('h5'), |
270 ElementConstructorInfo('h6')], | 270 ElementConstructorInfo('h6')], |
271 'HtmlElement': 'html', | 271 'HtmlElement': 'html', |
272 'IFrameElement': 'iframe', | 272 'IFrameElement': 'iframe', |
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 return HtmlDart2JSClassGenerator(self, interface) | 1227 return HtmlDart2JSClassGenerator(self, interface) |
1228 | 1228 |
1229 def GenerateLibraries(self, dart_files): | 1229 def GenerateLibraries(self, dart_files): |
1230 self._GenerateLibFile( | 1230 self._GenerateLibFile( |
1231 'html_dart2js.darttemplate', | 1231 'html_dart2js.darttemplate', |
1232 os.path.join(self._output_dir, 'html_dart2js.dart'), | 1232 os.path.join(self._output_dir, 'html_dart2js.dart'), |
1233 dart_files) | 1233 dart_files) |
1234 | 1234 |
1235 def Finish(self): | 1235 def Finish(self): |
1236 pass | 1236 pass |
OLD | NEW |