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

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

Issue 306893010: Generate java bindings for structs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-upload after revert Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 {% from "java_macros.tmpl" import build_default %}
2
3 {% macro constant_def(constant) %} 1 {% macro constant_def(constant) %}
4 public static final {{constant.kind|java_type}} {{constant|name}} = {{build_defa ult(module, constant.kind, constant.value)|indent(4)}}; 2 public static final {{constant.kind|java_type}} {{constant|name}} = ({{constant. kind|java_type}}) {{constant.value|expression_to_text}};
5 {% endmacro %} 3 {% endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698