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

Side by Side Diff: mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl

Issue 1125183007: Java: Implements union generation. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix validation tests. Created 5 years, 7 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 {% from "constant_definition.tmpl" import constant_def %} 1 {% from "constant_definition.tmpl" import constant_def %}
2 {% from "enum_definition.tmpl" import enum_def %} 2 {% from "enum_definition.tmpl" import enum_def %}
3 {% from "struct_definition.tmpl" import struct_def %} 3 {% from "data_types_definition.tmpl" import struct_def %}
4 4
5 {%- macro declare_params(parameters, boxed=false) %} 5 {%- macro declare_params(parameters, boxed=false) %}
6 {%- for param in parameters -%} 6 {%- for param in parameters -%}
7 {{param.kind|java_type(boxed)}} {{param|name}} 7 {{param.kind|java_type(boxed)}} {{param|name}}
8 {%- if not loop.last %}, {% endif %} 8 {%- if not loop.last %}, {% endif %}
9 {%- endfor %} 9 {%- endfor %}
10 {%- endmacro %} 10 {%- endmacro %}
11 11
12 {% macro declare_request_params(method) %} 12 {% macro declare_request_params(method) %}
13 {{declare_params(method.parameters)}} 13 {{declare_params(method.parameters)}}
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 {{flags_for_method(method, False)}}, 277 {{flags_for_method(method, False)}},
278 mRequestId)); 278 mRequestId));
279 mMessageReceiver.accept(_message); 279 mMessageReceiver.accept(_message);
280 } 280 }
281 } 281 }
282 {% endif %} 282 {% endif %}
283 {% endfor %} 283 {% endfor %}
284 284
285 } 285 }
286 {% endmacro %} 286 {% endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698