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

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

Issue 10698108: Stop passing HtmlSystemShared around and move html renaming to IDLTypeInfo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 5 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/dom/scripts/dartdomgenerator.py ('k') | lib/dom/scripts/generator.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 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 if constructor_info: 326 if constructor_info:
327 dart_interface_name = self._interface.id 327 dart_interface_name = self._interface.id
328 self._EmitFactoryProvider(dart_interface_name, constructor_info) 328 self._EmitFactoryProvider(dart_interface_name, constructor_info)
329 329
330 def _EmitFactoryProvider(self, interface_name, constructor_info): 330 def _EmitFactoryProvider(self, interface_name, constructor_info):
331 factory_provider = '_' + interface_name + 'FactoryProvider' 331 factory_provider = '_' + interface_name + 'FactoryProvider'
332 self._system._factory_providers_emitter.Emit( 332 self._system._factory_providers_emitter.Emit(
333 self._system._templates.Load('factoryprovider.darttemplate'), 333 self._system._templates.Load('factoryprovider.darttemplate'),
334 FACTORYPROVIDER=factory_provider, 334 FACTORYPROVIDER=factory_provider,
335 CONSTRUCTOR=interface_name, 335 CONSTRUCTOR=interface_name,
336 PARAMETERS=constructor_info.ParametersImplementationDeclaration()) 336 PARAMETERS=constructor_info.ParametersImplementationDeclaration(DartType ))
337 337
338 def FinishInterface(self): 338 def FinishInterface(self):
339 pass 339 pass
340 340
341 def AddTypedArrayConstructors(self, element_type): 341 def AddTypedArrayConstructors(self, element_type):
342 pass 342 pass
343 343
344 def AddEventAttributes(self, event_attrs): 344 def AddEventAttributes(self, event_attrs):
345 pass 345 pass
OLDNEW
« no previous file with comments | « lib/dom/scripts/dartdomgenerator.py ('k') | lib/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698