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

Unified Diff: Source/bindings/dart/scripts/templates/interface_base_cpp.template

Issue 668733002: C++ overload resolution in bindings layer (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/dartium
Patch Set: Rebase fixups Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/dart/scripts/templates/interface_base_cpp.template
diff --git a/Source/bindings/dart/scripts/templates/interface_base_cpp.template b/Source/bindings/dart/scripts/templates/interface_base_cpp.template
index e965e54ea319aedece47af174410febbdf5d6d78..3893b5413b825a651d5bb0019d59c93780d2a494 100644
--- a/Source/bindings/dart/scripts/templates/interface_base_cpp.template
+++ b/Source/bindings/dart/scripts/templates/interface_base_cpp.template
@@ -19,12 +19,13 @@ namespace blink {
namespace {{dart_class}}Internal {
-{% from 'methods_cpp.template' import generate_constructor, generate_event_constructor, generate_method, method_callback with context %}
+{% from 'methods_cpp.template' import generate_constructor, generate_event_constructor, generate_method, method_callback, overload_resolution_method with context %}
{# Constructors #}
{% for constructor in constructors %}
{{generate_constructor(constructor, constructor.number_of_arguments)}}
{% endfor %}
+{% block overloaded_constructor %}{% endblock %}
{% if named_constructor %}
{{generate_constructor(named_constructor, named_constructor.number_of_arguments)}}
{% endif %}
@@ -53,6 +54,9 @@ namespace {{dart_class}}Internal {
{% if not method.is_custom and not method.suppressed %}
{{generate_method(method, method.number_of_arguments)}}
{% endif %}
+ {% if method.overloads %}
+{{overload_resolution_method(method)}}
+ {% endif %}
{% endfor %}
{# Special operations (methods) #}

Powered by Google App Engine
This is Rietveld 408576698