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

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

Issue 12851013: Adding web_gl library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync to tot Created 7 years, 8 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/htmlrenamer.py ('k') | tools/dom/src/WebGLConstants.dart » ('j') | 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 'SVGUseElement': 'use', 255 'SVGUseElement': 'use',
256 'SVGViewElement': 'view', 256 'SVGViewElement': 'view',
257 'SVGVKernElement': 'vkern', 257 'SVGVKernElement': 'vkern',
258 }) 258 })
259 259
260 _element_constructors = { 260 _element_constructors = {
261 'html': _html_element_constructors, 261 'html': _html_element_constructors,
262 'indexed_db': {}, 262 'indexed_db': {},
263 'svg': _svg_element_constructors, 263 'svg': _svg_element_constructors,
264 'web_audio': {}, 264 'web_audio': {},
265 'web_gl': {},
265 'web_sql': {}, 266 'web_sql': {},
266 } 267 }
267 268
268 _factory_ctr_strings = { 269 _factory_ctr_strings = {
269 'html': { 270 'html': {
270 'provider_name': 'document', 271 'provider_name': 'document',
271 'constructor_name': '$dom_createElement' 272 'constructor_name': '$dom_createElement'
272 }, 273 },
273 'indexed_db': { 274 'indexed_db': {
274 'provider_name': 'document', 275 'provider_name': 'document',
275 'constructor_name': '$dom_createElement' 276 'constructor_name': '$dom_createElement'
276 }, 277 },
277 'svg': { 278 'svg': {
278 'provider_name': '_SvgElementFactoryProvider', 279 'provider_name': '_SvgElementFactoryProvider',
279 'constructor_name': 'createSvgElement_tag', 280 'constructor_name': 'createSvgElement_tag',
280 }, 281 },
281 'web_audio': { 282 'web_audio': {
282 'provider_name': 'document', 283 'provider_name': 'document',
283 'constructor_name': '$dom_createElement' 284 'constructor_name': '$dom_createElement'
284 }, 285 },
286 'web_gl': {
287 'provider_name': 'document',
288 'constructor_name': '$dom_createElement'
289 },
285 'web_sql': { 290 'web_sql': {
286 'provider_name': 'document', 291 'provider_name': 'document',
287 'constructor_name': '$dom_createElement' 292 'constructor_name': '$dom_createElement'
288 }, 293 },
289 } 294 }
290 295
291 def ElementConstructorInfos(typename, element_constructors, 296 def ElementConstructorInfos(typename, element_constructors,
292 factory_provider_name='_Elements'): 297 factory_provider_name='_Elements'):
293 """Returns list of ElementConstructorInfos about the convenience constructors 298 """Returns list of ElementConstructorInfos about the convenience constructors
294 for an Element or SvgElement.""" 299 for an Element or SvgElement."""
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 for library_name in libraries: 1143 for library_name in libraries:
1139 self._libraries[library_name] = DartLibrary( 1144 self._libraries[library_name] = DartLibrary(
1140 library_name, template_loader, library_type, output_dir) 1145 library_name, template_loader, library_type, output_dir)
1141 1146
1142 def AddFile(self, basename, library_name, path): 1147 def AddFile(self, basename, library_name, path):
1143 self._libraries[library_name].AddFile(path) 1148 self._libraries[library_name].AddFile(path)
1144 1149
1145 def Emit(self, emitter, auxiliary_dir): 1150 def Emit(self, emitter, auxiliary_dir):
1146 for lib in self._libraries.values(): 1151 for lib in self._libraries.values():
1147 lib.Emit(emitter, auxiliary_dir) 1152 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/src/WebGLConstants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698