Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: Source/bindings/templates/partial_interface.cpp

Issue 618373003: [bindings] partial interfaces should not violate componentization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added --target-component instead of --genearte-partial Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 %}

Powered by Google App Engine
This is Rietveld 408576698