OLD | NEW |
1 {%- import "interface_macros.tmpl" as interface_macros %} | 1 {%- import "interface_macros.tmpl" as interface_macros %} |
2 {%- set class_name = interface.name %} | 2 {%- set class_name = interface.name %} |
3 {%- set proxy_name = interface.name ~ "Proxy" %} | 3 {%- set proxy_name = interface.name ~ "Proxy" %} |
4 | 4 |
5 {%- macro pass_params(parameters) %} | 5 {%- macro pass_params(parameters) %} |
6 {%- for param in parameters %} | 6 {%- for param in parameters %} |
7 {%- if param.kind|is_object_kind -%} | 7 {%- if param.kind|is_object_kind -%} |
8 mojo::internal::Wrap(params->{{param.name}}()) | 8 mojo::internal::Wrap(params->{{param.name}}()) |
9 {%- elif param.kind|is_handle_kind -%} | 9 {%- elif param.kind|is_handle_kind -%} |
10 mojo::MakePassable(params->{{param.name}}()).Pass() | 10 mojo::MakePassable(params->{{param.name}}()).Pass() |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 return true; | 214 return true; |
215 {%- else %} | 215 {%- else %} |
216 break; | 216 break; |
217 {%- endif %} | 217 {%- endif %} |
218 } | 218 } |
219 {%- endfor %} | 219 {%- endfor %} |
220 } | 220 } |
221 {%- endif %} | 221 {%- endif %} |
222 return false; | 222 return false; |
223 } | 223 } |
OLD | NEW |