| 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 providesfunctionality for systems to generate | 6 """This module providesfunctionality for systems to generate |
| 7 Dart interfaces from the IDL database.""" | 7 Dart interfaces from the IDL database.""" |
| 8 | 8 |
| 9 import os | 9 import os |
| 10 import systembase | 10 import systembase |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 template, | 41 template, |
| 42 common_prefix, super_interface_name, | 42 common_prefix, super_interface_name, |
| 43 source_filter) | 43 source_filter) |
| 44 | 44 |
| 45 def ProcessCallback(self, interface, info): | 45 def ProcessCallback(self, interface, info): |
| 46 """Generates a typedef for the callback interface.""" | 46 """Generates a typedef for the callback interface.""" |
| 47 interface_name = interface.id | 47 interface_name = interface.id |
| 48 file_path = self._FilePathForDartInterface(interface_name) | 48 file_path = self._FilePathForDartInterface(interface_name) |
| 49 self._ProcessCallback(interface, info, file_path) | 49 self._ProcessCallback(interface, info, file_path) |
| 50 | 50 |
| 51 def GenerateLibraries(self, lib_dir): | 51 def GenerateLibraries(self): |
| 52 pass | 52 pass |
| 53 | 53 |
| 54 | 54 |
| 55 def _FilePathForDartInterface(self, interface_name): | 55 def _FilePathForDartInterface(self, interface_name): |
| 56 """Returns the file path of the Dart interface definition.""" | 56 """Returns the file path of the Dart interface definition.""" |
| 57 return os.path.join(self._output_dir, 'src', 'interface', | 57 return os.path.join(self._output_dir, 'src', 'interface', |
| 58 '%s.dart' % interface_name) | 58 '%s.dart' % interface_name) |
| 59 | 59 |
| 60 # ------------------------------------------------------------------------------ | 60 # ------------------------------------------------------------------------------ |
| 61 | 61 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 220 |
| 221 def AddStaticOperation(self, info): | 221 def AddStaticOperation(self, info): |
| 222 pass | 222 pass |
| 223 | 223 |
| 224 # Interfaces get secondary members directly via the superinterfaces. | 224 # Interfaces get secondary members directly via the superinterfaces. |
| 225 def AddSecondaryAttribute(self, interface, getter, setter): | 225 def AddSecondaryAttribute(self, interface, getter, setter): |
| 226 pass | 226 pass |
| 227 | 227 |
| 228 def AddSecondaryOperation(self, interface, attr): | 228 def AddSecondaryOperation(self, interface, attr): |
| 229 pass | 229 pass |
| OLD | NEW |