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

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

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 months 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
deleted file mode 100644
index 30d20d8993e601f078e81340bba453341494eb4c..0000000000000000000000000000000000000000
--- a/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 %}
-{% if interface.client %}
-class {{interface.client}};
-{% endif %}
-
-class {{interface.name}} {
- public:
- static const char* Name_;
-
- typedef {{interface.name}}Proxy Proxy_;
- typedef {{interface.name}}Stub Stub_;
-
- typedef {{interface.name}}RequestValidator RequestValidator_;
-{%- if interface|has_callbacks %}
- typedef {{interface.name}}ResponseValidator ResponseValidator_;
-{%- else %}
- typedef mojo::PassThroughFilter ResponseValidator_;
-{%- endif %}
-{% if interface.client %}
- typedef {{interface.client}} Client;
-{% else %}
- typedef mojo::NoInterface Client;
-{% endif %}
-
-{#--- Constants #}
-{%- for constant in interface.constants %}
- static const {{constant.kind|cpp_pod_type}} {{constant.name}};
-{%- endfor %}
-
-{#--- Enums #}
-{%- for enum in interface.enums %}
-{% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %}
- {{enum_def()|indent(2)}}
-{%- endfor %}
-
-{#--- Methods #}
- virtual ~{{interface.name}}() {}
-
-{%- for method in interface.methods %}
- virtual void {{method.name}}({{interface_macros.declare_request_params("", method)}}) = 0;
-{%- endfor %}
-};

Powered by Google App Engine
This is Rietveld 408576698