| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 'MutationObserver': 'MutationObserver,WebKitMutationObserver', | 94 'MutationObserver': 'MutationObserver,WebKitMutationObserver', |
| 95 | 95 |
| 96 'NodeList': 'NodeList,RadioNodeList', | 96 'NodeList': 'NodeList,RadioNodeList', |
| 97 | 97 |
| 98 'RTCPeerConnection': 'RTCPeerConnection,mozRTCPeerConnection', | 98 'RTCPeerConnection': 'RTCPeerConnection,mozRTCPeerConnection', |
| 99 | 99 |
| 100 'RTCIceCandidate': 'RTCIceCandidate,mozRTCIceCandidate', | 100 'RTCIceCandidate': 'RTCIceCandidate,mozRTCIceCandidate', |
| 101 | 101 |
| 102 'RTCSessionDescription': 'RTCSessionDescription,mozRTCSessionDescription', | 102 'RTCSessionDescription': 'RTCSessionDescription,mozRTCSessionDescription', |
| 103 | 103 |
| 104 'RTCDataChannel': 'RTCDataChannel,DataChannel', |
| 105 |
| 104 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', | 106 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', |
| 105 | 107 |
| 106 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent', | 108 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent', |
| 107 | 109 |
| 108 'XMLHttpRequestUpload': 'XMLHttpRequestUpload,XMLHttpRequestEventTarget', | 110 'XMLHttpRequestUpload': 'XMLHttpRequestUpload,XMLHttpRequestEventTarget', |
| 109 | 111 |
| 110 }, dart2jsOnly=True) | 112 }, dart2jsOnly=True) |
| 111 | 113 |
| 112 def IsRegisteredType(type_name): | 114 def IsRegisteredType(type_name): |
| 113 return type_name in _idl_type_registry | 115 return type_name in _idl_type_registry |
| (...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 type_name, type_data, dart_interface_name, self) | 1145 type_name, type_data, dart_interface_name, self) |
| 1144 | 1146 |
| 1145 if type_data.clazz == 'BasicTypedList': | 1147 if type_data.clazz == 'BasicTypedList': |
| 1146 dart_interface_name = self._renamer.RenameInterface( | 1148 dart_interface_name = self._renamer.RenameInterface( |
| 1147 self._database.GetInterface(type_name)) | 1149 self._database.GetInterface(type_name)) |
| 1148 return BasicTypedListIDLTypeInfo( | 1150 return BasicTypedListIDLTypeInfo( |
| 1149 type_name, type_data, dart_interface_name, self) | 1151 type_name, type_data, dart_interface_name, self) |
| 1150 | 1152 |
| 1151 class_name = '%sIDLTypeInfo' % type_data.clazz | 1153 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1152 return globals()[class_name](type_name, type_data) | 1154 return globals()[class_name](type_name, type_data) |
| OLD | NEW |