OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 #include "mojo/public/cpp/bindings/associated_interface_request.h" | 25 #include "mojo/public/cpp/bindings/associated_interface_request.h" |
26 #include "mojo/public/cpp/bindings/callback.h" | 26 #include "mojo/public/cpp/bindings/callback.h" |
27 #include "mojo/public/cpp/bindings/interface_ptr.h" | 27 #include "mojo/public/cpp/bindings/interface_ptr.h" |
28 #include "mojo/public/cpp/bindings/interface_request.h" | 28 #include "mojo/public/cpp/bindings/interface_request.h" |
29 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" | 29 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" |
30 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" | 30 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" |
31 #include "mojo/public/cpp/bindings/lib/serialization.h" | 31 #include "mojo/public/cpp/bindings/lib/serialization.h" |
32 #include "mojo/public/cpp/bindings/map.h" | 32 #include "mojo/public/cpp/bindings/map.h" |
33 #include "mojo/public/cpp/bindings/message_filter.h" | 33 #include "mojo/public/cpp/bindings/message_filter.h" |
34 #include "mojo/public/cpp/bindings/no_interface.h" | 34 #include "mojo/public/cpp/bindings/no_interface.h" |
35 #include "mojo/public/cpp/bindings/string.h" | |
36 #include "mojo/public/cpp/bindings/struct_ptr.h" | 35 #include "mojo/public/cpp/bindings/struct_ptr.h" |
37 #include "mojo/public/cpp/bindings/struct_traits.h" | 36 #include "mojo/public/cpp/bindings/struct_traits.h" |
38 #include "{{variant_path}}-internal.h" | 37 #include "{{variant_path}}-internal.h" |
39 {%- for import in imports %} | 38 {%- for import in imports %} |
40 #include "{{import.module.path}}.h" | 39 #include "{{import.module.path}}.h" |
41 {%- endfor %} | 40 {%- endfor %} |
| 41 {%- if not for_blink %} |
| 42 #include "mojo/public/cpp/bindings/string.h" |
| 43 {%- else %} |
| 44 #include "third_party/WebKit/Source/wtf/text/WTFString.h" |
| 45 {%- endif %} |
42 | 46 |
43 {%- for namespace in namespaces_as_array %} | 47 {%- for namespace in namespaces_as_array %} |
44 namespace {{namespace}} { | 48 namespace {{namespace}} { |
45 {%- endfor %} | 49 {%- endfor %} |
46 {%- if variant %} | 50 {%- if variant %} |
47 namespace {{variant}} { | 51 namespace {{variant}} { |
48 {%- endif %} | 52 {%- endif %} |
49 | 53 |
50 {#--- Enums #} | 54 {#--- Enums #} |
51 {% from "enum_macros.tmpl" import enum_decl -%} | 55 {% from "enum_macros.tmpl" import enum_decl -%} |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 {%- endfor %} | 184 {%- endfor %} |
181 | 185 |
182 {%- if variant %} | 186 {%- if variant %} |
183 } // namespace {{variant}} | 187 } // namespace {{variant}} |
184 {%- endif %} | 188 {%- endif %} |
185 {%- for namespace in namespaces_as_array|reverse %} | 189 {%- for namespace in namespaces_as_array|reverse %} |
186 } // namespace {{namespace}} | 190 } // namespace {{namespace}} |
187 {%- endfor %} | 191 {%- endfor %} |
188 | 192 |
189 #endif // {{header_guard}} | 193 #endif // {{header_guard}} |
OLD | NEW |