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

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

Issue 272323003: Mojo: Implement support for |Foo&| mojom syntax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
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/interface_impl.h" 13 #include "mojo/public/cpp/bindings/interface_impl.h"
14 #include "mojo/public/cpp/bindings/interface_ptr.h" 14 #include "mojo/public/cpp/bindings/interface_ptr.h"
15 #include "mojo/public/cpp/bindings/interface_request.h"
15 #include "mojo/public/cpp/bindings/message_filter.h" 16 #include "mojo/public/cpp/bindings/message_filter.h"
16 #include "mojo/public/cpp/bindings/no_interface.h" 17 #include "mojo/public/cpp/bindings/no_interface.h"
17 #include "mojo/public/cpp/bindings/string.h" 18 #include "mojo/public/cpp/bindings/string.h"
18 #include "mojo/public/cpp/bindings/struct_ptr.h" 19 #include "mojo/public/cpp/bindings/struct_ptr.h"
19 #include "{{module.path}}-internal.h" 20 #include "{{module.path}}-internal.h"
20 {%- for import in imports %} 21 {%- for import in imports %}
21 #include "{{import.module.path}}.h" 22 #include "{{import.module.path}}.h"
22 {%- endfor %} 23 {%- endfor %}
23 24
24 {%- for namespace in namespaces_as_array %} 25 {%- for namespace in namespaces_as_array %}
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 {% for struct in structs %} 99 {% for struct in structs %}
99 {% include "struct_serialization_declaration.tmpl" %} 100 {% include "struct_serialization_declaration.tmpl" %}
100 {%- endfor %} 101 {%- endfor %}
101 {%- endif %} 102 {%- endif %}
102 103
103 {%- for namespace in namespaces_as_array|reverse %} 104 {%- for namespace in namespaces_as_array|reverse %}
104 } // namespace {{namespace}} 105 } // namespace {{namespace}}
105 {%- endfor %} 106 {%- endfor %}
106 107
107 #endif // {{header_guard}} 108 #endif // {{header_guard}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698