| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 cpp_class_name_or_partial = cpp_name_or_partial(interface) | 157 cpp_class_name_or_partial = cpp_name_or_partial(interface) |
| 158 v8_class_name_or_partial = v8_utilities.v8_class_name_or_partial(interface) | 158 v8_class_name_or_partial = v8_utilities.v8_class_name_or_partial(interface) |
| 159 | 159 |
| 160 context = { | 160 context = { |
| 161 'cpp_class': cpp_class_name, | 161 'cpp_class': cpp_class_name, |
| 162 'cpp_class_or_partial': cpp_class_name_or_partial, | 162 'cpp_class_or_partial': cpp_class_name_or_partial, |
| 163 'event_target_inheritance': 'InheritFromEventTarget' if is_event_target
else 'NotInheritFromEventTarget', | 163 'event_target_inheritance': 'InheritFromEventTarget' if is_event_target
else 'NotInheritFromEventTarget', |
| 164 'is_gc_type': True, | 164 'is_gc_type': True, |
| 165 # FIXME: Remove 'EventTarget' special handling, http://crbug.com/383699 | 165 # FIXME: Remove 'EventTarget' special handling, http://crbug.com/383699 |
| 166 'has_access_check_callbacks': (is_check_security and | 166 'has_access_check_callbacks': (is_check_security and |
| 167 interface.name != 'Window' and | |
| 168 interface.name != 'EventTarget'), | 167 interface.name != 'EventTarget'), |
| 169 'has_custom_legacy_call_as_function': has_extended_attribute_value(inter
face, 'Custom', 'LegacyCallAsFunction'), # [Custom=LegacyCallAsFunction] | 168 'has_custom_legacy_call_as_function': has_extended_attribute_value(inter
face, 'Custom', 'LegacyCallAsFunction'), # [Custom=LegacyCallAsFunction] |
| 170 'has_partial_interface': len(interface.partial_interfaces) > 0, | 169 'has_partial_interface': len(interface.partial_interfaces) > 0, |
| 171 'has_visit_dom_wrapper': has_visit_dom_wrapper, | 170 'has_visit_dom_wrapper': has_visit_dom_wrapper, |
| 172 'header_includes': header_includes, | 171 'header_includes': header_includes, |
| 173 'interface_name': interface.name, | 172 'interface_name': interface.name, |
| 174 'is_array_buffer_or_view': is_array_buffer_or_view, | 173 'is_array_buffer_or_view': is_array_buffer_or_view, |
| 175 'is_check_security': is_check_security, | 174 'is_check_security': is_check_security, |
| 176 'is_event_target': is_event_target, | 175 'is_event_target': is_event_target, |
| 177 'is_exception': interface.is_exception, | 176 'is_exception': interface.is_exception, |
| (...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 | 1378 |
| 1380 extended_attributes = deleter.extended_attributes | 1379 extended_attributes = deleter.extended_attributes |
| 1381 idl_type = deleter.idl_type | 1380 idl_type = deleter.idl_type |
| 1382 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') | 1381 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') |
| 1383 return { | 1382 return { |
| 1384 'is_call_with_script_state': is_call_with_script_state, | 1383 'is_call_with_script_state': is_call_with_script_state, |
| 1385 'is_custom': 'Custom' in extended_attributes, | 1384 'is_custom': 'Custom' in extended_attributes, |
| 1386 'is_raises_exception': 'RaisesException' in extended_attributes, | 1385 'is_raises_exception': 'RaisesException' in extended_attributes, |
| 1387 'name': cpp_name(deleter), | 1386 'name': cpp_name(deleter), |
| 1388 } | 1387 } |
| OLD | NEW |