Chromium Code Reviews| Index: mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl |
| diff --git a/mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl b/mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl |
| index 21c70db3038ed615f53482f0dd94e90ae99b628a..ad916722d401c92371e5abceb33f4e5f4f7b68dd 100644 |
| --- a/mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl |
| +++ b/mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl |
| @@ -37,3 +37,13 @@ |
| {% endif %} |
| } |
| {%- endmacro -%} |
| + |
| +{%- macro union_descriptor(union) -%} |
| +{ |
| + 'fields': [ |
| +{% for field in union.fields %} |
|
qsr
2015/07/16 09:35:26
Identation is incorrect.
azani
2015/07/16 21:57:39
Done.
|
| + {{field|union_field_desc}}, |
| +{% endfor %} |
| + ], |
| +} |
| +{%- endmacro -%} |