blob: 2498f900b34479606754800acbbab72782c3cf05 [file] [log] [blame]
{% extends 'interface_base.cpp.tmpl' %}
{##############################################################################}
{% block partial_interface %}
void {{v8_class_or_partial}}::initialize() {
// Should be invoked from ModulesInitializer.
{{v8_class}}::UpdateWrapperTypeInfo(
&{{v8_class_or_partial}}::install{{v8_class}}Template,
{% if needs_runtime_enabled_installer %}
&{{v8_class_or_partial}}::InstallRuntimeEnabledFeatures,
{% else %}
nullptr,
{% endif %}
&{{v8_class_or_partial}}::InstallRuntimeEnabledFeaturesOnTemplate,
{{install_conditional_features_func or 'nullptr'}});
{% for method in methods %}
{% if method.overloads and method.overloads.has_partial_overloads %}
{{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInterface(&{{cpp_class_or_partial}}V8Internal::{{method.name}}Method);
{% endif %}
{% endfor %}
}
{% endblock %}