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

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

Issue 186673002: Support deprecation + use counters for constructor attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamings Created 6 years, 10 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/TestObject.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 ee2b96a9f8b4389f1c171195c97dde75c594399a..f6c8704eea98f7a527613ce10987a39730a87ec9 100644
--- a/Source/bindings/templates/interface_base.cpp
+++ b/Source/bindings/templates/interface_base.cpp
@@ -81,7 +81,8 @@ namespace {{cpp_class}}V8Internal {
template <typename T> void V8_USE(T) { }
{# Attributes #}
-{% from 'attributes.cpp' import attribute_getter, attribute_getter_callback,
+{% from 'attributes.cpp' import constructor_getter_callback,
+ attribute_getter, attribute_getter_callback,
attribute_setter, attribute_setter_callback
with context %}
{% for attribute in attributes if not attribute.constructor_type %}
@@ -99,6 +100,11 @@ template <typename T> void V8_USE(T) { }
{% endfor %}
{% endfor %}
{% block constructor_getter %}{% endblock %}
+{% for attribute in attributes if attribute.needs_constructor_getter_callback %}
+{% for world_suffix in attribute.world_suffixes %}
+{{constructor_getter_callback(attribute, world_suffix)}}
+{% endfor %}
+{% endfor %}
{% block replaceable_attribute_setter_and_callback %}{% endblock %}
{% block security_check_functions %}{% endblock %}
{# Methods #}
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/tests/idls/TestObject.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698