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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl

Issue 2687873005: Remove eventTargetInheritance from WrapperTypeInfo (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 {% filter format_blink_cpp_source_code %} 1 {% filter format_blink_cpp_source_code %}
2 2
3 {% include 'copyright_block.txt' %} 3 {% include 'copyright_block.txt' %}
4 #include "{{v8_class_or_partial}}.h" 4 #include "{{v8_class_or_partial}}.h"
5 5
6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} 6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %}
7 #include "{{filename}}" 7 #include "{{filename}}"
8 {% endfor %} 8 {% endfor %}
9 9
10 namespace blink { 10 namespace blink {
(...skipping 15 matching lines...) Expand all
26 'NotInheritFromActiveScriptWrappable' %} 26 'NotInheritFromActiveScriptWrappable' %}
27 27
28 {% set wrapper_type_info_const = '' if has_partial_interface else 'const ' %} 28 {% set wrapper_type_info_const = '' if has_partial_interface else 'const ' %}
29 {% if not is_partial %} 29 {% if not is_partial %}
30 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 30 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
31 // and does not depend on another global objects. 31 // and does not depend on another global objects.
32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
33 #pragma clang diagnostic push 33 #pragma clang diagnostic push
34 #pragma clang diagnostic ignored "-Wglobal-constructors" 34 #pragma clang diagnostic ignored "-Wglobal-constructors"
35 #endif 35 #endif
36 {{wrapper_type_info_const}}WrapperTypeInfo {{v8_class}}::wrapperTypeInfo = { gin ::kEmbedderBlink, {{dom_template}}, {{v8_class}}::trace, {{v8_class}}::traceWrap pers, {{prepare_prototype_and_interface_object_func}}, "{{interface_name}}", {{p arent_wrapper_type_info}}, WrapperTypeInfo::{{wrapper_type_prototype}}, WrapperT ypeInfo::{{wrapper_class_id}}, WrapperTypeInfo::{{active_scriptwrappable_inherit ance}}, WrapperTypeInfo::{{event_target_inheritance}}, WrapperTypeInfo::{{lifeti me}} }; 36 {{wrapper_type_info_const}}WrapperTypeInfo {{v8_class}}::wrapperTypeInfo = { gin ::kEmbedderBlink, {{dom_template}}, {{v8_class}}::trace, {{v8_class}}::traceWrap pers, {{prepare_prototype_and_interface_object_func}}, "{{interface_name}}", {{p arent_wrapper_type_info}}, WrapperTypeInfo::{{wrapper_type_prototype}}, WrapperT ypeInfo::{{wrapper_class_id}}, WrapperTypeInfo::{{active_scriptwrappable_inherit ance}}, WrapperTypeInfo::{{lifetime}} };
37 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 37 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
38 #pragma clang diagnostic pop 38 #pragma clang diagnostic pop
39 #endif 39 #endif
40 40
41 {% if not is_typed_array_type %} 41 {% if not is_typed_array_type %}
42 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in {{cpp_class} }.h. 42 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in {{cpp_class} }.h.
43 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 43 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
44 // bindings/core/v8/ScriptWrappable.h. 44 // bindings/core/v8/ScriptWrappable.h.
45 const WrapperTypeInfo& {{cpp_class}}::s_wrapperTypeInfo = {{v8_class}}::wrapperT ypeInfo; 45 const WrapperTypeInfo& {{cpp_class}}::s_wrapperTypeInfo = {{v8_class}}::wrapperT ypeInfo;
46 {% endif %} 46 {% endif %}
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 {% block has_instance %}{% endblock %} 694 {% block has_instance %}{% endblock %}
695 {% block to_impl %}{% endblock %} 695 {% block to_impl %}{% endblock %}
696 {% block to_impl_with_type_check %}{% endblock %} 696 {% block to_impl_with_type_check %}{% endblock %}
697 {##############################################################################} 697 {##############################################################################}
698 {% block prepare_prototype_and_interface_object %}{% endblock %} 698 {% block prepare_prototype_and_interface_object %}{% endblock %}
699 {##############################################################################} 699 {##############################################################################}
700 {% block partial_interface %}{% endblock %} 700 {% block partial_interface %}{% endblock %}
701 } // namespace blink 701 } // namespace blink
702 702
703 {% endfilter %}{# format_blink_cpp_source_code #} 703 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698