blob: 91087a0726178f138a8263619fb539f719d62b8a [file] [log] [blame]
{% extends 'interface_base.cc.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}}::InstallRuntimeEnabledFeaturesImpl,
{% 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 %}