Chromium Code Reviews| Index: Source/bindings/templates/partial_interface.cpp |
| diff --git a/Source/bindings/templates/partial_interface.cpp b/Source/bindings/templates/partial_interface.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1e1441e1ff1ae664a306e35d455b7cc4fdccbd55 |
| --- /dev/null |
| +++ b/Source/bindings/templates/partial_interface.cpp |
| @@ -0,0 +1,18 @@ |
| +{% extends 'interface_base.cpp' %} |
| + |
|
tasak
2014/10/14 05:28:20
Removed empty blocks.
(These blocks are also empty
|
| +{##############################################################################} |
| +{% block partial_interface %} |
| +void {{actual_v8_class}}::initialize() |
| +{ |
| + // Should be invoked from initModules. |
| + {{v8_class}}::updateWrapperTypeInfo( |
| + &{{actual_v8_class}}::install{{v8_class}}Template, |
| + &{{actual_v8_class}}::installConditionallyEnabledMethods); |
| + {% for method in methods %} |
| + {% if method.overloads and method.overloads.has_partial_overloads %} |
| + {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInterface(&{{actual_cpp_class}}V8Internal::{{method.name}}Method); |
| + {% endif %} |
| + {% endfor %} |
| +} |
| + |
| +{% endblock %} |