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

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

Issue 291903003: Generate java bindings for constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add private constructor to constants class. Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 {% from "java_macros.tmpl" import build_default %}
2
3 {% macro constant_def(constant) %}
4 public static final {{constant.kind|java_type}} {{constant|constant_name}} = {{b uild_default(module, constant.kind, constant.value)|indent(4)}};
rmcilroy 2014/05/25 22:55:10 Do we need build_default()? The cpp binding gener
qsr 2014/05/26 08:41:20 Updated build_default() to be a lot simpler, but
rmcilroy 2014/05/26 11:13:48 I am fine with build_default existing (and being u
qsr 2014/05/26 12:33:43 I don't understand. The macro is only using expres
rmcilroy 2014/05/27 09:44:34 I was presuming you were going to update the build
5 {% endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698