Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: Source/bindings/scripts/v8_interface.py

Issue 196653003: Add [DoNotGenerateClassBindings] extended attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Compiles and links Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/scripts/v8_callback_interface.py ('k') | Source/bindings/templates/interface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_callback_interface.py ('k') | Source/bindings/templates/interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698