| 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 systems to generate | 6 """This module provides shared functionality for systems to generate |
| 7 Dart APIs from the IDL database.""" | 7 Dart APIs from the IDL database.""" |
| 8 | 8 |
| 9 import copy | 9 import copy |
| 10 import json | 10 import json |
| (...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1122 'PluginArray': TypeData(clazz='Interface', item_type='Plugin'), | 1122 'PluginArray': TypeData(clazz='Interface', item_type='Plugin'), |
| 1123 'DOMStringList': TypeData(clazz='Interface', item_type='DOMString', | 1123 'DOMStringList': TypeData(clazz='Interface', item_type='DOMString', |
| 1124 dart_type='List<String>', custom_to_native=True), | 1124 dart_type='List<String>', custom_to_native=True), |
| 1125 'FileList': TypeData(clazz='Interface', item_type='File', | 1125 'FileList': TypeData(clazz='Interface', item_type='File', |
| 1126 dart_type='List<File>'), | 1126 dart_type='List<File>'), |
| 1127 'Future': TypeData(clazz='Interface', dart_type='Future'), | 1127 'Future': TypeData(clazz='Interface', dart_type='Future'), |
| 1128 'GamepadList': TypeData(clazz='Interface', item_type='Gamepad', | 1128 'GamepadList': TypeData(clazz='Interface', item_type='Gamepad', |
| 1129 suppress_interface=True), | 1129 suppress_interface=True), |
| 1130 'GLenum': TypeData(clazz='Primitive', dart_type='int', | 1130 'GLenum': TypeData(clazz='Primitive', dart_type='int', |
| 1131 native_type='unsigned'), | 1131 native_type='unsigned'), |
| 1132 'HTMLAllCollection': TypeData(clazz='Interface', item_type='Node'), | |
| 1133 'HTMLCollection': TypeData(clazz='Interface', item_type='Node'), | 1132 'HTMLCollection': TypeData(clazz='Interface', item_type='Node'), |
| 1134 'NamedNodeMap': TypeData(clazz='Interface', item_type='Node'), | 1133 'NamedNodeMap': TypeData(clazz='Interface', item_type='Node'), |
| 1135 'NodeList': TypeData(clazz='Interface', item_type='Node', | 1134 'NodeList': TypeData(clazz='Interface', item_type='Node', |
| 1136 suppress_interface=False, dart_type='List<Node>'), | 1135 suppress_interface=False, dart_type='List<Node>'), |
| 1137 'SVGElementInstanceList': TypeData(clazz='Interface', | 1136 'SVGElementInstanceList': TypeData(clazz='Interface', |
| 1138 item_type='SVGElementInstance', suppress_interface=True), | 1137 item_type='SVGElementInstance', suppress_interface=True), |
| 1139 'SourceBufferList': TypeData(clazz='Interface', item_type='SourceBuffer'), | 1138 'SourceBufferList': TypeData(clazz='Interface', item_type='SourceBuffer'), |
| 1140 'SpeechGrammarList': TypeData(clazz='Interface', item_type='SpeechGrammar'), | 1139 'SpeechGrammarList': TypeData(clazz='Interface', item_type='SpeechGrammar'), |
| 1141 'SpeechInputResultList': TypeData(clazz='Interface', | 1140 'SpeechInputResultList': TypeData(clazz='Interface', |
| 1142 item_type='SpeechInputResult', suppress_interface=True), | 1141 item_type='SpeechInputResult', suppress_interface=True), |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 if type_data.clazz == 'BasicTypedList': | 1254 if type_data.clazz == 'BasicTypedList': |
| 1256 if type_name == 'ArrayBuffer': | 1255 if type_name == 'ArrayBuffer': |
| 1257 dart_interface_name = 'ByteBuffer' | 1256 dart_interface_name = 'ByteBuffer' |
| 1258 else: | 1257 else: |
| 1259 dart_interface_name = self._renamer.RenameInterfaceId(type_name) | 1258 dart_interface_name = self._renamer.RenameInterfaceId(type_name) |
| 1260 return BasicTypedListIDLTypeInfo( | 1259 return BasicTypedListIDLTypeInfo( |
| 1261 type_name, type_data, dart_interface_name, self) | 1260 type_name, type_data, dart_interface_name, self) |
| 1262 | 1261 |
| 1263 class_name = '%sIDLTypeInfo' % type_data.clazz | 1262 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1264 return globals()[class_name](type_name, type_data) | 1263 return globals()[class_name](type_name, type_data) |
| OLD | NEW |