Chromium Code Reviews| Index: mojo/public/tools/bindings/generators/python_templates/module.py.tmpl |
| diff --git a/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl b/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl |
| index 2a229327b71301a4ce0658a902cd70a9cfbdb455..72d1928a8b3af45b61f673ebc07b84ae25d22ac9 100644 |
| --- a/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl |
| +++ b/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl |
| @@ -1,5 +1,6 @@ |
| {% from "module_macros.tmpl" import enum_values %} |
| {% from "module_macros.tmpl" import struct_descriptor %} |
| +{% from "module_macros.tmpl" import union_descriptor %} |
| # Copyright 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| @@ -34,6 +35,13 @@ class {{struct|name}}(object): |
| __metaclass__ = _reflection.MojoStructType |
| DESCRIPTOR = {{struct_descriptor(struct)|indent(2)}} |
| {% endfor %} |
| + |
| +{% for union in unions %} |
|
qsr
2015/07/16 09:35:26
Remove the space before the for loop, and add it a
azani
2015/07/16 21:57:39
Done.
|
| +class {{union|name}}(object): |
| + __metaclass__ = _reflection.MojoUnionType |
| + DESCRIPTOR = {{union_descriptor(union)|indent(2)}} |
| +{% endfor %} |
| + |
| {% for interface in interfaces %} |
| class {{interface|name}}(object): |
| @@ -55,3 +63,4 @@ class {{interface|name}}(object): |
| ], |
| } |
| {% endfor %} |
| + |
|
qsr
2015/07/16 09:35:26
Why this blank line?
azani
2015/07/16 21:57:39
Done.
|