| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" | 48 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" |
| 49 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" | 49 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" |
| 50 #include "mojo/public/cpp/bindings/lib/serialization.h" | 50 #include "mojo/public/cpp/bindings/lib/serialization.h" |
| 51 #include "mojo/public/cpp/bindings/lib/union_accessor.h" | 51 #include "mojo/public/cpp/bindings/lib/union_accessor.h" |
| 52 #include "mojo/public/cpp/bindings/map.h" | 52 #include "mojo/public/cpp/bindings/map.h" |
| 53 #include "mojo/public/cpp/bindings/native_struct.h" | 53 #include "mojo/public/cpp/bindings/native_struct.h" |
| 54 #include "mojo/public/cpp/bindings/no_interface.h" | 54 #include "mojo/public/cpp/bindings/no_interface.h" |
| 55 #include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h" | 55 #include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h" |
| 56 #include "mojo/public/cpp/bindings/struct_ptr.h" | 56 #include "mojo/public/cpp/bindings/struct_ptr.h" |
| 57 #include "mojo/public/cpp/bindings/struct_traits.h" | 57 #include "mojo/public/cpp/bindings/struct_traits.h" |
| 58 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" |
| 58 #include "mojo/public/cpp/bindings/union_traits.h" | 59 #include "mojo/public/cpp/bindings/union_traits.h" |
| 59 #include "{{module.path}}-shared.h" | 60 #include "{{module.path}}-shared.h" |
| 60 {%- for import in imports %} | 61 {%- for import in imports %} |
| 61 {%- if variant %} | 62 {%- if variant %} |
| 62 #include "{{"%s-%s.h"|format(import.module.path, variant)}}" | 63 #include "{{"%s-%s.h"|format(import.module.path, variant)}}" |
| 63 {%- else %} | 64 {%- else %} |
| 64 #include "{{import.module.path}}.h" | 65 #include "{{import.module.path}}.h" |
| 65 {%- endif %} | 66 {%- endif %} |
| 66 {%- endfor %} | 67 {%- endfor %} |
| 67 {%- if not for_blink %} | 68 {%- if not for_blink %} |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 {%- else %} | 105 {%- else %} |
| 105 extern const {{constant.kind|cpp_pod_type}} {{constant.name}}; | 106 extern const {{constant.kind|cpp_pod_type}} {{constant.name}}; |
| 106 {%- endif %} | 107 {%- endif %} |
| 107 {%- endfor %} | 108 {%- endfor %} |
| 108 | 109 |
| 109 {#--- Interface Forward Declarations -#} | 110 {#--- Interface Forward Declarations -#} |
| 110 {% for interface in interfaces %} | 111 {% for interface in interfaces %} |
| 111 class {{interface.name}}; | 112 class {{interface.name}}; |
| 112 using {{interface.name}}Ptr = mojo::InterfacePtr<{{interface.name}}>; | 113 using {{interface.name}}Ptr = mojo::InterfacePtr<{{interface.name}}>; |
| 113 using {{interface.name}}PtrInfo = mojo::InterfacePtrInfo<{{interface.name}}>; | 114 using {{interface.name}}PtrInfo = mojo::InterfacePtrInfo<{{interface.name}}>; |
| 115 using ThreadSafe{{interface.name}}Ptr = |
| 116 mojo::ThreadSafeInterfacePtr<{{interface.name}}>; |
| 114 using {{interface.name}}Request = mojo::InterfaceRequest<{{interface.name}}>; | 117 using {{interface.name}}Request = mojo::InterfaceRequest<{{interface.name}}>; |
| 115 using {{interface.name}}AssociatedPtr = | 118 using {{interface.name}}AssociatedPtr = |
| 116 mojo::AssociatedInterfacePtr<{{interface.name}}>; | 119 mojo::AssociatedInterfacePtr<{{interface.name}}>; |
| 117 using {{interface.name}}AssociatedPtrInfo = | 120 using {{interface.name}}AssociatedPtrInfo = |
| 118 mojo::AssociatedInterfacePtrInfo<{{interface.name}}>; | 121 mojo::AssociatedInterfacePtrInfo<{{interface.name}}>; |
| 119 using {{interface.name}}AssociatedRequest = | 122 using {{interface.name}}AssociatedRequest = |
| 120 mojo::AssociatedInterfaceRequest<{{interface.name}}>; | 123 mojo::AssociatedInterfaceRequest<{{interface.name}}>; |
| 121 {% endfor %} | 124 {% endfor %} |
| 122 | 125 |
| 123 {#--- Struct Forward Declarations -#} | 126 {#--- Struct Forward Declarations -#} |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 {#--- Union Serialization Helpers -#} | 221 {#--- Union Serialization Helpers -#} |
| 219 {% if unions %} | 222 {% if unions %} |
| 220 {%- for union in unions %} | 223 {%- for union in unions %} |
| 221 {% include "union_traits_declaration.tmpl" %} | 224 {% include "union_traits_declaration.tmpl" %} |
| 222 {%- endfor %} | 225 {%- endfor %} |
| 223 {%- endif %} | 226 {%- endif %} |
| 224 | 227 |
| 225 } // namespace mojo | 228 } // namespace mojo |
| 226 | 229 |
| 227 #endif // {{header_guard}} | 230 #endif // {{header_guard}} |
| OLD | NEW |