| 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 the systems to generate | 6 """This module provides shared functionality for the systems to generate |
| 7 native binding from the IDL database.""" | 7 native binding from the IDL database.""" |
| 8 | 8 |
| 9 import emitter | 9 import emitter |
| 10 import os | 10 import os |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 160 } |
| 161 | 161 |
| 162 _blink_1916_rename_map = { | 162 _blink_1916_rename_map = { |
| 163 'NavigatorID': 'Navigator', | 163 'NavigatorID': 'Navigator', |
| 164 'CanvasRenderingContext' : 'CanvasRenderingContext2D', | 164 'CanvasRenderingContext' : 'CanvasRenderingContext2D', |
| 165 'Clipboard': 'DataTransfer', | 165 'Clipboard': 'DataTransfer', |
| 166 'Player': 'AnimationPlayer', | 166 'Player': 'AnimationPlayer', |
| 167 'Algorithm': 'KeyAlgorithm', | 167 'Algorithm': 'KeyAlgorithm', |
| 168 'any': 'ScriptValue', | 168 'any': 'ScriptValue', |
| 169 'URLUtils': 'URL', | 169 'URLUtils': 'URL', |
| 170 'URLUtilsReadOnly': 'WorkerLocation' | 170 'URLUtilsReadOnly': 'WorkerLocation', |
| 171 'Path': 'Path2D' |
| 171 } | 172 } |
| 172 | 173 |
| 173 _cpp_partial_map = {} | 174 _cpp_partial_map = {} |
| 174 | 175 |
| 175 _cpp_no_auto_scope_list = set([ | 176 _cpp_no_auto_scope_list = set([ |
| 176 ('Document', 'body', 'Getter'), | 177 ('Document', 'body', 'Getter'), |
| 177 ('Document', 'getElementById', 'Callback'), | 178 ('Document', 'getElementById', 'Callback'), |
| 178 ('Document', 'getElementsByName', 'Callback'), | 179 ('Document', 'getElementsByName', 'Callback'), |
| 179 ('Document', 'getElementsByTagName', 'Callback'), | 180 ('Document', 'getElementsByTagName', 'Callback'), |
| 180 ('Element', 'getAttribute', 'Callback'), | 181 ('Element', 'getAttribute', 'Callback'), |
| (...skipping 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1994 e.Emit("};\n"); | 1995 e.Emit("};\n"); |
| 1995 e.Emit('\n'); | 1996 e.Emit('\n'); |
| 1996 e.Emit('} // namespace WebCore\n'); | 1997 e.Emit('} // namespace WebCore\n'); |
| 1997 | 1998 |
| 1998 def _IsOptionalStringArgumentInInitEventMethod(interface, operation, argument): | 1999 def _IsOptionalStringArgumentInInitEventMethod(interface, operation, argument): |
| 1999 return ( | 2000 return ( |
| 2000 interface.id.endswith('Event') and | 2001 interface.id.endswith('Event') and |
| 2001 operation.id.startswith('init') and | 2002 operation.id.startswith('init') and |
| 2002 argument.ext_attrs.get('Default') == 'Undefined' and | 2003 argument.ext_attrs.get('Default') == 'Undefined' and |
| 2003 argument.type.id == 'DOMString') | 2004 argument.type.id == 'DOMString') |
| OLD | NEW |