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

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

Issue 1381413003: [bindings] add support for integer-indexed @@iterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: third_party/WebKit/Source/bindings/templates/interface_base.cpp
diff --git a/third_party/WebKit/Source/bindings/templates/interface_base.cpp b/third_party/WebKit/Source/bindings/templates/interface_base.cpp
index 37012d47e83c449f681821b4c02547e7e3915c54..f8cb6f230a8c6dbdd2c63879ca7968bb9e932373 100644
--- a/third_party/WebKit/Source/bindings/templates/interface_base.cpp
+++ b/third_party/WebKit/Source/bindings/templates/interface_base.cpp
@@ -346,6 +346,11 @@ static void install{{v8_class}}Template(v8::Local<v8::FunctionTemplate> function
{% if has_access_check_callbacks %}
instanceTemplate->SetAccessCheckCallbacks({{cpp_class}}V8Internal::namedSecurityCheck, {{cpp_class}}V8Internal::indexedSecurityCheck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperTypeInfo)));
{% endif %}
+ {% if has_array_iterator %}
+ if (RuntimeEnabledFeatures::iterableCollectionsEnabled()) {
Yuki 2015/10/05 07:08:26 Could you use {% filter runtime_enabled(...) %}?
+ prototypeTemplate->Set(v8::Symbol::GetIterator(isolate), v8::Array::GetValuesIterator(isolate), v8::DontEnum);
caitp (gmail) 2015/10/04 23:10:47 This doesn't use the V8DOMConfiguration helpers, b
Yuki 2015/10/05 07:08:26 Could you follow the way of the following? https:/
caitp (gmail) 2015/10/05 11:30:23 I don't think there is any value in implementing t
+ }
+ {% endif %}
{% for attribute in attributes
if attribute.runtime_enabled_function and
not attribute.exposed_test %}

Powered by Google App Engine
This is Rietveld 408576698