Index: third_party/WebKit/Source/bindings/templates/interface_base.cpp |
diff --git a/third_party/WebKit/Source/bindings/templates/interface_base.cpp b/third_party/WebKit/Source/bindings/templates/interface_base.cpp |
index be516a2662c72414193e0e53a0e559af4bdb16ed..a310edf7e21fc7b04849a8b2439b9534294f9980 100644 |
--- a/third_party/WebKit/Source/bindings/templates/interface_base.cpp |
+++ b/third_party/WebKit/Source/bindings/templates/interface_base.cpp |
@@ -6,6 +6,8 @@ |
{% endfor %} |
namespace blink { |
+{% set to_active_scriptwrappable = '%s::toActiveScriptWrappable' % v8_class |
+ if requires_finalizer else '0' %} |
{% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class |
if has_visit_dom_wrapper else '0' %} |
{% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface |
@@ -22,7 +24,7 @@ namespace blink { |
#pragma clang diagnostic push |
#pragma clang diagnostic ignored "-Wglobal-constructors" |
#endif |
-{{wrapper_type_info_const}}WrapperTypeInfo {{v8_class}}::wrapperTypeInfo = { gin::kEmbedderBlink, {{dom_template}}, {{v8_class}}::refObject, {{v8_class}}::derefObject, {{v8_class}}::trace, {{visit_dom_wrapper}}, {{v8_class}}::preparePrototypeAndInterfaceObject, {{v8_class}}::installConditionallyEnabledProperties, "{{interface_name}}", {{parent_wrapper_type_info}}, WrapperTypeInfo::{{wrapper_type_prototype}}, WrapperTypeInfo::{{wrapper_class_id}}, WrapperTypeInfo::{{event_target_inheritance}}, WrapperTypeInfo::{{lifetime}}, WrapperTypeInfo::{{gc_type}} }; |
+{{wrapper_type_info_const}}WrapperTypeInfo {{v8_class}}::wrapperTypeInfo = { gin::kEmbedderBlink, {{dom_template}}, {{v8_class}}::refObject, {{v8_class}}::derefObject, {{v8_class}}::trace, {{to_active_scriptwrappable}}, {{visit_dom_wrapper}}, {{v8_class}}::preparePrototypeAndInterfaceObject, {{v8_class}}::installConditionallyEnabledProperties, "{{interface_name}}", {{parent_wrapper_type_info}}, WrapperTypeInfo::{{wrapper_type_prototype}}, WrapperTypeInfo::{{wrapper_class_id}}, WrapperTypeInfo::{{event_target_inheritance}}, WrapperTypeInfo::{{lifetime}}, WrapperTypeInfo::{{gc_type}} }; |
#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
#pragma clang diagnostic pop |
#endif |
@@ -395,6 +397,7 @@ static void install{{v8_class}}Template(v8::Local<v8::FunctionTemplate> interfac |
{##############################################################################} |
{% block prepare_prototype_and_interface_object %}{% endblock %} |
{##############################################################################} |
+{% block to_active_scriptwrappable %}{% endblock %} |
{% block ref_object_and_deref_object %}{% endblock %} |
{% for method in methods if method.is_implemented_in_private_script and method.visible %} |
{{method_implemented_in_private_script(method)}} |