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

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

Issue 10126002: Enable html_dartium to be built as part of dartium build (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 self._database, self._emitters, self._output_dir, self) 294 self._database, self._emitters, self._output_dir, self)
295 295
296 html_system._interface_system = html_interface_system 296 html_system._interface_system = html_interface_system
297 self._systems.append(html_system) 297 self._systems.append(html_system)
298 298
299 if 'htmldartium' in systems: 299 if 'htmldartium' in systems:
300 html_system = HtmlDartiumSystem( 300 html_system = HtmlDartiumSystem(
301 TemplateLoader(self._template_dir, 301 TemplateLoader(self._template_dir,
302 ['html/dartium', 'html/impl', 'html', ''], 302 ['html/dartium', 'html/impl', 'html', ''],
303 {'DARTIUM': True, 'FROG': False}), 303 {'DARTIUM': True, 'FROG': False}),
304 self._database, self._emitters, self._output_dir, self) 304 self._database, self._emitters, self._auxiliary_dir,
305 self._output_dir, self)
305 306
306 html_system._interface_system = html_interface_system 307 html_system._interface_system = html_interface_system
307 self._systems.append(html_system) 308 self._systems.append(html_system)
308 309
309 # Collect interfaces 310 # Collect interfaces
310 interfaces = [] 311 interfaces = []
311 for interface in database.GetInterfaces(): 312 for interface in database.GetInterfaces():
312 if not MatchSourceFilter(source_filter, interface): 313 if not MatchSourceFilter(source_filter, interface):
313 # Skip this interface since it's not present in the required source 314 # Skip this interface since it's not present in the required source
314 _logger.info('Omitting interface - %s' % interface.id) 315 _logger.info('Omitting interface - %s' % interface.id)
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 pass 633 pass
633 634
634 def AddTypedArrayConstructors(self, element_type): 635 def AddTypedArrayConstructors(self, element_type):
635 pass 636 pass
636 637
637 def AddOperation(self, info): 638 def AddOperation(self, info):
638 pass 639 pass
639 640
640 def AddEventAttributes(self, event_attrs): 641 def AddEventAttributes(self, event_attrs):
641 pass 642 pass
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698