OLD | NEW |
1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
2 #include "{{v8_class_or_partial}}.h" | 2 #include "{{v8_class_or_partial}}.h" |
3 | 3 |
4 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} | 4 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} |
5 #include "{{filename}}" | 5 #include "{{filename}}" |
6 {% endfor %} | 6 {% endfor %} |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class | 9 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class |
10 if has_visit_dom_wrapper else '0' %} | 10 if has_visit_dom_wrapper else '0' %} |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 {% endfilter %}{{newline}} | 326 {% endfilter %}{{newline}} |
327 {% if runtime_enabled_function %} | 327 {% if runtime_enabled_function %} |
328 } // if ({{runtime_enabled_function}}()) | 328 } // if ({{runtime_enabled_function}}()) |
329 {% endif %} | 329 {% endif %} |
330 | 330 |
331 {%- if has_access_check_callbacks %}{{newline}} | 331 {%- if has_access_check_callbacks %}{{newline}} |
332 // Cross-origin access check | 332 // Cross-origin access check |
333 instanceTemplate->SetAccessCheckCallback({{cpp_class}}V8Internal::securityCh
eck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrap
perTypeInfo))); | 333 instanceTemplate->SetAccessCheckCallback({{cpp_class}}V8Internal::securityCh
eck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrap
perTypeInfo))); |
334 {% endif %} | 334 {% endif %} |
335 | 335 |
336 {%- if has_array_iterator %}{{newline}} | 336 {%- if has_array_iterator and not is_global %}{{newline}} |
337 // Array iterator | 337 // Array iterator |
338 {% if is_global %} | |
339 instanceTemplate->SetIntrinsicDataProperty(v8::Symbol::GetIterator(isolate),
v8::kArrayProto_values, v8::DontEnum); | |
340 {% else %} | |
341 prototypeTemplate->SetIntrinsicDataProperty(v8::Symbol::GetIterator(isolate)
, v8::kArrayProto_values, v8::DontEnum); | 338 prototypeTemplate->SetIntrinsicDataProperty(v8::Symbol::GetIterator(isolate)
, v8::kArrayProto_values, v8::DontEnum); |
342 {% endif %} | 339 {% endif %} |
343 {% endif %} | |
344 | 340 |
345 {%- set runtime_enabled_features = dict() %} | 341 {%- set runtime_enabled_features = dict() %} |
346 {% for attribute in attributes | 342 {% for attribute in attributes |
347 if attribute.runtime_enabled_function and | 343 if attribute.runtime_enabled_function and |
348 not attribute.exposed_test %} | 344 not attribute.exposed_test %} |
349 {% if attribute.runtime_enabled_function not in runtime_enabled_features
%} | 345 {% if attribute.runtime_enabled_function not in runtime_enabled_features
%} |
350 {% set unused = runtime_enabled_features.update({attribute.runtime_e
nabled_function: []}) %} | 346 {% set unused = runtime_enabled_features.update({attribute.runtime_e
nabled_function: []}) %} |
351 {% endif %} | 347 {% endif %} |
352 {% set unused = runtime_enabled_features.get(attribute.runtime_enabled_f
unction).append(attribute) %} | 348 {% set unused = runtime_enabled_features.get(attribute.runtime_enabled_f
unction).append(attribute) %} |
353 {% endfor %} | 349 {% endfor %} |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 {{method_implemented_in_private_script(method)}} | 432 {{method_implemented_in_private_script(method)}} |
437 {% endfor %} | 433 {% endfor %} |
438 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 434 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
439 {{attribute_getter_implemented_in_private_script(attribute)}} | 435 {{attribute_getter_implemented_in_private_script(attribute)}} |
440 {% if attribute.has_setter %} | 436 {% if attribute.has_setter %} |
441 {{attribute_setter_implemented_in_private_script(attribute)}} | 437 {{attribute_setter_implemented_in_private_script(attribute)}} |
442 {% endif %} | 438 {% endif %} |
443 {% endfor %} | 439 {% endfor %} |
444 {% block partial_interface %}{% endblock %} | 440 {% block partial_interface %}{% endblock %} |
445 } // namespace blink | 441 } // namespace blink |
OLD | NEW |