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

Side by Side Diff: mojo/public/tools/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, 8 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 | Annotate | Revision Log
OLDNEW
1 {%- import "interface_macros.tmpl" as interface_macros %} 1 {%- import "interface_macros.tmpl" as interface_macros %}
2 class {{interface.name}}Proxy; 2 class {{interface.name}}Proxy;
3 class {{interface.name}}Stub; 3 class {{interface.name}}Stub;
4 {% if interface.peer %} 4 {% if interface.peer %}
5 class {{interface.peer}}; 5 class {{interface.peer}};
6 {% endif %} 6 {% endif %}
7 7
8 class {{interface.name}} { 8 class {{interface.name}} {
9 public: 9 public:
10 typedef {{interface.name}}Proxy _Proxy; 10 typedef {{interface.name}}Proxy _Proxy;
(...skipping 14 matching lines...) Expand all
25 {%- for method in interface.methods %} 25 {%- for method in interface.methods %}
26 virtual void {{method.name}}({{interface_macros.declare_request_params(method) }}) = 0; 26 virtual void {{method.name}}({{interface_macros.declare_request_params(method) }}) = 0;
27 {%- endfor %} 27 {%- endfor %}
28 }; 28 };
29 29
30 // A typesafe variant of MessagePipeHandle. 30 // A typesafe variant of MessagePipeHandle.
31 typedef mojo::Interface<{{interface.name}}>::Handle {{interface.name}}Handle; 31 typedef mojo::Interface<{{interface.name}}>::Handle {{interface.name}}Handle;
32 32
33 // A typesafe variant of ScopedMessagePipeHandle. 33 // A typesafe variant of ScopedMessagePipeHandle.
34 typedef mojo::Interface<{{interface.name}}>::ScopedHandle Scoped{{interface.name }}Handle; 34 typedef mojo::Interface<{{interface.name}}>::ScopedHandle Scoped{{interface.name }}Handle;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698