Chromium Code Reviews| 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 {{export_attribute}} {{interface.export}} {{interface.name}} { |
|
yzshen1
2016/08/08 17:07:32
what is {{interface.export}}?
jam
2016/08/08 17:36:08
oops, that's from a previous iteration. removed.
| |
| 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 %}; | 15 static const bool HasSyncMethods_ = {% if interface|has_sync_methods %}true{% else %}false{% endif %}; |
| 16 | 16 |
| 17 using Proxy_ = {{interface.name}}Proxy; | 17 using Proxy_ = {{interface.name}}Proxy; |
| 18 using Stub_ = {{interface.name}}Stub; | 18 using Stub_ = {{interface.name}}Stub; |
| 19 | 19 |
| 20 using RequestValidator_ = {{interface.name}}RequestValidator; | 20 using RequestValidator_ = {{interface.name}}RequestValidator; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 // should implement the signature with callback below. | 53 // should implement the signature with callback below. |
| 54 virtual bool {{method.name}}({{interface_macros.declare_sync_method_params("", method)}}); | 54 virtual bool {{method.name}}({{interface_macros.declare_sync_method_params("", method)}}); |
| 55 {%- endif %} | 55 {%- endif %} |
| 56 | 56 |
| 57 using {{method.name}}Callback = {{interface_macros.declare_callback(method, | 57 using {{method.name}}Callback = {{interface_macros.declare_callback(method, |
| 58 for_blink, use_new_wrapper_types)}}; | 58 for_blink, use_new_wrapper_types)}}; |
| 59 {%- endif %} | 59 {%- endif %} |
| 60 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod)}}) = 0; | 60 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod)}}) = 0; |
| 61 {%- endfor %} | 61 {%- endfor %} |
| 62 }; | 62 }; |
| OLD | NEW |