| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 {% if not is_typed_array_type %} | 43 {% if not is_typed_array_type %} |
| 44 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in {{cpp_class}
}.h. | 44 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in {{cpp_class}
}.h. |
| 45 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 45 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 46 // bindings/core/v8/ScriptWrappable.h. | 46 // bindings/core/v8/ScriptWrappable.h. |
| 47 const WrapperTypeInfo& {{cpp_class}}::s_wrapperTypeInfo = {{v8_class}}::wrapperT
ypeInfo; | 47 const WrapperTypeInfo& {{cpp_class}}::s_wrapperTypeInfo = {{v8_class}}::wrapperT
ypeInfo; |
| 48 {% endif %} | 48 {% endif %} |
| 49 | 49 |
| 50 {% if active_scriptwrappable %} | 50 {% if active_scriptwrappable %} |
| 51 // [ActiveScriptWrappable] | 51 // [ActiveScriptWrappable] |
| 52 static_assert( | 52 static_assert( |
| 53 std::is_base_of<ActiveScriptWrappable, {{cpp_class}}>::value, | 53 std::is_base_of<ActiveScriptWrappableBase, {{cpp_class}}>::value, |
| 54 "{{cpp_class}} does not inherit from ActiveScriptWrappable, but specifying " | 54 "{{cpp_class}} does not inherit from ActiveScriptWrappable<>, but specifying
" |
| 55 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 55 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 56 "Be consistent."); | 56 "Be consistent."); |
| 57 static_assert( | 57 static_assert( |
| 58 !std::is_same<decltype(&{{cpp_class}}::hasPendingActivity), | 58 !std::is_same<decltype(&{{cpp_class}}::hasPendingActivity), |
| 59 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 59 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
| 60 "{{cpp_class}} is not overriding hasPendingActivity(), but is specifying " | 60 "{{cpp_class}} is not overriding hasPendingActivity(), but is specifying " |
| 61 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 61 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 62 "Be consistent."); | 62 "Be consistent."); |
| 63 {% else %} | 63 {% else %} |
| 64 // not [ActiveScriptWrappable] | 64 // not [ActiveScriptWrappable] |
| 65 static_assert( | 65 static_assert( |
| 66 !std::is_base_of<ActiveScriptWrappable, {{cpp_class}}>::value, | 66 !std::is_base_of<ActiveScriptWrappableBase, {{cpp_class}}>::value, |
| 67 "{{cpp_class}} inherits from ActiveScriptWrappable, but is not specifying " | 67 "{{cpp_class}} inherits from ActiveScriptWrappable<>, but is not specifying
" |
| 68 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 68 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 69 "Be consistent."); | 69 "Be consistent."); |
| 70 static_assert( | 70 static_assert( |
| 71 std::is_same<decltype(&{{cpp_class}}::hasPendingActivity), | 71 std::is_same<decltype(&{{cpp_class}}::hasPendingActivity), |
| 72 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 72 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
| 73 "{{cpp_class}} is overriding hasPendingActivity(), but is not specifying " | 73 "{{cpp_class}} is overriding hasPendingActivity(), but is not specifying " |
| 74 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 74 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 75 "Be consistent."); | 75 "Be consistent."); |
| 76 {% endif %} | 76 {% endif %} |
| 77 | 77 |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 {% block has_instance %}{% endblock %} | 585 {% block has_instance %}{% endblock %} |
| 586 {% block to_impl %}{% endblock %} | 586 {% block to_impl %}{% endblock %} |
| 587 {% block to_impl_with_type_check %}{% endblock %} | 587 {% block to_impl_with_type_check %}{% endblock %} |
| 588 {##############################################################################} | 588 {##############################################################################} |
| 589 {% block prepare_prototype_and_interface_object %}{% endblock %} | 589 {% block prepare_prototype_and_interface_object %}{% endblock %} |
| 590 {##############################################################################} | 590 {##############################################################################} |
| 591 {% block partial_interface %}{% endblock %} | 591 {% block partial_interface %}{% endblock %} |
| 592 } // namespace blink | 592 } // namespace blink |
| 593 | 593 |
| 594 {% endfilter %}{# format_blink_cpp_source_code #} | 594 {% endfilter %}{# format_blink_cpp_source_code #} |
| OLD | NEW |