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

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

Issue 1816703002: Mojo C++ bindings: assume that all imported mojoms have the same variant as current mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 17 matching lines...) Expand all
28 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" 28 #include "mojo/public/cpp/bindings/lib/control_message_handler.h"
29 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" 29 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h"
30 #include "mojo/public/cpp/bindings/lib/serialization.h" 30 #include "mojo/public/cpp/bindings/lib/serialization.h"
31 #include "mojo/public/cpp/bindings/map.h" 31 #include "mojo/public/cpp/bindings/map.h"
32 #include "mojo/public/cpp/bindings/message_filter.h" 32 #include "mojo/public/cpp/bindings/message_filter.h"
33 #include "mojo/public/cpp/bindings/no_interface.h" 33 #include "mojo/public/cpp/bindings/no_interface.h"
34 #include "mojo/public/cpp/bindings/struct_ptr.h" 34 #include "mojo/public/cpp/bindings/struct_ptr.h"
35 #include "mojo/public/cpp/bindings/struct_traits.h" 35 #include "mojo/public/cpp/bindings/struct_traits.h"
36 #include "{{variant_path}}-internal.h" 36 #include "{{variant_path}}-internal.h"
37 {%- for import in imports %} 37 {%- for import in imports %}
38 {%- if variant %}
39 #include "{{"%s-%s.h"|format(import.module.path, variant)}}"
40 {%- else %}
38 #include "{{import.module.path}}.h" 41 #include "{{import.module.path}}.h"
42 {%- endif %}
39 {%- endfor %} 43 {%- endfor %}
40 {%- if not for_blink %} 44 {%- if not for_blink %}
41 #include "mojo/public/cpp/bindings/array.h" 45 #include "mojo/public/cpp/bindings/array.h"
42 #include "mojo/public/cpp/bindings/string.h" 46 #include "mojo/public/cpp/bindings/string.h"
43 {%- else %} 47 {%- else %}
44 #include "mojo/public/cpp/bindings/wtf_array.h" 48 #include "mojo/public/cpp/bindings/wtf_array.h"
45 #include "third_party/WebKit/Source/wtf/text/WTFString.h" 49 #include "third_party/WebKit/Source/wtf/text/WTFString.h"
46 {%- endif %} 50 {%- endif %}
47 51
48 {%- for namespace in namespaces_as_array %} 52 {%- for namespace in namespaces_as_array %}
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 {%- endfor %} 189 {%- endfor %}
186 190
187 {%- if variant %} 191 {%- if variant %}
188 } // namespace {{variant}} 192 } // namespace {{variant}}
189 {%- endif %} 193 {%- endif %}
190 {%- for namespace in namespaces_as_array|reverse %} 194 {%- for namespace in namespaces_as_array|reverse %}
191 } // namespace {{namespace}} 195 } // namespace {{namespace}}
192 {%- endfor %} 196 {%- endfor %}
193 197
194 #endif // {{header_guard}} 198 #endif // {{header_guard}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698