| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 'DOMApplicationCache': | 80 'DOMApplicationCache': |
| 81 'ApplicationCache,DOMApplicationCache,OfflineResourceList', | 81 'ApplicationCache,DOMApplicationCache,OfflineResourceList', |
| 82 | 82 |
| 83 'MutationObserver': 'MutationObserver,WebKitMutationObserver', | 83 'MutationObserver': 'MutationObserver,WebKitMutationObserver', |
| 84 | 84 |
| 85 'NodeList': 'NodeList,RadioNodeList', | 85 'NodeList': 'NodeList,RadioNodeList', |
| 86 | 86 |
| 87 'RTCPeerConnection': 'RTCPeerConnection,mozRTCPeerConnection', | 87 'RTCPeerConnection': 'RTCPeerConnection,mozRTCPeerConnection', |
| 88 | 88 |
| 89 'RTCIceCandidate': 'RTCIceCandidate,mozRTCIceCandidate', |
| 90 |
| 91 'RTCSessionDescription': 'RTCSessionDescription,mozRTCSessionDescription', |
| 92 |
| 89 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', | 93 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', |
| 90 | 94 |
| 91 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent', | 95 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent', |
| 92 | 96 |
| 93 }, dart2jsOnly=True) | 97 }, dart2jsOnly=True) |
| 94 | 98 |
| 95 def IsRegisteredType(type_name): | 99 def IsRegisteredType(type_name): |
| 96 return type_name in _idl_type_registry | 100 return type_name in _idl_type_registry |
| 97 | 101 |
| 98 def MakeNativeSpec(javascript_binding_name): | 102 def MakeNativeSpec(javascript_binding_name): |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 type_name, type_data, dart_interface_name, self) | 1115 type_name, type_data, dart_interface_name, self) |
| 1112 | 1116 |
| 1113 if type_data.clazz == 'BasicTypedList': | 1117 if type_data.clazz == 'BasicTypedList': |
| 1114 dart_interface_name = self._renamer.RenameInterface( | 1118 dart_interface_name = self._renamer.RenameInterface( |
| 1115 self._database.GetInterface(type_name)) | 1119 self._database.GetInterface(type_name)) |
| 1116 return BasicTypedListIDLTypeInfo( | 1120 return BasicTypedListIDLTypeInfo( |
| 1117 type_name, type_data, dart_interface_name, self) | 1121 type_name, type_data, dart_interface_name, self) |
| 1118 | 1122 |
| 1119 class_name = '%sIDLTypeInfo' % type_data.clazz | 1123 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1120 return globals()[class_name](type_name, type_data) | 1124 return globals()[class_name](type_name, type_data) |
| OLD | NEW |