| 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 provides shared functionality for the system to generate | 6 """This module provides shared functionality for the system to generate |
| 7 Dart:html APIs from the IDL database.""" | 7 Dart:html APIs from the IDL database.""" |
| 8 | 8 |
| 9 import emitter | 9 import emitter |
| 10 import logging | 10 import logging |
| (...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 NAME=attr.id, | 918 NAME=attr.id, |
| 919 INPUT_TYPE=conversion.input_type, | 919 INPUT_TYPE=conversion.input_type, |
| 920 NATIVE_TYPE=conversion.output_type) | 920 NATIVE_TYPE=conversion.output_type) |
| 921 | 921 |
| 922 def AmendIndexer(self, element_type): | 922 def AmendIndexer(self, element_type): |
| 923 pass | 923 pass |
| 924 | 924 |
| 925 def RootClassName(self): | 925 def RootClassName(self): |
| 926 return 'Interceptor' | 926 return 'Interceptor' |
| 927 | 927 |
| 928 def OmitOperationOverrides(self): |
| 929 return True |
| 930 |
| 928 def EmitOperation(self, info, html_name): | 931 def EmitOperation(self, info, html_name): |
| 929 """ | 932 """ |
| 930 Arguments: | 933 Arguments: |
| 931 info: An OperationInfo object. | 934 info: An OperationInfo object. |
| 932 """ | 935 """ |
| 933 if self._HasCustomImplementation(info.name): | 936 if self._HasCustomImplementation(info.name): |
| 934 return | 937 return |
| 935 | 938 |
| 936 if IsPureInterface(self._interface.id): | 939 if IsPureInterface(self._interface.id): |
| 937 self._AddInterfaceOperation(info, html_name) | 940 self._AddInterfaceOperation(info, html_name) |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 for library_name in libraries: | 1220 for library_name in libraries: |
| 1218 self._libraries[library_name] = DartLibrary( | 1221 self._libraries[library_name] = DartLibrary( |
| 1219 library_name, template_loader, library_type, output_dir) | 1222 library_name, template_loader, library_type, output_dir) |
| 1220 | 1223 |
| 1221 def AddFile(self, basename, library_name, path): | 1224 def AddFile(self, basename, library_name, path): |
| 1222 self._libraries[library_name].AddFile(path) | 1225 self._libraries[library_name].AddFile(path) |
| 1223 | 1226 |
| 1224 def Emit(self, emitter, auxiliary_dir): | 1227 def Emit(self, emitter, auxiliary_dir): |
| 1225 for lib in self._libraries.values(): | 1228 for lib in self._libraries.values(): |
| 1226 lib.Emit(emitter, auxiliary_dir) | 1229 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |