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

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

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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/bindings/generators/cpp_templates/interface_declaration.tmpl
diff --git a/mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl b/mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl
deleted file mode 100644
index 5b61e173ca828c15b7ca69fd7e45910a3b38d2a3..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl
+++ /dev/null
@@ -1,34 +0,0 @@
-{%- import "interface_macros.tmpl" as interface_macros %}
-class {{interface.name}}Proxy;
-class {{interface.name}}Stub;
-{% if interface.peer %}
-class {{interface.peer}};
-{% endif %}
-
-class {{interface.name}} {
- public:
- typedef {{interface.name}}Proxy _Proxy;
- typedef {{interface.name}}Stub _Stub;
-{% if interface.peer %}
- typedef {{interface.peer}} _Peer;
-{% else %}
- typedef mojo::NoInterface _Peer;
-{% endif %}
-
-{#--- Enums #}
-{%- for enum in interface.enums %}
-{% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %}
- {{enum_def()|indent(2)}}
-{%- endfor %}
-
-{#--- Methods #}
-{%- for method in interface.methods %}
- virtual void {{method.name}}({{interface_macros.declare_request_params(method)}}) = 0;
-{%- endfor %}
-};
-
-// A typesafe variant of MessagePipeHandle.
-typedef mojo::Interface<{{interface.name}}>::Handle {{interface.name}}Handle;
-
-// A typesafe variant of ScopedMessagePipeHandle.
-typedef mojo::Interface<{{interface.name}}>::ScopedHandle Scoped{{interface.name}}Handle;

Powered by Google App Engine
This is Rietveld 408576698