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

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

Issue 1497503002: Removes the custom toString callback for the various DOM constructors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 5 years 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 "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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 {# Special interfaces #} 429 {# Special interfaces #}
430 {% if not is_partial %} 430 {% if not is_partial %}
431 {% if interface_name == 'Window' %} 431 {% if interface_name == 'Window' %}
432 432
433 instanceTemplate->SetInternalFieldCount(V8Window::internalFieldCount); 433 instanceTemplate->SetInternalFieldCount(V8Window::internalFieldCount);
434 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); 434 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount);
435 {% endif %} 435 {% endif %}
436 {% if is_global or interface_name == 'HTMLDocument' %} 436 {% if is_global or interface_name == 'HTMLDocument' %}
437 functionTemplate->SetHiddenPrototype(true); 437 functionTemplate->SetHiddenPrototype(true);
438 {% endif %} 438 {% endif %}
439
440 // Custom toString template
441 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
442 {% endif %} 439 {% endif %}
443 } 440 }
444 441
445 {% endif %}{# not is_array_buffer_or_view #} 442 {% endif %}{# not is_array_buffer_or_view #}
446 {% endblock %} 443 {% endblock %}
447 {##############################################################################} 444 {##############################################################################}
448 {% block get_dom_template %}{% endblock %} 445 {% block get_dom_template %}{% endblock %}
449 {% block get_dom_template_for_named_properties_object %}{% endblock %} 446 {% block get_dom_template_for_named_properties_object %}{% endblock %}
450 {% block has_instance %}{% endblock %} 447 {% block has_instance %}{% endblock %}
451 {% block to_impl %}{% endblock %} 448 {% block to_impl %}{% endblock %}
452 {% block to_impl_with_type_check %}{% endblock %} 449 {% block to_impl_with_type_check %}{% endblock %}
453 {% block install_conditional_attributes %}{% endblock %} 450 {% block install_conditional_attributes %}{% endblock %}
454 {##############################################################################} 451 {##############################################################################}
455 {% block prepare_prototype_and_interface_object %}{% endblock %} 452 {% block prepare_prototype_and_interface_object %}{% endblock %}
456 {##############################################################################} 453 {##############################################################################}
457 {% block to_active_dom_object %}{% endblock %} 454 {% block to_active_dom_object %}{% endblock %}
458 {% block ref_object_and_deref_object %}{% endblock %} 455 {% block ref_object_and_deref_object %}{% endblock %}
459 {% for method in methods if method.is_implemented_in_private_script and method.v isible %} 456 {% for method in methods if method.is_implemented_in_private_script and method.v isible %}
460 {{method_implemented_in_private_script(method)}} 457 {{method_implemented_in_private_script(method)}}
461 {% endfor %} 458 {% endfor %}
462 {% for attribute in attributes if attribute.is_implemented_in_private_script %} 459 {% for attribute in attributes if attribute.is_implemented_in_private_script %}
463 {{attribute_getter_implemented_in_private_script(attribute)}} 460 {{attribute_getter_implemented_in_private_script(attribute)}}
464 {% if attribute.has_setter %} 461 {% if attribute.has_setter %}
465 {{attribute_setter_implemented_in_private_script(attribute)}} 462 {{attribute_setter_implemented_in_private_script(attribute)}}
466 {% endif %} 463 {% endif %}
467 {% endfor %} 464 {% endfor %}
468 {% block partial_interface %}{% endblock %} 465 {% block partial_interface %}{% endblock %}
469 } // namespace blink 466 } // namespace blink
470 {% endfilter %} 467 {% endfilter %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698