| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 # tags here provided there is not conflict in usage (e.g. browser X has tag | 77 # tags here provided there is not conflict in usage (e.g. browser X has tag |
| 78 # T and no other browser has tag T). | 78 # T and no other browser has tag T). |
| 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', |
| 88 |
| 87 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', | 89 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', |
| 88 | 90 |
| 89 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent', | 91 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent', |
| 90 | 92 |
| 91 }, dart2jsOnly=True) | 93 }, dart2jsOnly=True) |
| 92 | 94 |
| 93 def IsRegisteredType(type_name): | 95 def IsRegisteredType(type_name): |
| 94 return type_name in _idl_type_registry | 96 return type_name in _idl_type_registry |
| 95 | 97 |
| 96 def MakeNativeSpec(javascript_binding_name): | 98 def MakeNativeSpec(javascript_binding_name): |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1109 type_name, type_data, dart_interface_name, self) | 1111 type_name, type_data, dart_interface_name, self) |
| 1110 | 1112 |
| 1111 if type_data.clazz == 'BasicTypedList': | 1113 if type_data.clazz == 'BasicTypedList': |
| 1112 dart_interface_name = self._renamer.RenameInterface( | 1114 dart_interface_name = self._renamer.RenameInterface( |
| 1113 self._database.GetInterface(type_name)) | 1115 self._database.GetInterface(type_name)) |
| 1114 return BasicTypedListIDLTypeInfo( | 1116 return BasicTypedListIDLTypeInfo( |
| 1115 type_name, type_data, dart_interface_name, self) | 1117 type_name, type_data, dart_interface_name, self) |
| 1116 | 1118 |
| 1117 class_name = '%sIDLTypeInfo' % type_data.clazz | 1119 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1118 return globals()[class_name](type_name, type_data) | 1120 return globals()[class_name](type_name, type_data) |
| OLD | NEW |