Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 {#- TODO(vardhan): This template produces crazy amounts of whitespace. Clean
2 this stuff up (it involves digging through all the templates included here. -#}
3 {%- import "struct_macros.tmpl" as struct_macros %}
4 {%- import "interface_macros.tmpl" as interface_macros -%}
5 {%- set header_guard = "%s_H_"|
6 format(module.path|upper|replace("/","_")|replace(".","_")) -%}
7
8 // NOTE: This file was generated by the Mojo bindings generator.
9 #ifndef {{header_guard}}
10 #define {{header_guard}}
11
12 #include <iosfwd>
13 #include <stdint.h>
14
15 #include "mojo/public/cpp/bindings/array.h"
16 #include "mojo/public/cpp/bindings/callback.h"
17 #include "mojo/public/cpp/bindings/interface_ptr.h"
18 #include "mojo/public/cpp/bindings/interface_handle.h"
19 #include "mojo/public/cpp/bindings/interface_request.h"
20 #include "mojo/public/cpp/bindings/lib/control_message_handler.h"
21 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h"
22 #include "mojo/public/cpp/bindings/map.h"
23 #include "mojo/public/cpp/bindings/message_validator.h"
24 #include "mojo/public/cpp/bindings/no_interface.h"
25 #include "mojo/public/cpp/bindings/string.h"
26 #include "mojo/public/cpp/bindings/struct_ptr.h"
27 #include "mojo/public/cpp/system/buffer.h"
28 #include "mojo/public/cpp/system/data_pipe.h"
29 #include "mojo/public/cpp/system/handle.h"
30 #include "mojo/public/cpp/system/message_pipe.h"
31 #include "{{module.path}}-common.h"
32 {%- for import in imports %}
33 #include "{{import.module.path}}.h"
34 {%- endfor %}
35
36 {%- for namespace in namespaces_as_array %}
37 namespace {{namespace}} {
38 {%- endfor %}
39
40 // --- Interface Forward Declarations ---
41 {% for interface in interfaces %}
42 using {{interface.name}}Ptr = mojo::InterfacePtr<{{interface.name}}>;
43 {% endfor %}
44
45 // --- Interface Proxies ---
46 {% for interface in interfaces %}
47 {% include "interface_proxy_declaration.tmpl" %}
48 {%- endfor %}
49
50 // --- Interface Stubs ---
51 {% for interface in interfaces %}
52 {% include "interface_stub_declaration.tmpl" %}
53 {%- endfor %}
54
55 {%- for namespace in namespaces_as_array|reverse %}
56 } // namespace {{namespace}}
57 {%- endfor %}
58
59 #endif // {{header_guard}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698