| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 {%- if variant -%} | 5 {%- if variant -%} |
| 6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} | 6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} |
| 7 {%- else -%} | 7 {%- else -%} |
| 8 {%- set variant_path = module.path -%} | 8 {%- set variant_path = module.path -%} |
| 9 {%- endif -%} | 9 {%- endif -%} |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 {%- endif %} | 79 {%- endif %} |
| 80 | 80 |
| 81 {%- for header in extra_public_headers %} | 81 {%- for header in extra_public_headers %} |
| 82 #include "{{header}}" | 82 #include "{{header}}" |
| 83 {%- endfor %} | 83 {%- endfor %} |
| 84 | 84 |
| 85 {%- if export_header %} | 85 {%- if export_header %} |
| 86 #include "{{export_header}}" | 86 #include "{{export_header}}" |
| 87 {%- endif %} | 87 {%- endif %} |
| 88 | 88 |
| 89 {#--- Enum hashing #} |
| 90 {%- from "enum_macros.tmpl" import enum_hash_blink%} |
| 91 {%- if for_blink %} |
| 92 {%- for enum in enums %} |
| 93 {{enum_hash_blink(enum)}} |
| 94 {%- endfor %} |
| 95 {%- endif %} |
| 96 |
| 89 {{namespace_begin()}} | 97 {{namespace_begin()}} |
| 90 | 98 |
| 91 {#--- Enums #} | 99 {#--- Enums #} |
| 92 {%- if variant %} | 100 {%- if variant %} |
| 93 {%- for enum in enums %} | 101 {%- for enum in enums %} |
| 94 using {{enum.name}} = {{enum.name}}; // Alias for definition in the parent name
space. | 102 using {{enum.name}} = {{enum.name}}; // Alias for definition in the parent name
space. |
| 95 {%- endfor %} | 103 {%- endfor %} |
| 96 {%- endif %} | 104 {%- endif %} |
| 97 | 105 |
| 98 {#--- Constants #} | 106 {#--- Constants #} |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 {#--- Union Serialization Helpers -#} | 224 {#--- Union Serialization Helpers -#} |
| 217 {% if unions %} | 225 {% if unions %} |
| 218 {%- for union in unions %} | 226 {%- for union in unions %} |
| 219 {% include "union_traits_declaration.tmpl" %} | 227 {% include "union_traits_declaration.tmpl" %} |
| 220 {%- endfor %} | 228 {%- endfor %} |
| 221 {%- endif %} | 229 {%- endif %} |
| 222 | 230 |
| 223 } // namespace mojo | 231 } // namespace mojo |
| 224 | 232 |
| 225 #endif // {{header_guard}} | 233 #endif // {{header_guard}} |
| OLD | NEW |