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

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

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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: 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 %}
-};

Powered by Google App Engine
This is Rietveld 408576698