OLD | NEW |
---|---|
1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
2 #include "config.h" | 2 #include "config.h" |
3 {% filter conditional(conditional_string) %} | 3 {% filter conditional(conditional_string) %} |
4 #include "{{v8_class_or_partial}}.h" | 4 #include "{{v8_class_or_partial}}.h" |
5 | 5 |
6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} | 6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} |
7 #include "{{filename}}" | 7 #include "{{filename}}" |
8 {% endfor %} | 8 {% endfor %} |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
339 ALLOW_UNUSED_LOCAL(instanceTemplate); | 339 ALLOW_UNUSED_LOCAL(instanceTemplate); |
340 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); | 340 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); |
341 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 341 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
342 {% if custom_registration_methods %} | 342 {% if custom_registration_methods %} |
343 ExecutionContext* context = currentExecutionContext(isolate); | 343 ExecutionContext* context = currentExecutionContext(isolate); |
344 ALLOW_UNUSED_LOCAL(context); | 344 ALLOW_UNUSED_LOCAL(context); |
345 {% endif %} | 345 {% endif %} |
346 {% if has_access_check_callbacks %} | 346 {% if has_access_check_callbacks %} |
347 instanceTemplate->SetAccessCheckCallbacks({{cpp_class}}V8Internal::namedSecu rityCheck, {{cpp_class}}V8Internal::indexedSecurityCheck, v8::External::New(isol ate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperTypeInfo))); | 347 instanceTemplate->SetAccessCheckCallbacks({{cpp_class}}V8Internal::namedSecu rityCheck, {{cpp_class}}V8Internal::indexedSecurityCheck, v8::External::New(isol ate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperTypeInfo))); |
348 {% endif %} | 348 {% endif %} |
349 {% if has_array_iterator %} | |
350 if (RuntimeEnabledFeatures::iterableCollectionsEnabled()) { | |
Yuki
2015/10/05 07:08:26
Could you use {% filter runtime_enabled(...) %}?
| |
351 prototypeTemplate->Set(v8::Symbol::GetIterator(isolate), v8::Array::GetV aluesIterator(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
| |
352 } | |
353 {% endif %} | |
349 {% for attribute in attributes | 354 {% for attribute in attributes |
350 if attribute.runtime_enabled_function and | 355 if attribute.runtime_enabled_function and |
351 not attribute.exposed_test %} | 356 not attribute.exposed_test %} |
352 {% filter conditional(attribute.conditional_string) %} | 357 {% filter conditional(attribute.conditional_string) %} |
353 if ({{attribute.runtime_enabled_function}}()) { | 358 if ({{attribute.runtime_enabled_function}}()) { |
354 {% if attribute.is_data_type_property %} | 359 {% if attribute.is_data_type_property %} |
355 const V8DOMConfiguration::AttributeConfiguration attributeConfiguration = \ | 360 const V8DOMConfiguration::AttributeConfiguration attributeConfiguration = \ |
356 {{attribute_configuration(attribute)}}; | 361 {{attribute_configuration(attribute)}}; |
357 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration); | 362 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration); |
358 {% else %} | 363 {% else %} |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
495 {% endfor %} | 500 {% endfor %} |
496 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 501 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
497 {{attribute_getter_implemented_in_private_script(attribute)}} | 502 {{attribute_getter_implemented_in_private_script(attribute)}} |
498 {% if attribute.has_setter %} | 503 {% if attribute.has_setter %} |
499 {{attribute_setter_implemented_in_private_script(attribute)}} | 504 {{attribute_setter_implemented_in_private_script(attribute)}} |
500 {% endif %} | 505 {% endif %} |
501 {% endfor %} | 506 {% endfor %} |
502 {% block partial_interface %}{% endblock %} | 507 {% block partial_interface %}{% endblock %} |
503 } // namespace blink | 508 } // namespace blink |
504 {% endfilter %} | 509 {% endfilter %} |
OLD | NEW |