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

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: Fixed patch conflict 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
« no previous file with comments | « Source/bindings/templates/partial_interface.h ('k') | Source/bindings/templates/templates.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..cc5b852034949ac67aa4f9a0c083a235418b25cb
--- /dev/null
+++ b/Source/bindings/templates/partial_interface.cpp
@@ -0,0 +1,18 @@
+{% extends 'interface_base.cpp' %}
+
+{##############################################################################}
+{% block partial_interface %}
+void {{v8_class_or_partial}}::initialize()
+{
+ // Should be invoked from initModules.
+ {{v8_class}}::updateWrapperTypeInfo(
+ &{{v8_class_or_partial}}::install{{v8_class}}Template,
+ &{{v8_class_or_partial}}::installConditionallyEnabledMethods);
+ {% 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 %}
« no previous file with comments | « Source/bindings/templates/partial_interface.h ('k') | Source/bindings/templates/templates.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698