| 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 {#--- WTF enum hashing #} |
| 90 {%- from "enum_macros.tmpl" import enum_hash_blink%} |
| 91 {%- if for_blink %} |
| 92 {%- for enum in all_enums %} |
| 93 {%- if not enum|is_native_only_kind %} |
| 94 {{enum_hash_blink(enum)}} |
| 95 {%- endif %} |
| 96 {%- endfor %} |
| 97 {%- endif %} |
| 98 |
| 89 {{namespace_begin()}} | 99 {{namespace_begin()}} |
| 90 | 100 |
| 91 {#--- Enums #} | 101 {#--- Enums #} |
| 92 {%- if variant %} | 102 {%- if variant %} |
| 93 {%- for enum in enums %} | 103 {%- for enum in enums %} |
| 94 using {{enum.name}} = {{enum.name}}; // Alias for definition in the parent name
space. | 104 using {{enum.name}} = {{enum.name}}; // Alias for definition in the parent name
space. |
| 95 {%- endfor %} | 105 {%- endfor %} |
| 96 {%- endif %} | 106 {%- endif %} |
| 97 | 107 |
| 98 {#--- Constants #} | 108 {#--- Constants #} |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 {#--- Union Serialization Helpers -#} | 226 {#--- Union Serialization Helpers -#} |
| 217 {% if unions %} | 227 {% if unions %} |
| 218 {%- for union in unions %} | 228 {%- for union in unions %} |
| 219 {% include "union_traits_declaration.tmpl" %} | 229 {% include "union_traits_declaration.tmpl" %} |
| 220 {%- endfor %} | 230 {%- endfor %} |
| 221 {%- endif %} | 231 {%- endif %} |
| 222 | 232 |
| 223 } // namespace mojo | 233 } // namespace mojo |
| 224 | 234 |
| 225 #endif // {{header_guard}} | 235 #endif // {{header_guard}} |
| OLD | NEW |