| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 {%- set header_guard = "%s_H_"| | |
| 6 format(module.path|upper|replace("/","_")|replace(".","_")) %} | |
| 7 | |
| 8 #ifndef {{header_guard}} | |
| 9 #define {{header_guard}} | |
| 10 | |
| 11 #include "mojo/public/cpp/bindings/array.h" | |
| 12 #include "mojo/public/cpp/bindings/callback.h" | |
| 13 #include "mojo/public/cpp/bindings/interface.h" | |
| 14 #include "{{module.path}}-internal.h" | |
| 15 {%- for import in imports %} | |
| 16 #include "{{import.module.path}}.h" | |
| 17 {%- endfor %} | |
| 18 | |
| 19 {%- if namespace %} | |
| 20 namespace {{namespace}} { | |
| 21 {%- endif %} | |
| 22 | |
| 23 {#--- Enums #} | |
| 24 {% for enum in enums %} | |
| 25 {% include "enum_declaration.tmpl" %} | |
| 26 {%- endfor %} | |
| 27 | |
| 28 {#--- Structs #} | |
| 29 {% for struct in structs %} | |
| 30 {% include "wrapper_class_declaration.tmpl" %} | |
| 31 {%- endfor %} | |
| 32 | |
| 33 {#--- Interfaces -#} | |
| 34 {% for interface in interfaces %} | |
| 35 {% include "interface_declaration.tmpl" %} | |
| 36 {%- endfor %} | |
| 37 | |
| 38 {#--- Interface Proxies -#} | |
| 39 {% for interface in interfaces %} | |
| 40 {% include "interface_proxy_declaration.tmpl" %} | |
| 41 {%- endfor %} | |
| 42 | |
| 43 {#--- Interface Stubs -#} | |
| 44 {% for interface in interfaces %} | |
| 45 {% include "interface_stub_declaration.tmpl" %} | |
| 46 {%- endfor %} | |
| 47 | |
| 48 {%- if namespace %} | |
| 49 } // namespace {{namespace}} | |
| 50 {%- endif %} | |
| 51 | |
| 52 #endif // {{header_guard}} | |
| OLD | NEW |