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

Side by Side Diff: lib/html/scripts/systembase.py

Issue 10950007: Fix generating html_dart2js.dart and html_dartium.dart files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « lib/html/scripts/dartdomgenerator.py ('k') | lib/html/scripts/systemhtml.py » ('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 base functionality for systems to generate 6 """This module provides base functionality for systems to generate
7 Dart APIs from the IDL database.""" 7 Dart APIs from the IDL database."""
8 8
9 import os 9 import os
10 from generator import * 10 from generator import *
(...skipping 13 matching lines...) Expand all
24 - Finish 24 - Finish
25 """ 25 """
26 26
27 def __init__(self, options): 27 def __init__(self, options):
28 self._templates = options.templates 28 self._templates = options.templates
29 self._database = options.database 29 self._database = options.database
30 self._emitters = options.emitters 30 self._emitters = options.emitters
31 self._type_registry = options.type_registry 31 self._type_registry = options.type_registry
32 self._renamer = options.renamer 32 self._renamer = options.renamer
33 self._output_dir = options.output_dir 33 self._output_dir = options.output_dir
34 self._auxiliary_dir = options.auxiliary_dir
34 35
35 def ProcessInterface(self, interface): 36 def ProcessInterface(self, interface):
36 """Processes an interface that is not a callback function.""" 37 """Processes an interface that is not a callback function."""
37 pass 38 pass
38 39
39 def ProcessCallback(self, interface, info): 40 def ProcessCallback(self, interface, info):
40 """Processes an interface that is a callback function.""" 41 """Processes an interface that is a callback function."""
41 pass 42 pass
42 43
43 def GenerateLibraries(self, lib_dir): 44 def GenerateLibraries(self, lib_dir):
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 else: 211 else:
211 walk(interface.parents[1:]) 212 walk(interface.parents[1:])
212 return result 213 return result
213 214
214 def _DartType(self, type_name): 215 def _DartType(self, type_name):
215 return self._system._type_registry.DartType(type_name) 216 return self._system._type_registry.DartType(type_name)
216 217
217 218
218 class GeneratorOptions(object): 219 class GeneratorOptions(object):
219 def __init__(self, templates, database, emitters, type_registry, renamer, 220 def __init__(self, templates, database, emitters, type_registry, renamer,
220 output_dir): 221 output_dir, auxiliary_dir):
221 self.templates = templates 222 self.templates = templates
222 self.database = database 223 self.database = database
223 self.emitters = emitters 224 self.emitters = emitters
224 self.type_registry = type_registry 225 self.type_registry = type_registry
225 self.renamer = renamer 226 self.renamer = renamer
226 self.output_dir = output_dir 227 self.output_dir = output_dir
228 self.auxiliary_dir = auxiliary_dir
227 229
228 230
229 def IsReadOnly(attribute): 231 def IsReadOnly(attribute):
230 return attribute.is_read_only or 'Replaceable' in attribute.ext_attrs 232 return attribute.is_read_only or 'Replaceable' in attribute.ext_attrs
OLDNEW
« no previous file with comments | « lib/html/scripts/dartdomgenerator.py ('k') | lib/html/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698