| 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}}; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 {#--- Enums #} | 35 {#--- Enums #} |
| 36 {%- for enum in interface.enums %} | 36 {%- for enum in interface.enums %} |
| 37 {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %} | 37 {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %} |
| 38 {{enum_def()|indent(2)}} | 38 {{enum_def()|indent(2)}} |
| 39 {%- endfor %} | 39 {%- endfor %} |
| 40 | 40 |
| 41 {#--- Methods #} | 41 {#--- Methods #} |
| 42 virtual ~{{interface.name}}() {} | 42 virtual ~{{interface.name}}() {} |
| 43 | 43 |
| 44 {%- if interface.client %} | |
| 45 // Called once before any other method. | |
| 46 virtual void SetClient({{interface.client}}* client) = 0; | |
| 47 {%- else %} | |
| 48 virtual void SetClient(mojo::NoInterface* client) {} | |
| 49 {%- endif %} | |
| 50 {%- for method in interface.methods %} | 44 {%- for method in interface.methods %} |
| 51 virtual void {{method.name}}({{interface_macros.declare_request_params("", met
hod)}}) = 0; | 45 virtual void {{method.name}}({{interface_macros.declare_request_params("", met
hod)}}) = 0; |
| 52 {%- endfor %} | 46 {%- endfor %} |
| 53 }; | 47 }; |
| OLD | NEW |