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