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

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

Issue 27638002: IDL compiler: Basic setters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix ; 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/tests/idls/TestObjectPython.idl » ('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 d31d08e1db1c15a08b06142c65703f9b2f99f620..82918972a296e829202c84c82d3a068ad995cb91 100644
--- a/Source/bindings/templates/interface_base.cpp
+++ b/Source/bindings/templates/interface_base.cpp
@@ -57,15 +57,20 @@ namespace {{cpp_class_name}}V8Internal {
template <typename T> void V8_USE(T) { }
-{% from 'attributes.cpp' import attribute_getter, attribute_getter_callback
+{% from 'attributes.cpp' import attribute_getter, attribute_getter_callback,
+ attribute_setter, attribute_setter_callback
with context %}
{% for attribute in attributes %}
{% for world_suffix in attribute.world_suffixes %}
-{% if not attribute.is_custom_getter %}
+{% if not attribute.has_custom_getter %}
{{attribute_getter(attribute, world_suffix)}}
{% endif %}
{{attribute_getter_callback(attribute, world_suffix)}}
{% endfor %}
+{% if attribute.has_setter %}
+{{attribute_setter(attribute, world_suffix)}}
+{{attribute_setter_callback(attribute, world_suffix)}}
+{% endif %}
{% endfor %}
} // namespace {{cpp_class_name}}V8Internal
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/tests/idls/TestObjectPython.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698