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 | 9 |
10 class {{interface.name}} { | 10 class {{interface.name}} { |
11 public: | 11 public: |
12 static const char Name_[]; | 12 static const char Name_[]; |
13 static const uint32_t Version_ = {{interface.version}}; | 13 static const uint32_t Version_ = {{interface.version}}; |
14 static const bool PassesAssociatedKinds_ = {% if interface|passes_associated_k
inds %}true{% else %}false{% endif %}; | 14 static const bool PassesAssociatedKinds_ = {% if interface|passes_associated_k
inds %}true{% else %}false{% endif %}; |
15 static const bool HasSyncMethods_ = {% if interface|has_sync_methods %}true{%
else %}false{% endif %}; | |
16 | 15 |
17 using GenericInterface = {{interface|get_qualified_name_for_kind}}; | 16 using GenericInterface = {{interface|get_qualified_name_for_kind}}; |
18 | 17 |
19 using Proxy_ = {{interface.name}}Proxy; | 18 using Proxy_ = {{interface.name}}Proxy; |
20 using Stub_ = {{interface.name}}Stub; | 19 using Stub_ = {{interface.name}}Stub; |
21 | 20 |
22 using RequestValidator_ = {{interface.name}}RequestValidator; | 21 using RequestValidator_ = {{interface.name}}RequestValidator; |
23 {%- if interface|has_callbacks %} | 22 {%- if interface|has_callbacks %} |
24 using ResponseValidator_ = {{interface.name}}ResponseValidator; | 23 using ResponseValidator_ = {{interface.name}}ResponseValidator; |
25 {%- else %} | 24 {%- else %} |
(...skipping 27 matching lines...) Expand all Loading... |
53 NOTREACHED(); | 52 NOTREACHED(); |
54 return false; | 53 return false; |
55 } | 54 } |
56 {%- endif %} | 55 {%- endif %} |
57 | 56 |
58 using {{method.name}}Callback = {{interface_macros.declare_callback(method)}}; | 57 using {{method.name}}Callback = {{interface_macros.declare_callback(method)}}; |
59 {%- endif %} | 58 {%- endif %} |
60 virtual void {{method.name}}({{interface_macros.declare_request_params("", met
hod)}}) = 0; | 59 virtual void {{method.name}}({{interface_macros.declare_request_params("", met
hod)}}) = 0; |
61 {%- endfor %} | 60 {%- endfor %} |
62 }; | 61 }; |
OLD | NEW |