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

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

Issue 577303002: IDL: Support [DeprecateAs] and [MeasureAs] on constants (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: refactoring a little Created 6 years, 3 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/interface_base.cpp
diff --git a/Source/bindings/templates/interface_base.cpp b/Source/bindings/templates/interface_base.cpp
index 747b8eb6483bb4b513aee27edc1a560e134f086f..34520c6a0af9769391180243d1f4581f2926ecfa 100644
--- a/Source/bindings/templates/interface_base.cpp
+++ b/Source/bindings/templates/interface_base.cpp
@@ -37,6 +37,12 @@ namespace {{cpp_class}}V8Internal {
template <typename T> void V8_USE(T) { }
+{# Constants #}
+{% from 'constants.cpp' import constant_getter_callback
+ with context %}
+{% for constant in special_getter_constants %}
+{{constant_getter_callback(constant)}}
+{% endfor %}
{# Attributes #}
{% from 'attributes.cpp' import constructor_getter_callback,
attribute_getter, attribute_getter_callback,

Powered by Google App Engine
This is Rietveld 408576698