| 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 | 
|  | 10 import systembase | 
| 9 from generator import * | 11 from generator import * | 
| 10 from systembase import * |  | 
| 11 | 12 | 
| 12 class InterfacesSystem(System): | 13 class InterfacesSystem(systembase.System): | 
| 13 | 14 | 
| 14   def __init__(self, templates, database, emitters, output_dir): | 15   def __init__(self, templates, database, emitters, output_dir): | 
| 15     super(InterfacesSystem, self).__init__( | 16     super(InterfacesSystem, self).__init__( | 
| 16         templates, database, emitters, output_dir) | 17         templates, database, emitters, output_dir) | 
| 17     self._dart_interface_file_paths = [] | 18     self._dart_interface_file_paths = [] | 
| 18 | 19 | 
| 19 | 20 | 
| 20   def InterfaceGenerator(self, | 21   def InterfaceGenerator(self, | 
| 21                          interface, | 22                          interface, | 
| 22                          common_prefix, | 23                          common_prefix, | 
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 193 | 194 | 
| 194   # Interfaces get secondary members directly via the superinterfaces. | 195   # Interfaces get secondary members directly via the superinterfaces. | 
| 195   def AddSecondaryAttribute(self, interface, getter, setter): | 196   def AddSecondaryAttribute(self, interface, getter, setter): | 
| 196     pass | 197     pass | 
| 197 | 198 | 
| 198   def AddSecondaryOperation(self, interface, attr): | 199   def AddSecondaryOperation(self, interface, attr): | 
| 199     pass | 200     pass | 
| 200 | 201 | 
| 201   def AddEventAttributes(self, event_attrs): | 202   def AddEventAttributes(self, event_attrs): | 
| 202     pass | 203     pass | 
| OLD | NEW | 
|---|