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

Side by Side Diff: sky/engine/bindings/scripts/templates/methods_cpp.template

Issue 915293003: Rename sky/engine/bindings2 to sky/engine/bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: more better Created 5 years, 10 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 {##############################################################################} 1 {##############################################################################}
2 {# FIXME: We should return a rejected Promise if an error occurs in this 2 {# FIXME: We should return a rejected Promise if an error occurs in this
3 function when ALL methods in this overload return Promise. In order to do so, 3 function when ALL methods in this overload return Promise. In order to do so,
4 we must ensure either ALL or NO methods in this overload return Promise #} 4 we must ensure either ALL or NO methods in this overload return Promise #}
5 {% macro overload_resolution_method(method) %} 5 {% macro overload_resolution_method(method) %}
6 {% set overloads = method.overloads %} 6 {% set overloads = method.overloads %}
7 {% if method.is_static %} 7 {% if method.is_static %}
8 {% set offset = 0 %} 8 {% set offset = 0 %}
9 {% else %} 9 {% else %}
10 {% set offset = 1 %} 10 {% set offset = 1 %}
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 397
398 {##############################################################################} 398 {##############################################################################}
399 {% macro generate_symbolizer_constructor(dart_class, class_name, constructor) %} 399 {% macro generate_symbolizer_constructor(dart_class, class_name, constructor) %}
400 {% for native_entry in constructor.native_entries %} 400 {% for native_entry in constructor.native_entries %}
401 {% set resolver_string = native_entry.resolver_string %} 401 {% set resolver_string = native_entry.resolver_string %}
402 if (native_function == {{dart_class}}Internal::{{static_method_name(constructor. name, constructor.overload_index)}}) { 402 if (native_function == {{dart_class}}Internal::{{static_method_name(constructor. name, constructor.overload_index)}}) {
403 return reinterpret_cast<const uint8_t*>("{{resolver_string}}"); 403 return reinterpret_cast<const uint8_t*>("{{resolver_string}}");
404 } 404 }
405 {% endfor %} 405 {% endfor %}
406 {% endmacro %} 406 {% endmacro %}
OLDNEW
« no previous file with comments | « sky/engine/bindings/scripts/templates/interface_h.template ('k') | sky/engine/bindings/scripts/utilities.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698