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

Side by Side Diff: client/dom/scripts/dartgenerator.py

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 generates Dart APIs from the IDL database.""" 6 """This module generates Dart APIs from the IDL database."""
7 7
8 import emitter 8 import emitter
9 import idlnode 9 import idlnode
10 import logging 10 import logging
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 if 'frog' in systems: 274 if 'frog' in systems:
275 frog_system = FrogSystem( 275 frog_system = FrogSystem(
276 TemplateLoader(self._template_dir, ['dom/frog', 'dom', '']), 276 TemplateLoader(self._template_dir, ['dom/frog', 'dom', '']),
277 self._database, self._emitters, self._output_dir) 277 self._database, self._emitters, self._output_dir)
278 278
279 frog_system._interface_system = interface_system 279 frog_system._interface_system = interface_system
280 self._systems.append(frog_system) 280 self._systems.append(frog_system)
281 281
282 if 'htmlfrog' in systems: 282 if 'htmlfrog' in systems:
283 html_system = HtmlFrogSystem( 283 html_system = HtmlFrogSystem(
284 TemplateLoader(self._template_dir, ['html/frog', 'html', '']), 284 TemplateLoader(self._template_dir,
285 ['html/frog', 'html/impl', 'html', '']),
285 self._database, self._emitters, self._output_dir, self) 286 self._database, self._emitters, self._output_dir, self)
286 287
287 html_system._interface_system = html_interface_system 288 html_system._interface_system = html_interface_system
288 self._systems.append(html_system) 289 self._systems.append(html_system)
289 290
290 if 'htmldartium' in systems: 291 if 'htmldartium' in systems:
291 html_system = HtmlDartiumSystem( 292 html_system = HtmlDartiumSystem(
292 TemplateLoader(self._template_dir, ['html/dartium', 'html', '']), 293 TemplateLoader(self._template_dir,
294 ['html/dartium', 'html/impl', 'html', '']),
293 self._database, self._emitters, self._output_dir, self) 295 self._database, self._emitters, self._output_dir, self)
294 296
295 html_system._interface_system = html_interface_system 297 html_system._interface_system = html_interface_system
296 self._systems.append(html_system) 298 self._systems.append(html_system)
297 299
298 # Collect interfaces 300 # Collect interfaces
299 interfaces = [] 301 interfaces = []
300 for interface in database.GetInterfaces(): 302 for interface in database.GetInterfaces():
301 if not MatchSourceFilter(source_filter, interface): 303 if not MatchSourceFilter(source_filter, interface):
302 # Skip this interface since it's not present in the required source 304 # Skip this interface since it's not present in the required source
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 pass 667 pass
666 668
667 def AddTypedArrayConstructors(self, element_type): 669 def AddTypedArrayConstructors(self, element_type):
668 pass 670 pass
669 671
670 def AddOperation(self, info): 672 def AddOperation(self, info):
671 pass 673 pass
672 674
673 def AddEventAttributes(self, event_attrs): 675 def AddEventAttributes(self, event_attrs):
674 pass 676 pass
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698