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

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

Issue 177183002: Mojo: Include "path/to/foo.mojom.h" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary abspath Created 6 years, 9 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
« no previous file with comments | « mojo/mojo_public.gypi ('k') | mojo/public/bindings/generators/cpp_templates/module.h.tmpl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = "MOJO_GENERATED_BINDINGS_%s_%s_INTERNAL_H_"| 5 {%- set header_guard = "%s_INTERNAL_H_"|
6 format(module_name|upper, module_name|upper) %} 6 format(module_name|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/lib/bindings_internal.h" 11 #include "mojo/public/bindings/lib/bindings_internal.h"
12 {%- for import in imports %} 12 {%- for import in imports %}
13 #include "{{include_prefix}}{{import.module_name|camel_to_underscores}}_internal .h" 13 #include "{{include_prefix}}{{import.module_name|camel_to_underscores}}-internal .h"
14 {%- endfor %} 14 {%- endfor %}
15 15
16 namespace {{namespace}} { 16 namespace {{namespace}} {
17 17
18 {#--- Wrapper forward declarations #} 18 {#--- Wrapper forward declarations #}
19 {% for struct in structs %} 19 {% for struct in structs %}
20 class {{struct.name}}; 20 class {{struct.name}};
21 {%- endfor %} 21 {%- endfor %}
22 22
23 namespace internal { 23 namespace internal {
24 24
25 #pragma pack(push, 1) 25 #pragma pack(push, 1)
26 26
27 {#--- Class declarations #} 27 {#--- Class declarations #}
28 {% for struct in structs %} 28 {% for struct in structs %}
29 {% include "struct_declaration.tmpl" %} 29 {% include "struct_declaration.tmpl" %}
30 {%- endfor %} 30 {%- endfor %}
31 31
32 #pragma pack(pop) 32 #pragma pack(pop)
33 33
34 } // namespace internal 34 } // namespace internal
35 } // namespace {{namespace}} 35 } // namespace {{namespace}}
36 36
37 #endif // {{header_guard}} 37 #endif // {{header_guard}}
OLDNEW
« no previous file with comments | « mojo/mojo_public.gypi ('k') | mojo/public/bindings/generators/cpp_templates/module.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698