| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 'RTCIceCandidate': 'RTCIceCandidate,mozRTCIceCandidate', | 129 'RTCIceCandidate': 'RTCIceCandidate,mozRTCIceCandidate', |
| 130 | 130 |
| 131 'RTCSessionDescription': 'RTCSessionDescription,mozRTCSessionDescription', | 131 'RTCSessionDescription': 'RTCSessionDescription,mozRTCSessionDescription', |
| 132 | 132 |
| 133 'RTCDataChannel': 'RTCDataChannel,DataChannel', | 133 'RTCDataChannel': 'RTCDataChannel,DataChannel', |
| 134 | 134 |
| 135 'ScriptProcessorNode': 'ScriptProcessorNode,JavaScriptAudioNode', | 135 'ScriptProcessorNode': 'ScriptProcessorNode,JavaScriptAudioNode', |
| 136 | 136 |
| 137 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', | 137 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', |
| 138 | 138 |
| 139 'WebGLLoseContext': 'WebGLLoseContext,WebGLExtensionLoseContext', |
| 140 |
| 139 'WebKitCSSKeyframeRule': | 141 'WebKitCSSKeyframeRule': |
| 140 'CSSKeyframeRule,MozCSSKeyframeRule,WebKitCSSKeyframeRule', | 142 'CSSKeyframeRule,MozCSSKeyframeRule,WebKitCSSKeyframeRule', |
| 141 | 143 |
| 142 'WebKitCSSKeyframesRule': | 144 'WebKitCSSKeyframesRule': |
| 143 'CSSKeyframesRule,MozCSSKeyframesRule,WebKitCSSKeyframesRule', | 145 'CSSKeyframesRule,MozCSSKeyframesRule,WebKitCSSKeyframesRule', |
| 144 | 146 |
| 145 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent', | 147 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent', |
| 146 | 148 |
| 147 'XMLHttpRequestUpload': 'XMLHttpRequestUpload,XMLHttpRequestEventTarget', | 149 'XMLHttpRequestUpload': 'XMLHttpRequestUpload,XMLHttpRequestEventTarget', |
| 148 | 150 |
| (...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 type_name, type_data, dart_interface_name, self) | 1198 type_name, type_data, dart_interface_name, self) |
| 1197 | 1199 |
| 1198 if type_data.clazz == 'BasicTypedList': | 1200 if type_data.clazz == 'BasicTypedList': |
| 1199 dart_interface_name = self._renamer.RenameInterface( | 1201 dart_interface_name = self._renamer.RenameInterface( |
| 1200 self._database.GetInterface(type_name)) | 1202 self._database.GetInterface(type_name)) |
| 1201 return BasicTypedListIDLTypeInfo( | 1203 return BasicTypedListIDLTypeInfo( |
| 1202 type_name, type_data, dart_interface_name, self) | 1204 type_name, type_data, dart_interface_name, self) |
| 1203 | 1205 |
| 1204 class_name = '%sIDLTypeInfo' % type_data.clazz | 1206 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1205 return globals()[class_name](type_name, type_data) | 1207 return globals()[class_name](type_name, type_data) |
| OLD | NEW |