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

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

Issue 39493002: IDL compiler: void() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised Created 7 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/interface.cpp ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/templates/interface_base.cpp
diff --git a/Source/bindings/templates/interface_base.cpp b/Source/bindings/templates/interface_base.cpp
index d3338c8cf431bf71d6b45ad7dd689f7397d36679..ba9d46630fa87a8651cd2d4edcfff9d8b6a5137f 100644
--- a/Source/bindings/templates/interface_base.cpp
+++ b/Source/bindings/templates/interface_base.cpp
@@ -57,6 +57,7 @@ namespace {{cpp_class_name}}V8Internal {
template <typename T> void V8_USE(T) { }
+{# Attributes #}
{% from 'attributes.cpp' import attribute_getter, attribute_getter_callback,
attribute_setter, attribute_setter_callback
with context %}
@@ -76,9 +77,16 @@ template <typename T> void V8_USE(T) { }
{% endfor %}
{% block constructor_getter %}{% endblock %}
{% block replaceable_attribute_setter_and_callback %}{% endblock %}
+{# Methods #}
+{% from 'methods.cpp' import generate_method, method_callback with context %}
+{% for method in methods %}
+{{generate_method(method)}}
+{{method_callback(method)}}
+{% endfor %}
} // namespace {{cpp_class_name}}V8Internal
{% block class_attributes %}{% endblock %}
+{% block class_methods %}{% endblock %}
{% block configure_class_template %}{% endblock %}
{% block get_template %}{% endblock %}
{% block has_instance_and_has_instance_in_any_world %}{% endblock %}
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698