Index: third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl |
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl |
deleted file mode 100644 |
index 9edc1db8e5a6becf99e7c8c50484d669badb4b36..0000000000000000000000000000000000000000 |
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl |
+++ /dev/null |
@@ -1,49 +0,0 @@ |
-{%- import "interface_macros.tmpl" as interface_macros %} |
-class {{interface.name}}Proxy; |
-class {{interface.name}}Stub; |
- |
-class {{interface.name}}RequestValidator; |
-{%- if interface|has_callbacks %} |
-class {{interface.name}}ResponseValidator; |
-{%- endif %} |
- |
-class {{interface.name}} { |
- public: |
- static const char Name_[]; |
- static const uint32_t Version_ = {{interface.version}}; |
- |
- using Proxy_ = {{interface.name}}Proxy; |
- using Stub_ = {{interface.name}}Stub; |
- |
- using RequestValidator_ = {{interface.name}}RequestValidator; |
-{%- if interface|has_callbacks %} |
- using ResponseValidator_ = {{interface.name}}ResponseValidator; |
-{%- else %} |
- using ResponseValidator_ = mojo::PassThroughFilter; |
-{%- endif %} |
- |
-{#--- Enums #} |
-{% from "enum_macros.tmpl" import enum_decl -%} |
-{%- for enum in interface.enums %} |
- {{enum_decl(enum, is_static=true)|indent(2)}} |
-{%- endfor %} |
- |
-{#--- Constants #} |
-{%- for constant in interface.constants %} |
-{%- if constant.kind|is_integral_kind %} |
- static const {{constant.kind|cpp_pod_type}} {{constant.name}} = {{constant|constant_value}}; |
-{%- else %} |
- static const {{constant.kind|cpp_pod_type}} {{constant.name}}; |
-{%- endif %} |
-{%- endfor %} |
- |
-{#--- Methods #} |
- virtual ~{{interface.name}}() {} |
- |
-{%- for method in interface.methods %} |
-{% if method.response_parameters != None %} |
- using {{method.name}}Callback = {{interface_macros.declare_callback(method)}}; |
-{%- endif %} |
- virtual void {{method.name}}({{interface_macros.declare_request_params("", method)}}) = 0; |
-{%- endfor %} |
-}; |