| OLD | NEW |
| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 302 |
| 303 def ProcessCallback(self, interface, info): | 303 def ProcessCallback(self, interface, info): |
| 304 pass | 304 pass |
| 305 | 305 |
| 306 def GenerateLibraries(self): | 306 def GenerateLibraries(self): |
| 307 # Library generated for implementation. | 307 # Library generated for implementation. |
| 308 self._GenerateLibFile( | 308 self._GenerateLibFile( |
| 309 'dom_dummy.darttemplate', | 309 'dom_dummy.darttemplate', |
| 310 os.path.join(self._output_dir, 'dom_dummy.dart'), | 310 os.path.join(self._output_dir, 'dom_dummy.dart'), |
| 311 (self._interface_system._dart_interface_file_paths + | 311 (self._interface_system._dart_interface_file_paths + |
| 312 self._interface_system._dart_callback_file_paths + | |
| 313 self._impl_file_paths)) | 312 self._impl_file_paths)) |
| 314 | 313 |
| 315 | 314 |
| 316 # ------------------------------------------------------------------------------ | 315 # ------------------------------------------------------------------------------ |
| 317 | 316 |
| 318 class DummyInterfaceGenerator(systembase.BaseGenerator): | 317 class DummyInterfaceGenerator(systembase.BaseGenerator): |
| 319 """Generates dummy implementation.""" | 318 """Generates dummy implementation.""" |
| 320 | 319 |
| 321 def __init__(self, system, interface): | 320 def __init__(self, system, interface): |
| 322 super(DummyInterfaceGenerator, self).__init__(system._database, interface) | 321 super(DummyInterfaceGenerator, self).__init__(system._database, interface) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 339 PARAMETERS=constructor_info.ParametersImplementationDeclaration()) | 338 PARAMETERS=constructor_info.ParametersImplementationDeclaration()) |
| 340 | 339 |
| 341 def FinishInterface(self): | 340 def FinishInterface(self): |
| 342 pass | 341 pass |
| 343 | 342 |
| 344 def AddTypedArrayConstructors(self, element_type): | 343 def AddTypedArrayConstructors(self, element_type): |
| 345 pass | 344 pass |
| 346 | 345 |
| 347 def AddEventAttributes(self, event_attrs): | 346 def AddEventAttributes(self, event_attrs): |
| 348 pass | 347 pass |
| OLD | NEW |