OLD | NEW |
1 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 # [WillBeGarbageCollected] | 124 # [WillBeGarbageCollected] |
125 is_will_be_garbage_collected = 'WillBeGarbageCollected' in extended_attribut
es | 125 is_will_be_garbage_collected = 'WillBeGarbageCollected' in extended_attribut
es |
126 | 126 |
127 template_contents = { | 127 template_contents = { |
128 'conditional_string': conditional_string(interface), # [Conditional] | 128 'conditional_string': conditional_string(interface), # [Conditional] |
129 'cpp_class': cpp_name(interface), | 129 'cpp_class': cpp_name(interface), |
130 'has_custom_legacy_call_as_function': has_extended_attribute_value(inter
face, 'Custom', 'LegacyCallAsFunction'), # [Custom=LegacyCallAsFunction] | 130 'has_custom_legacy_call_as_function': has_extended_attribute_value(inter
face, 'Custom', 'LegacyCallAsFunction'), # [Custom=LegacyCallAsFunction] |
131 'has_custom_to_v8': has_extended_attribute_value(interface, 'Custom', 'T
oV8'), # [Custom=ToV8] | 131 'has_custom_to_v8': has_extended_attribute_value(interface, 'Custom', 'T
oV8'), # [Custom=ToV8] |
132 'has_custom_wrap': has_extended_attribute_value(interface, 'Custom', 'Wr
ap'), # [Custom=Wrap] | 132 'has_custom_wrap': has_extended_attribute_value(interface, 'Custom', 'Wr
ap'), # [Custom=Wrap] |
| 133 'has_class_bindings': 'DoNotGenerateClassBindings' not in extended_attri
butes, |
133 'has_visit_dom_wrapper': ( | 134 'has_visit_dom_wrapper': ( |
134 # [Custom=Wrap], [SetWrapperReferenceFrom] | 135 # [Custom=Wrap], [SetWrapperReferenceFrom] |
135 has_extended_attribute_value(interface, 'Custom', 'VisitDOMWrapper')
or | 136 has_extended_attribute_value(interface, 'Custom', 'VisitDOMWrapper')
or |
136 reachable_node_function or | 137 reachable_node_function or |
137 set_wrapper_reference_to_list), | 138 set_wrapper_reference_to_list), |
138 'header_includes': header_includes, | 139 'header_includes': header_includes, |
139 'interface_name': interface.name, | 140 'interface_name': interface.name, |
140 'is_active_dom_object': 'ActiveDOMObject' in extended_attributes, # [Ac
tiveDOMObject] | 141 'is_active_dom_object': 'ActiveDOMObject' in extended_attributes, # [Ac
tiveDOMObject] |
141 'is_audio_buffer': is_audio_buffer, | 142 'is_audio_buffer': is_audio_buffer, |
142 'is_check_security': is_check_security, | 143 'is_check_security': is_check_security, |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 deleter = next( | 715 deleter = next( |
715 method | 716 method |
716 for method in interface.operations | 717 for method in interface.operations |
717 if ('deleter' in method.specials and | 718 if ('deleter' in method.specials and |
718 len(method.arguments) == 1 and | 719 len(method.arguments) == 1 and |
719 method.arguments[0].idl_type == 'DOMString')) | 720 method.arguments[0].idl_type == 'DOMString')) |
720 except StopIteration: | 721 except StopIteration: |
721 return None | 722 return None |
722 | 723 |
723 return property_deleter(deleter) | 724 return property_deleter(deleter) |
OLD | NEW |