Chromium Code Reviews| Index: mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl |
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl |
| index c8298d9501f005cd830c1721168d17582f33d429..0bd3612ee7bb1d32b684282f8fafc458da4cf8df 100644 |
| --- a/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl |
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl |
| @@ -29,6 +29,13 @@ class {{export_attribute}} {{interface.name}} |
| using ResponseValidator_ = mojo::PassThroughFilter; |
| {%- endif %} |
| +{#--- Metadata #} |
| + enum kMethodMinVersions : uint32_t { |
|
yzshen1
2016/12/22 21:52:19
Does it make sense to use
static const uint32_t
Luis Héctor Chávez
2016/12/22 21:54:03
I'm following the advice on this thread: https://g
yzshen1
2016/12/22 22:19:08
Thanks for pointing me there. Yeah, ODR... :)
Ple
|
| +{%- for method in interface.methods %} |
| + k{{method.name}}MinVersion = {{method.min_version|default(0, true)}}, |
| +{%- endfor %} |
| + }; |
| + |
| {#--- Enums #} |
| {%- for enum in interface.enums %} |
| using {{enum.name}} = {{enum|get_name_for_kind(flatten_nested_kind=True)}}; |