Chromium Code Reviews| Index: Source/bindings/templates/interface.cpp |
| diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
| index 163a2f6de7110ed691a4326817848c80ba87c4b5..2690307280cf9859e9f729719bee5d9868d89bd5 100644 |
| --- a/Source/bindings/templates/interface.cpp |
| +++ b/Source/bindings/templates/interface.cpp |
| @@ -978,6 +978,10 @@ static void install{{v8_class}}Template(v8::Handle<v8::FunctionTemplate> functio |
| if named_property_getter.is_enumerable else '0' %} |
| functionTemplate->{{set_on_template}}()->SetNamedPropertyHandler({{named_property_getter_callback}}, {{named_property_setter_callback}}, {{named_property_query_callback}}, {{named_property_deleter_callback}}, {{named_property_enumerator_callback}}); |
| {% endif %} |
| + {% if is_iterable %} |
| + static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolIteratorConfiguration = { v8::Symbol::GetIterator, {{cpp_class}}V8Internal::symbol::iteratorMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts }; |
|
haraken
2014/08/21 16:15:58
You'll need to support iteratorMethodCallbackForMa
haraken
2014/08/21 16:15:58
Don't mix "SymbolKeyedMethodConfiguration" and "sy
yhirano
2014/08/25 06:09:26
Done.
|
| + V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::DontDelete, symbolIteratorConfiguration, isolate); |
| + {% endif %} |
| {# End special operations #} |
| {% if has_custom_legacy_call_as_function %} |
| functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}::legacyCallCustom); |