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

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

Issue 2225673002: Support exporting Mojo bindings for the component build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win_clang 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
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 {%- if variant -%} 5 {%- if variant -%}
6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} 6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%}
7 {%- else -%} 7 {%- else -%}
8 {%- set variant_path = module.path -%} 8 {%- set variant_path = module.path -%}
9 {%- endif -%} 9 {%- endif -%}
10 10
(...skipping 11 matching lines...) Expand all
22 #include "mojo/public/cpp/bindings/struct_ptr.h" 22 #include "mojo/public/cpp/bindings/struct_ptr.h"
23 23
24 {%- for import in imports %} 24 {%- for import in imports %}
25 {%- if variant %} 25 {%- if variant %}
26 #include "{{"%s-%s-internal.h"|format(import.module.path, variant)}}" 26 #include "{{"%s-%s-internal.h"|format(import.module.path, variant)}}"
27 {%- else %} 27 {%- else %}
28 #include "{{import.module.path}}-internal.h" 28 #include "{{import.module.path}}-internal.h"
29 {%- endif %} 29 {%- endif %}
30 {%- endfor %} 30 {%- endfor %}
31 31
32 {%- if export_header %}
33 #include "{{export_header}}"
34 {%- endif %}
35
32 namespace mojo { 36 namespace mojo {
33 namespace internal { 37 namespace internal {
34 class ValidationContext; 38 class ValidationContext;
35 } 39 }
36 } 40 }
37 41
38 {%- for namespace in namespaces_as_array %} 42 {%- for namespace in namespaces_as_array %}
39 namespace {{namespace}} { 43 namespace {{namespace}} {
40 {%- endfor %} 44 {%- endfor %}
41 {%- if variant %} 45 {%- if variant %}
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 121
118 } // namespace internal 122 } // namespace internal
119 {%- if variant %} 123 {%- if variant %}
120 } // namespace {{variant}} 124 } // namespace {{variant}}
121 {%- endif %} 125 {%- endif %}
122 {%- for namespace in namespaces_as_array|reverse %} 126 {%- for namespace in namespaces_as_array|reverse %}
123 } // namespace {{namespace}} 127 } // namespace {{namespace}}
124 {%- endfor %} 128 {%- endfor %}
125 129
126 #endif // {{header_guard}} 130 #endif // {{header_guard}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698