| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 # Custom native specs for the dart2js dom. | 85 # Custom native specs for the dart2js dom. |
| 86 # | 86 # |
| 87 _dart2js_dom_custom_native_specs = monitored.Dict( | 87 _dart2js_dom_custom_native_specs = monitored.Dict( |
| 88 'generator._dart2js_dom_custom_native_specs', { | 88 'generator._dart2js_dom_custom_native_specs', { |
| 89 | 89 |
| 90 # Nodes with different tags in different browsers can be listed as multiple | 90 # Nodes with different tags in different browsers can be listed as multiple |
| 91 # tags here provided there is not conflict in usage (e.g. browser X has tag | 91 # tags here provided there is not conflict in usage (e.g. browser X has tag |
| 92 # T and no other browser has tag T). | 92 # T and no other browser has tag T). |
| 93 | 93 |
| 94 'AnalyserNode': 'AnalyserNode,RealtimeAnalyserNode', | 94 'AnalyserNode': 'AnalyserNode,RealtimeAnalyserNode', |
| 95 'AudioContext': 'AudioContext,webkitAudioContext', |
| 95 | 96 |
| 96 'ChannelMergerNode': 'ChannelMergerNode,AudioChannelMerger', | 97 'ChannelMergerNode': 'ChannelMergerNode,AudioChannelMerger', |
| 97 'ChannelSplitterNode': 'ChannelSplitterNode,AudioChannelSplitter', | 98 'ChannelSplitterNode': 'ChannelSplitterNode,AudioChannelSplitter', |
| 98 | 99 |
| 99 'CSSStyleDeclaration': | 100 'CSSStyleDeclaration': |
| 100 # IE Firefox | 101 # IE Firefox |
| 101 'CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties', | 102 'CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties', |
| 102 | 103 |
| 103 'ApplicationCache': | 104 'ApplicationCache': |
| 104 'ApplicationCache,DOMApplicationCache,OfflineResourceList', | 105 'ApplicationCache,DOMApplicationCache,OfflineResourceList', |
| (...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1248 if type_data.clazz == 'BasicTypedList': | 1249 if type_data.clazz == 'BasicTypedList': |
| 1249 if type_name == 'ArrayBuffer': | 1250 if type_name == 'ArrayBuffer': |
| 1250 dart_interface_name = 'ByteBuffer' | 1251 dart_interface_name = 'ByteBuffer' |
| 1251 else: | 1252 else: |
| 1252 dart_interface_name = self._renamer.RenameInterfaceId(type_name) | 1253 dart_interface_name = self._renamer.RenameInterfaceId(type_name) |
| 1253 return BasicTypedListIDLTypeInfo( | 1254 return BasicTypedListIDLTypeInfo( |
| 1254 type_name, type_data, dart_interface_name, self) | 1255 type_name, type_data, dart_interface_name, self) |
| 1255 | 1256 |
| 1256 class_name = '%sIDLTypeInfo' % type_data.clazz | 1257 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1257 return globals()[class_name](type_name, type_data) | 1258 return globals()[class_name](type_name, type_data) |
| OLD | NEW |