| OLD | NEW |
| 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 | 4 |
| 5 class {{interface.name}}RequestValidator; | 5 class {{interface.name}}RequestValidator; |
| 6 {%- if interface|has_callbacks %} | 6 {%- if interface|has_callbacks %} |
| 7 class {{interface.name}}ResponseValidator; | 7 class {{interface.name}}ResponseValidator; |
| 8 {%- endif %} | 8 {%- endif %} |
| 9 {% if interface.client %} | 9 {% if interface.client %} |
| 10 class {{interface.client}}; | 10 class {{interface.client}}; |
| 11 {% endif %} | 11 {% endif %} |
| 12 | 12 |
| 13 class {{interface.name}} { | 13 class {{interface.name}} { |
| 14 public: | 14 public: |
| 15 static const char* Name_; |
| 16 |
| 15 typedef {{interface.name}}Proxy Proxy_; | 17 typedef {{interface.name}}Proxy Proxy_; |
| 16 typedef {{interface.name}}Stub Stub_; | 18 typedef {{interface.name}}Stub Stub_; |
| 17 | 19 |
| 18 typedef {{interface.name}}RequestValidator RequestValidator_; | 20 typedef {{interface.name}}RequestValidator RequestValidator_; |
| 19 {%- if interface|has_callbacks %} | 21 {%- if interface|has_callbacks %} |
| 20 typedef {{interface.name}}ResponseValidator ResponseValidator_; | 22 typedef {{interface.name}}ResponseValidator ResponseValidator_; |
| 21 {%- else %} | 23 {%- else %} |
| 22 typedef mojo::PassThroughFilter ResponseValidator_; | 24 typedef mojo::PassThroughFilter ResponseValidator_; |
| 23 {%- endif %} | 25 {%- endif %} |
| 24 {% if interface.client %} | 26 {% if interface.client %} |
| (...skipping 13 matching lines...) Expand all Loading... |
| 38 {{enum_def()|indent(2)}} | 40 {{enum_def()|indent(2)}} |
| 39 {%- endfor %} | 41 {%- endfor %} |
| 40 | 42 |
| 41 {#--- Methods #} | 43 {#--- Methods #} |
| 42 virtual ~{{interface.name}}() {} | 44 virtual ~{{interface.name}}() {} |
| 43 | 45 |
| 44 {%- for method in interface.methods %} | 46 {%- for method in interface.methods %} |
| 45 virtual void {{method.name}}({{interface_macros.declare_request_params("", met
hod)}}) = 0; | 47 virtual void {{method.name}}({{interface_macros.declare_request_params("", met
hod)}}) = 0; |
| 46 {%- endfor %} | 48 {%- endfor %} |
| 47 }; | 49 }; |
| OLD | NEW |