| 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/bindings/array.h" | 11 #include "mojo/public/cpp/bindings/array.h" |
| 12 #include "mojo/public/bindings/callback.h" | 12 #include "mojo/public/cpp/bindings/callback.h" |
| 13 #include "mojo/public/bindings/interface.h" | 13 #include "mojo/public/cpp/bindings/interface.h" |
| 14 #include "{{module.path}}-internal.h" | 14 #include "{{module.path}}-internal.h" |
| 15 {%- for import in imports %} | 15 {%- for import in imports %} |
| 16 #include "{{import.module.path}}.h" | 16 #include "{{import.module.path}}.h" |
| 17 {%- endfor %} | 17 {%- endfor %} |
| 18 | 18 |
| 19 namespace {{namespace}} { | 19 namespace {{namespace}} { |
| 20 | 20 |
| 21 {#--- Enums #} | 21 {#--- Enums #} |
| 22 {% for enum in enums %} | 22 {% for enum in enums %} |
| 23 {% include "enum_declaration.tmpl" %} | 23 {% include "enum_declaration.tmpl" %} |
| (...skipping 15 matching lines...) Expand all Loading... |
| 39 {%- endfor %} | 39 {%- endfor %} |
| 40 | 40 |
| 41 {#--- Interface Stubs -#} | 41 {#--- Interface Stubs -#} |
| 42 {% for interface in interfaces %} | 42 {% for interface in interfaces %} |
| 43 {% include "interface_stub_declaration.tmpl" %} | 43 {% include "interface_stub_declaration.tmpl" %} |
| 44 {%- endfor %} | 44 {%- endfor %} |
| 45 | 45 |
| 46 } // namespace {{namespace}} | 46 } // namespace {{namespace}} |
| 47 | 47 |
| 48 #endif // {{header_guard}} | 48 #endif // {{header_guard}} |
| OLD | NEW |