OLD | NEW |
1 {%- import "interface_macros.tmpl" as interface_macros %} | 1 {%- import "interface_macros.tmpl" as interface_macros %} |
2 {%- import "struct_macros.tmpl" as struct_macros %} | 2 {%- import "struct_macros.tmpl" as struct_macros %} |
3 {%- from "enum_macros.tmpl" import is_valid_enum_def %} | 3 {%- from "enum_macros.tmpl" import is_valid_enum_def %} |
4 | 4 |
5 {%- set class_name = interface.name %} | 5 {%- set class_name = interface.name %} |
6 {%- set proxy_name = interface.name ~ "Proxy" %} | 6 {%- set proxy_name = interface.name ~ "Proxy" %} |
7 {%- set namespace_as_string = "%s"|format(namespace|replace(".","::")) %} | 7 {%- set namespace_as_string = "%s"|format(namespace|replace(".","::")) %} |
8 | 8 |
9 {%- macro alloc_params(struct) %} | 9 {%- macro alloc_params(struct) %} |
10 {%- for param in struct.packed.packed_fields_in_ordinal_order %} | 10 {%- for param in struct.packed.packed_fields_in_ordinal_order %} |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 default: | 315 default: |
316 break; | 316 break; |
317 } | 317 } |
318 | 318 |
319 // Unrecognized message. | 319 // Unrecognized message. |
320 ReportValidationError( | 320 ReportValidationError( |
321 mojo::internal::VALIDATION_ERROR_MESSAGE_HEADER_UNKNOWN_METHOD); | 321 mojo::internal::VALIDATION_ERROR_MESSAGE_HEADER_UNKNOWN_METHOD); |
322 return false; | 322 return false; |
323 } | 323 } |
324 {%- endif -%} | 324 {%- endif -%} |
OLD | NEW |