| OLD | NEW |
| 1 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 2 # coding=utf-8 | 2 # coding=utf-8 |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 v8_class_name = v8_utilities.v8_class_name(interface) | 176 v8_class_name = v8_utilities.v8_class_name(interface) |
| 177 cpp_class_name = cpp_name(interface) | 177 cpp_class_name = cpp_name(interface) |
| 178 cpp_class_name_or_partial = cpp_name_or_partial(interface) | 178 cpp_class_name_or_partial = cpp_name_or_partial(interface) |
| 179 v8_class_name_or_partial = v8_utilities.v8_class_name_or_partial(interface) | 179 v8_class_name_or_partial = v8_utilities.v8_class_name_or_partial(interface) |
| 180 | 180 |
| 181 context = { | 181 context = { |
| 182 'conditional_string': conditional_string(interface), # [Conditional] | 182 'conditional_string': conditional_string(interface), # [Conditional] |
| 183 'cpp_class': cpp_class_name, | 183 'cpp_class': cpp_class_name, |
| 184 'cpp_class_or_partial': cpp_class_name_or_partial, | 184 'cpp_class_or_partial': cpp_class_name_or_partial, |
| 185 'event_target_inheritance': 'InheritFromEventTarget' if is_event_target
else 'NotInheritFromEventTarget', |
| 185 'gc_type': this_gc_type, | 186 'gc_type': this_gc_type, |
| 186 # FIXME: Remove 'EventTarget' special handling, http://crbug.com/383699 | 187 # FIXME: Remove 'EventTarget' special handling, http://crbug.com/383699 |
| 187 'has_access_check_callbacks': (is_check_security and | 188 'has_access_check_callbacks': (is_check_security and |
| 188 interface.name != 'Window' and | 189 interface.name != 'Window' and |
| 189 interface.name != 'EventTarget'), | 190 interface.name != 'EventTarget'), |
| 190 'has_custom_legacy_call_as_function': has_extended_attribute_value(inter
face, 'Custom', 'LegacyCallAsFunction'), # [Custom=LegacyCallAsFunction] | 191 'has_custom_legacy_call_as_function': has_extended_attribute_value(inter
face, 'Custom', 'LegacyCallAsFunction'), # [Custom=LegacyCallAsFunction] |
| 191 'has_custom_to_v8': has_extended_attribute_value(interface, 'Custom', 'T
oV8'), # [Custom=ToV8] | 192 'has_custom_to_v8': has_extended_attribute_value(interface, 'Custom', 'T
oV8'), # [Custom=ToV8] |
| 192 'has_partial_interface': len(interface.partial_interfaces) > 0, | 193 'has_partial_interface': len(interface.partial_interfaces) > 0, |
| 193 'has_visit_dom_wrapper': has_visit_dom_wrapper, | 194 'has_visit_dom_wrapper': has_visit_dom_wrapper, |
| 194 'header_includes': header_includes, | 195 'header_includes': header_includes, |
| 195 'interface_name': interface.name, | 196 'interface_name': interface.name, |
| 196 'is_active_dom_object': is_active_dom_object, | 197 'is_active_dom_object': is_active_dom_object, |
| 197 'is_array_buffer_or_view': is_array_buffer_or_view, | 198 'is_array_buffer_or_view': is_array_buffer_or_view, |
| 198 'is_check_security': is_check_security, | 199 'is_check_security': is_check_security, |
| 199 'is_dependent_lifetime': is_dependent_lifetime, | |
| 200 'is_event_target': is_event_target, | 200 'is_event_target': is_event_target, |
| 201 'is_exception': interface.is_exception, | 201 'is_exception': interface.is_exception, |
| 202 'is_node': inherits_interface(interface.name, 'Node'), | 202 'is_node': inherits_interface(interface.name, 'Node'), |
| 203 'is_partial': interface.is_partial, | 203 'is_partial': interface.is_partial, |
| 204 'is_typed_array_type': is_typed_array_type, | 204 'is_typed_array_type': is_typed_array_type, |
| 205 'iterator_method': iterator_method, | 205 'iterator_method': iterator_method, |
| 206 'lifetime': 'Dependent' | 206 'lifetime': 'Dependent' |
| 207 if (has_visit_dom_wrapper or | 207 if (has_visit_dom_wrapper or |
| 208 is_active_dom_object or | 208 is_active_dom_object or |
| 209 is_dependent_lifetime) | 209 is_dependent_lifetime) |
| (...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 deleter = next( | 1235 deleter = next( |
| 1236 method | 1236 method |
| 1237 for method in interface.operations | 1237 for method in interface.operations |
| 1238 if ('deleter' in method.specials and | 1238 if ('deleter' in method.specials and |
| 1239 len(method.arguments) == 1 and | 1239 len(method.arguments) == 1 and |
| 1240 str(method.arguments[0].idl_type) == 'DOMString')) | 1240 str(method.arguments[0].idl_type) == 'DOMString')) |
| 1241 except StopIteration: | 1241 except StopIteration: |
| 1242 return None | 1242 return None |
| 1243 | 1243 |
| 1244 return property_deleter(deleter) | 1244 return property_deleter(deleter) |
| OLD | NEW |