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

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

Issue 2730183003: bindings: Add C++ versions of WebIDL types and generalize NativeValueTraits. (Closed)
Patch Set: Move specialization for SerializedScriptValue to the appropriate header Created 3 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 {% filter format_blink_cpp_source_code %} 1 {% filter format_blink_cpp_source_code %}
2 2
3 {% include 'copyright_block.txt' %} 3 {% include 'copyright_block.txt' %}
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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 {% endif %} 691 {% endif %}
692 692
693 {% endfor %}{# feature #} 693 {% endfor %}{# feature #}
694 {% endblock %} 694 {% endblock %}
695 {##############################################################################} 695 {##############################################################################}
696 {% block get_dom_template %}{% endblock %} 696 {% block get_dom_template %}{% endblock %}
697 {% block get_dom_template_for_named_properties_object %}{% endblock %} 697 {% block get_dom_template_for_named_properties_object %}{% endblock %}
698 {% block has_instance %}{% endblock %} 698 {% block has_instance %}{% endblock %}
699 {% block to_impl %}{% endblock %} 699 {% block to_impl %}{% endblock %}
700 {% block to_impl_with_type_check %}{% endblock %} 700 {% block to_impl_with_type_check %}{% endblock %}
701 {% block native_value_traits %}{% endblock %}
701 {##############################################################################} 702 {##############################################################################}
702 {% block prepare_prototype_and_interface_object %} 703 {% block prepare_prototype_and_interface_object %}
703 {% from 'attributes.cpp.tmpl' import install_conditionally_enabled_attributes_on _prototype with context %} 704 {% from 'attributes.cpp.tmpl' import install_conditionally_enabled_attributes_on _prototype with context %}
704 {% from 'methods.cpp.tmpl' import install_conditionally_enabled_methods with con text %} 705 {% from 'methods.cpp.tmpl' import install_conditionally_enabled_methods with con text %}
705 {% if prepare_prototype_and_interface_object_func %} 706 {% if prepare_prototype_and_interface_object_func %}
706 void {{v8_class_or_partial}}::preparePrototypeAndInterfaceObject(v8::Local<v8::C ontext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeOb ject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> i nterfaceTemplate) { 707 void {{v8_class_or_partial}}::preparePrototypeAndInterfaceObject(v8::Local<v8::C ontext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeOb ject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> i nterfaceTemplate) {
707 {% if is_partial %} 708 {% if is_partial %}
708 {{v8_class}}::preparePrototypeAndInterfaceObject(context, world, prototypeObje ct, interfaceObject, interfaceTemplate); 709 {{v8_class}}::preparePrototypeAndInterfaceObject(context, world, prototypeObje ct, interfaceObject, interfaceTemplate);
709 {% endif %} 710 {% endif %}
710 711
(...skipping 26 matching lines...) Expand all
737 {% endif %} 738 {% endif %}
738 } 739 }
739 {% endif %} 740 {% endif %}
740 741
741 {% endblock %} 742 {% endblock %}
742 {##############################################################################} 743 {##############################################################################}
743 {% block partial_interface %}{% endblock %} 744 {% block partial_interface %}{% endblock %}
744 } // namespace blink 745 } // namespace blink
745 746
746 {% endfilter %}{# format_blink_cpp_source_code #} 747 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698