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

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

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 7 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 16 matching lines...) Expand all
27 #pragma clang diagnostic ignored "-Wglobal-constructors" 27 #pragma clang diagnostic ignored "-Wglobal-constructors"
28 #endif 28 #endif
29 {{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 or 'nullptr'}}, "{{interface _name}}", {{parent_wrapper_type_info}}, WrapperTypeInfo::{{wrapper_type_prototyp e}}, WrapperTypeInfo::{{wrapper_class_id}}, WrapperTypeInfo::{{active_scriptwrap pable_inheritance}}, WrapperTypeInfo::{{lifetime}} }; 29 {{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 or 'nullptr'}}, "{{interface _name}}", {{parent_wrapper_type_info}}, WrapperTypeInfo::{{wrapper_type_prototyp e}}, WrapperTypeInfo::{{wrapper_class_id}}, WrapperTypeInfo::{{active_scriptwrap pable_inheritance}}, WrapperTypeInfo::{{lifetime}} };
30 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 30 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
31 #pragma clang diagnostic pop 31 #pragma clang diagnostic pop
32 #endif 32 #endif
33 33
34 {% if not is_typed_array_type %} 34 {% if not is_typed_array_type %}
35 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in {{cpp_class} }.h. 35 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in {{cpp_class} }.h.
36 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 36 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
37 // bindings/core/v8/ScriptWrappable.h. 37 // platform/bindings/ScriptWrappable.h.
38 const WrapperTypeInfo& {{cpp_class}}::wrapper_type_info_ = {{v8_class}}::wrapper TypeInfo; 38 const WrapperTypeInfo& {{cpp_class}}::wrapper_type_info_ = {{v8_class}}::wrapper TypeInfo;
39 {% endif %} 39 {% endif %}
40 40
41 {% if active_scriptwrappable %} 41 {% if active_scriptwrappable %}
42 // [ActiveScriptWrappable] 42 // [ActiveScriptWrappable]
43 static_assert( 43 static_assert(
44 std::is_base_of<ActiveScriptWrappableBase, {{cpp_class}}>::value, 44 std::is_base_of<ActiveScriptWrappableBase, {{cpp_class}}>::value,
45 "{{cpp_class}} does not inherit from ActiveScriptWrappable<>, but specifying " 45 "{{cpp_class}} does not inherit from ActiveScriptWrappable<>, but specifying "
46 "[ActiveScriptWrappable] extended attribute in the IDL file. " 46 "[ActiveScriptWrappable] extended attribute in the IDL file. "
47 "Be consistent."); 47 "Be consistent.");
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 {% endif %} 791 {% endif %}
792 } 792 }
793 {% endif %} 793 {% endif %}
794 794
795 {% endblock %} 795 {% endblock %}
796 {##############################################################################} 796 {##############################################################################}
797 {% block partial_interface %}{% endblock %} 797 {% block partial_interface %}{% endblock %}
798 } // namespace blink 798 } // namespace blink
799 799
800 {% endfilter %}{# format_blink_cpp_source_code #} 800 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698