| 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 |
| 11 {%- set header_guard = "%s_H_"|format( | 11 {%- set header_guard = "%s_H_"|format( |
| 12 variant_path|upper|replace("/","_")|replace(".","_")| | 12 variant_path|upper|replace("/","_")|replace(".","_")| |
| 13 replace("-", "_")) %} | 13 replace("-", "_")) %} |
| 14 | 14 |
| 15 #ifndef {{header_guard}} | 15 #ifndef {{header_guard}} |
| 16 #define {{header_guard}} | 16 #define {{header_guard}} |
| 17 | 17 |
| 18 #include <stdint.h> | 18 #include <stdint.h> |
| 19 #include <ostream> | 19 #include <ostream> |
| 20 | 20 |
| 21 #include "mojo/public/cpp/bindings/array.h" | 21 #include "mojo/public/cpp/bindings/array.h" |
| 22 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" | 22 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" |
| 23 #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h" | 23 #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h" |
| 24 #include "mojo/public/cpp/bindings/associated_interface_request.h" | 24 #include "mojo/public/cpp/bindings/associated_interface_request.h" |
| 25 #include "mojo/public/cpp/bindings/callback.h" | 25 #include "mojo/public/cpp/bindings/callback.h" |
| 26 #include "mojo/public/cpp/bindings/enum_traits.h" |
| 26 #include "mojo/public/cpp/bindings/interface_ptr.h" | 27 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 27 #include "mojo/public/cpp/bindings/interface_request.h" | 28 #include "mojo/public/cpp/bindings/interface_request.h" |
| 28 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" | 29 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" |
| 29 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" | 30 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" |
| 30 #include "mojo/public/cpp/bindings/lib/native_serialization.h" | 31 #include "mojo/public/cpp/bindings/lib/native_serialization.h" |
| 31 #include "mojo/public/cpp/bindings/map.h" | 32 #include "mojo/public/cpp/bindings/map.h" |
| 32 #include "mojo/public/cpp/bindings/message_filter.h" | 33 #include "mojo/public/cpp/bindings/message_filter.h" |
| 33 #include "mojo/public/cpp/bindings/no_interface.h" | 34 #include "mojo/public/cpp/bindings/no_interface.h" |
| 34 #include "mojo/public/cpp/bindings/string.h" | 35 #include "mojo/public/cpp/bindings/string.h" |
| 35 #include "mojo/public/cpp/bindings/struct_ptr.h" | 36 #include "mojo/public/cpp/bindings/struct_ptr.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 {%- endfor %} | 180 {%- endfor %} |
| 180 | 181 |
| 181 {%- if variant %} | 182 {%- if variant %} |
| 182 } // namespace {{variant}} | 183 } // namespace {{variant}} |
| 183 {%- endif %} | 184 {%- endif %} |
| 184 {%- for namespace in namespaces_as_array|reverse %} | 185 {%- for namespace in namespaces_as_array|reverse %} |
| 185 } // namespace {{namespace}} | 186 } // namespace {{namespace}} |
| 186 {%- endfor %} | 187 {%- endfor %} |
| 187 | 188 |
| 188 #endif // {{header_guard}} | 189 #endif // {{header_guard}} |
| OLD | NEW |