| Index: third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/interface.tmpl
|
| diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/interface.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/interface.tmpl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..484845d9546fe0b349976535e3f203f53ab08541
|
| --- /dev/null
|
| +++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/interface.tmpl
|
| @@ -0,0 +1,14 @@
|
| +// Copyright 2015 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.
|
| +
|
| +{% import "struct.tmpl" as struct_macros %}
|
| +
|
| +{% macro define(interface) %}
|
| +{% for method in interface.methods %}
|
| +{{struct_macros.define(method|struct_from_method, False)}}
|
| +{%- if method.response_parameters %}
|
| +{{struct_macros.define(method|response_struct_from_method, False)}}
|
| +{% endif %}
|
| +{% endfor %}
|
| +{% endmacro %}
|
|
|