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

Side by Side Diff: mojo/public/bindings/generators/cpp_templates/enum_declaration.tmpl

Issue 164873002: Fix bug with using enums as default values in mojom. We were previously (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 enum {{enum.name}} { 1 enum {{enum.name}} {
2 {%- for field in enum.fields %} 2 {%- for field in enum.fields %}
3 {%- if field.value %} 3 {%- if field.value %}
4 {{field.name}} = {{field.value}}, 4 {{field.name}} = {{field.value|expression_to_text(module)}},
5 {%- else %} 5 {%- else %}
6 {{field.name}}, 6 {{field.name}},
7 {%- endif %} 7 {%- endif %}
8 {%- endfor %} 8 {%- endfor %}
9 }; 9 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698