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 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1438 suppress_interface=True), | 1438 suppress_interface=True), |
1439 'EntryArraySync': TypeData(clazz='Interface', item_type='EntrySync', | 1439 'EntryArraySync': TypeData(clazz='Interface', item_type='EntrySync', |
1440 suppress_interface=True), | 1440 suppress_interface=True), |
1441 'FileList': TypeData(clazz='Interface', item_type='File', | 1441 'FileList': TypeData(clazz='Interface', item_type='File', |
1442 dart_type='List<File>'), | 1442 dart_type='List<File>'), |
1443 'Future': TypeData(clazz='Interface', dart_type='Future'), | 1443 'Future': TypeData(clazz='Interface', dart_type='Future'), |
1444 'GamepadList': TypeData(clazz='Interface', item_type='Gamepad', | 1444 'GamepadList': TypeData(clazz='Interface', item_type='Gamepad', |
1445 suppress_interface=True), | 1445 suppress_interface=True), |
1446 'HTMLAllCollection': TypeData(clazz='Interface', item_type='Node'), | 1446 'HTMLAllCollection': TypeData(clazz='Interface', item_type='Node'), |
1447 'HTMLCollection': TypeData(clazz='Interface', item_type='Node'), | 1447 'HTMLCollection': TypeData(clazz='Interface', item_type='Node'), |
1448 'MediaStreamList': TypeData(clazz='Interface', | |
1449 item_type='MediaStream', suppress_interface=True), | |
1450 'NamedNodeMap': TypeData(clazz='Interface', item_type='Node'), | 1448 'NamedNodeMap': TypeData(clazz='Interface', item_type='Node'), |
1451 'NodeList': TypeData(clazz='Interface', item_type='Node', | 1449 'NodeList': TypeData(clazz='Interface', item_type='Node', |
1452 suppress_interface=False, dart_type='List<Node>'), | 1450 suppress_interface=False, dart_type='List<Node>'), |
1453 'SVGElementInstanceList': TypeData(clazz='Interface', | 1451 'SVGElementInstanceList': TypeData(clazz='Interface', |
1454 item_type='SVGElementInstance', suppress_interface=True), | 1452 item_type='SVGElementInstance', suppress_interface=True), |
1455 'SourceBufferList': TypeData(clazz='Interface', item_type='SourceBuffer'), | 1453 'SourceBufferList': TypeData(clazz='Interface', item_type='SourceBuffer'), |
1456 'SpeechGrammarList': TypeData(clazz='Interface', item_type='SpeechGrammar'), | 1454 'SpeechGrammarList': TypeData(clazz='Interface', item_type='SpeechGrammar'), |
1457 'SpeechInputResultList': TypeData(clazz='Interface', | 1455 'SpeechInputResultList': TypeData(clazz='Interface', |
1458 item_type='SpeechInputResult', suppress_interface=True), | 1456 item_type='SpeechInputResult', suppress_interface=True), |
1459 'SpeechRecognitionResultList': TypeData(clazz='Interface', | 1457 'SpeechRecognitionResultList': TypeData(clazz='Interface', |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1562 self) | 1560 self) |
1563 | 1561 |
1564 if type_data.clazz == 'SVGTearOff': | 1562 if type_data.clazz == 'SVGTearOff': |
1565 dart_interface_name = self._renamer.RenameInterface( | 1563 dart_interface_name = self._renamer.RenameInterface( |
1566 self._database.GetInterface(type_name)) | 1564 self._database.GetInterface(type_name)) |
1567 return SVGTearOffIDLTypeInfo( | 1565 return SVGTearOffIDLTypeInfo( |
1568 type_name, type_data, dart_interface_name, self) | 1566 type_name, type_data, dart_interface_name, self) |
1569 | 1567 |
1570 class_name = '%sIDLTypeInfo' % type_data.clazz | 1568 class_name = '%sIDLTypeInfo' % type_data.clazz |
1571 return globals()[class_name](type_name, type_data) | 1569 return globals()[class_name](type_name, type_data) |
OLD | NEW |