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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl

Issue 2594203002: [mojo] Expose interface method min_versions (Closed)
Patch Set: Created 4 years 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/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..f2fa9acb362125f875b24daa9a542745d930a8b5 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,16 @@ class {{export_attribute}} {{interface.name}}
using ResponseValidator_ = mojo::PassThroughFilter;
{%- endif %}
+{#--- Metadata #}
+ enum kMethodIndices : uint32_t {
yzshen1 2016/12/22 18:53:28 For Foo.Bar(), we already have "const uint32_t int
+{%- for method in interface.methods %}
+ k{{method.name}}MethodIndex,
+{%- endfor %}
+ kMethodMetadataSize
+ };
+
+ static const mojo::MethodMetadata kMethodMetadata[];
+
{#--- Enums #}
{%- for enum in interface.enums %}
using {{enum.name}} = {{enum|get_name_for_kind(flatten_nested_kind=True)}};

Powered by Google App Engine
This is Rietveld 408576698