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

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

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 {%- import "interface_macros.tmpl" as interface_macros %}
2 class {{interface.name}}Proxy;
3 class {{interface.name}}Stub;
4 class {{interface.name}}_Synchronous;
5
6 class {{interface.name}}RequestValidator;
7 {%- if interface|has_callbacks %}
8 class {{interface.name}}ResponseValidator;
9 {%- endif %}
10
11 class {{interface.name}} : public internal::{{interface.name}}_Base {
12 public:
13 virtual ~{{interface.name}}() override {}
14
15 using Proxy_ = {{interface.name}}Proxy;
16 using Stub_ = {{interface.name}}Stub;
17
18 {%- for method in interface.methods %}
19 {%- if method.response_parameters != None %}
20 using {{method.name}}Callback = {{interface_macros.declare_callback(method)}};
21 {%- endif %}
22 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod)}}) = 0;
23 {%- endfor %}
24 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698