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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/interface_base.cpp

Issue 1778773002: [bindings] remove @@iterator from Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on top of shipping CL Created 4 years, 9 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698