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 13 matching lines...) Expand all Loading... |
24 #include "mojo/public/cpp/bindings/callback.h" | 24 #include "mojo/public/cpp/bindings/callback.h" |
25 #include "mojo/public/cpp/bindings/interface_ptr.h" | 25 #include "mojo/public/cpp/bindings/interface_ptr.h" |
26 #include "mojo/public/cpp/bindings/interface_request.h" | 26 #include "mojo/public/cpp/bindings/interface_request.h" |
27 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" | 27 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" |
28 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" | 28 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" |
29 #include "mojo/public/cpp/bindings/map.h" | 29 #include "mojo/public/cpp/bindings/map.h" |
30 #include "mojo/public/cpp/bindings/message_filter.h" | 30 #include "mojo/public/cpp/bindings/message_filter.h" |
31 #include "mojo/public/cpp/bindings/no_interface.h" | 31 #include "mojo/public/cpp/bindings/no_interface.h" |
32 #include "mojo/public/cpp/bindings/string.h" | 32 #include "mojo/public/cpp/bindings/string.h" |
33 #include "mojo/public/cpp/bindings/struct_ptr.h" | 33 #include "mojo/public/cpp/bindings/struct_ptr.h" |
| 34 #include "mojo/public/cpp/bindings/struct_traits.h" |
34 #include "{{variant_path}}-internal.h" | 35 #include "{{variant_path}}-internal.h" |
35 {%- for import in imports %} | 36 {%- for import in imports %} |
36 #include "{{import.module.path}}.h" | 37 #include "{{import.module.path}}.h" |
37 {%- endfor %} | 38 {%- endfor %} |
38 {%- if variant %} | 39 {%- if variant %} |
39 #include "{{module.path}}.h" | 40 #include "{{module.path}}.h" |
40 {%- endif %} | 41 {%- endif %} |
41 | 42 |
42 {%- for namespace in namespaces_as_array %} | 43 {%- for namespace in namespaces_as_array %} |
43 namespace {{namespace}} { | 44 namespace {{namespace}} { |
(...skipping 22 matching lines...) Expand all Loading... |
66 {#--- Interface Forward Declarations -#} | 67 {#--- Interface Forward Declarations -#} |
67 {% for interface in interfaces %} | 68 {% for interface in interfaces %} |
68 class {{interface.name}}; | 69 class {{interface.name}}; |
69 using {{interface.name}}Ptr = mojo::InterfacePtr<{{interface.name}}>; | 70 using {{interface.name}}Ptr = mojo::InterfacePtr<{{interface.name}}>; |
70 using {{interface.name}}AssociatedPtr = mojo::AssociatedInterfacePtr<{{interface
.name}}>; | 71 using {{interface.name}}AssociatedPtr = mojo::AssociatedInterfacePtr<{{interface
.name}}>; |
71 {% endfor %} | 72 {% endfor %} |
72 | 73 |
73 {#--- Struct Forward Declarations -#} | 74 {#--- Struct Forward Declarations -#} |
74 {% for struct in structs %} | 75 {% for struct in structs %} |
75 class {{struct.name}}; | 76 class {{struct.name}}; |
| 77 class {{struct.name}}_Reader; |
76 {% if struct|should_inline %} | 78 {% if struct|should_inline %} |
77 using {{struct.name}}Ptr = mojo::InlinedStructPtr<{{struct.name}}>; | 79 using {{struct.name}}Ptr = mojo::InlinedStructPtr<{{struct.name}}>; |
78 {% else %} | 80 {% else %} |
79 using {{struct.name}}Ptr = mojo::StructPtr<{{struct.name}}>; | 81 using {{struct.name}}Ptr = mojo::StructPtr<{{struct.name}}>; |
80 {% endif %} | 82 {% endif %} |
81 {% endfor %} | 83 {% endfor %} |
82 | 84 |
83 {#--- Union Forward Declarations -#} | 85 {#--- Union Forward Declarations -#} |
84 {% for union in unions %} | 86 {% for union in unions %} |
85 class {{union.name}}; | 87 class {{union.name}}; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 {%- endif %} | 155 {%- endif %} |
154 | 156 |
155 {%- if variant %} | 157 {%- if variant %} |
156 } // namespace {{variant}} | 158 } // namespace {{variant}} |
157 {%- endif %} | 159 {%- endif %} |
158 {%- for namespace in namespaces_as_array|reverse %} | 160 {%- for namespace in namespaces_as_array|reverse %} |
159 } // namespace {{namespace}} | 161 } // namespace {{namespace}} |
160 {%- endfor %} | 162 {%- endfor %} |
161 | 163 |
162 #endif // {{header_guard}} | 164 #endif // {{header_guard}} |
OLD | NEW |