Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / mojo / public / tools / bindings / generators / cpp_templates / interface_proxy_declaration.tmpl
1 {%- import "interface_macros.tmpl" as interface_macros %}
2 class {{interface.name}}Proxy : public {{interface.name}} {
3  public:
4   explicit {{interface.name}}Proxy(mojo::MessageReceiver* receiver);
5
6 {%- if interface.client %}
7   virtual void SetClient({{interface.client}}* client) = 0;
8 {%- else %}
9   virtual void SetClient(mojo::NoInterface* client) {}
10 {%- endif %}
11
12 {%- for method in interface.methods %}
13   virtual void {{method.name}}(
14       {{interface_macros.declare_request_params("", method)}}
15   ) MOJO_OVERRIDE;
16 {%- endfor %}
17
18  private:
19   mojo::MessageReceiver* receiver_;
20 };