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

Unified Diff: mojo/public/bindings/generators/js_templates/enum_definition.tmpl

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/bindings/generators/js_templates/enum_definition.tmpl
diff --git a/mojo/public/bindings/generators/js_templates/enum_definition.tmpl b/mojo/public/bindings/generators/js_templates/enum_definition.tmpl
deleted file mode 100644
index 653cfaacbd0299c8ca18df43fa3131ecc80e7339..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/generators/js_templates/enum_definition.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-{%- macro enum_def(enum_name, enum, module) -%}
- {{enum_name}} = {};
-
-{%- set prev_enum = 0 %}
-{%- for field in enum.fields %}
-{%- if field.value %}
- {{enum_name}}.{{field.name}} = {{field.value|expression_to_text(module)}};
-{%- elif loop.first %}
- {{enum_name}}.{{field.name}} = 0;
-{%- else %}
- {{enum_name}}.{{field.name}} = {{enum_name}}.{{enum.fields[loop.index0 - 1].name}} + 1;
-{%- endif %}
-{%- endfor %}
-{%- endmacro %}

Powered by Google App Engine
This is Rietveld 408576698