| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 {#--- Enums #} | 91 {#--- Enums #} |
| 92 {%- if variant %} | 92 {%- if variant %} |
| 93 {%- for enum in enums %} | 93 {%- for enum in enums %} |
| 94 using {{enum.name}} = {{enum.name}}; // Alias for definition in the parent name
space. | 94 using {{enum.name}} = {{enum.name}}; // Alias for definition in the parent name
space. |
| 95 {%- endfor %} | 95 {%- endfor %} |
| 96 {%- endif %} | 96 {%- endif %} |
| 97 | 97 |
| 98 {#--- Constants #} | 98 {#--- Constants #} |
| 99 {%- for constant in module.constants %} | 99 {%- for constant in module.constants %} |
| 100 {{constant|format_constant_declaration}}; | 100 {{constant|format_constant_declaration(export_attribute=export_attribute)}}; |
| 101 {%- endfor %} | 101 {%- endfor %} |
| 102 | 102 |
| 103 {#--- Interface Forward Declarations -#} | 103 {#--- Interface Forward Declarations -#} |
| 104 {% for interface in interfaces %} | 104 {% for interface in interfaces %} |
| 105 class {{interface.name}}; | 105 class {{interface.name}}; |
| 106 using {{interface.name}}Ptr = mojo::InterfacePtr<{{interface.name}}>; | 106 using {{interface.name}}Ptr = mojo::InterfacePtr<{{interface.name}}>; |
| 107 using {{interface.name}}PtrInfo = mojo::InterfacePtrInfo<{{interface.name}}>; | 107 using {{interface.name}}PtrInfo = mojo::InterfacePtrInfo<{{interface.name}}>; |
| 108 using ThreadSafe{{interface.name}}Ptr = | 108 using ThreadSafe{{interface.name}}Ptr = |
| 109 mojo::ThreadSafeInterfacePtr<{{interface.name}}>; | 109 mojo::ThreadSafeInterfacePtr<{{interface.name}}>; |
| 110 using {{interface.name}}Request = mojo::InterfaceRequest<{{interface.name}}>; | 110 using {{interface.name}}Request = mojo::InterfaceRequest<{{interface.name}}>; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 {#--- Union Serialization Helpers -#} | 216 {#--- Union Serialization Helpers -#} |
| 217 {% if unions %} | 217 {% if unions %} |
| 218 {%- for union in unions %} | 218 {%- for union in unions %} |
| 219 {% include "union_traits_declaration.tmpl" %} | 219 {% include "union_traits_declaration.tmpl" %} |
| 220 {%- endfor %} | 220 {%- endfor %} |
| 221 {%- endif %} | 221 {%- endif %} |
| 222 | 222 |
| 223 } // namespace mojo | 223 } // namespace mojo |
| 224 | 224 |
| 225 #endif // {{header_guard}} | 225 #endif // {{header_guard}} |
| OLD | NEW |