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

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

Issue 792903004: IDL: Support extended attributes on iterable<>, maplike<> and setlike<> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 de941c7772682ddad485f1f9d76deeb74ce5b462..4354fb3e74588cf348aa0c73d753df292bc2c3dc 100644
--- a/Source/bindings/templates/interface_base.cpp
+++ b/Source/bindings/templates/interface_base.cpp
@@ -379,8 +379,16 @@ static void install{{v8_class}}Template(v8::Local<v8::FunctionTemplate> function
functionTemplate->{{set_on_template}}()->SetHandler(v8::NamedPropertyHandlerConfiguration({{named_property_getter_callback}}, {{named_property_setter_callback}}, {{named_property_query_callback}}, {{named_property_deleter_callback}}, {{named_property_enumerator_callback}}));
{% endif %}
{% if iterator_method %}
+ {% filter conditional(iterator_method.conditional_string) %}
haraken 2015/01/14 11:38:47 If we don't have any use case for [Conditional] on
Jens Widell 2015/01/14 12:00:02 Done.
+ {% filter per_context_enabled(iterator_method.per_context_enabled_function) %}
+ {% filter exposed(iterator_method.exposed_test) %}
+ {% filter runtime_enabled(iterator_method.runtime_enabled_function) %}
static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorConfiguration = { v8::Symbol::GetIterator, {{cpp_class_or_partial}}V8Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts };
V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::DontDelete, symbolKeyedIteratorConfiguration, isolate);
+ {% endfilter %}{# runtime_enabled() #}
+ {% endfilter %}{# exposed() #}
+ {% endfilter %}{# per_context_enabled() #}
+ {% endfilter %}{# conditional() #}
{% endif %}
{# End special operations #}
{% if has_custom_legacy_call_as_function %}

Powered by Google App Engine
This is Rietveld 408576698