| 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 {%- set header_guard = "%s_H_"| | 5 {%- set header_guard = "%s_H_"| |
| 6 format(module.path|upper|replace("/","_")|replace(".","_")) %} | 6 format(module.path|upper|replace("/","_")|replace(".","_")) %} |
| 7 | 7 |
| 8 #ifndef {{header_guard}} | 8 #ifndef {{header_guard}} |
| 9 #define {{header_guard}} | 9 #define {{header_guard}} |
| 10 | 10 |
| 11 #include "mojo/public/cpp/bindings/array.h" | 11 #include "mojo/public/cpp/bindings/array.h" |
| 12 #include "mojo/public/cpp/bindings/callback.h" | 12 #include "mojo/public/cpp/bindings/callback.h" |
| 13 #include "mojo/public/cpp/bindings/error_handler.h" |
| 13 #include "mojo/public/cpp/bindings/interface_impl.h" | 14 #include "mojo/public/cpp/bindings/interface_impl.h" |
| 14 #include "mojo/public/cpp/bindings/interface_ptr.h" | 15 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 15 #include "mojo/public/cpp/bindings/interface_request.h" | 16 #include "mojo/public/cpp/bindings/interface_request.h" |
| 16 #include "mojo/public/cpp/bindings/map.h" | 17 #include "mojo/public/cpp/bindings/map.h" |
| 17 #include "mojo/public/cpp/bindings/message_filter.h" | 18 #include "mojo/public/cpp/bindings/message_filter.h" |
| 18 #include "mojo/public/cpp/bindings/no_interface.h" | 19 #include "mojo/public/cpp/bindings/no_interface.h" |
| 19 #include "mojo/public/cpp/bindings/string.h" | 20 #include "mojo/public/cpp/bindings/string.h" |
| 20 #include "mojo/public/cpp/bindings/struct_ptr.h" | 21 #include "mojo/public/cpp/bindings/struct_ptr.h" |
| 22 #include "mojo/public/cpp/bindings/lib/shared_data.h" |
| 21 #include "{{module.path}}-internal.h" | 23 #include "{{module.path}}-internal.h" |
| 22 {%- for import in imports %} | 24 {%- for import in imports %} |
| 23 #include "{{import.module.path}}.h" | 25 #include "{{import.module.path}}.h" |
| 24 {%- endfor %} | 26 {%- endfor %} |
| 25 | 27 |
| 26 {%- for namespace in namespaces_as_array %} | 28 {%- for namespace in namespaces_as_array %} |
| 27 namespace {{namespace}} { | 29 namespace {{namespace}} { |
| 28 {%- endfor %} | 30 {%- endfor %} |
| 29 | 31 |
| 30 {#--- Constants #} | 32 {#--- Constants #} |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 {% for union in unions %} | 125 {% for union in unions %} |
| 124 {{ serialization_macros.declare_serialization(union.name) }} | 126 {{ serialization_macros.declare_serialization(union.name) }} |
| 125 {%- endfor %} | 127 {%- endfor %} |
| 126 {%- endif %} | 128 {%- endif %} |
| 127 | 129 |
| 128 {%- for namespace in namespaces_as_array|reverse %} | 130 {%- for namespace in namespaces_as_array|reverse %} |
| 129 } // namespace {{namespace}} | 131 } // namespace {{namespace}} |
| 130 {%- endfor %} | 132 {%- endfor %} |
| 131 | 133 |
| 132 #endif // {{header_guard}} | 134 #endif // {{header_guard}} |
| OLD | NEW |