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 %} |
42 {%- if variant %} | 41 {%- if variant %} |
43 #include "{{module.path}}.h" | 42 #include "{{module.path}}.h" |
44 {%- endif %} | 43 {%- endif %} |
| 44 {%- if not for_blink %} |
| 45 #include "mojo/public/cpp/bindings/string.h" |
| 46 {%- else %} |
| 47 #include "third_party/WebKit/Source/wtf/text/WTFString.h" |
| 48 {%- endif %} |
45 | 49 |
46 {%- for namespace in namespaces_as_array %} | 50 {%- for namespace in namespaces_as_array %} |
47 namespace {{namespace}} { | 51 namespace {{namespace}} { |
48 {%- endfor %} | 52 {%- endfor %} |
49 {%- if variant %} | 53 {%- if variant %} |
50 namespace {{variant}} { | 54 namespace {{variant}} { |
51 {%- endif %} | 55 {%- endif %} |
52 | 56 |
53 {#--- Enums #} | 57 {#--- Enums #} |
54 {% from "enum_macros.tmpl" import enum_decl -%} | 58 {% from "enum_macros.tmpl" import enum_decl -%} |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 {%- endfor %} | 187 {%- endfor %} |
184 | 188 |
185 {%- if variant %} | 189 {%- if variant %} |
186 } // namespace {{variant}} | 190 } // namespace {{variant}} |
187 {%- endif %} | 191 {%- endif %} |
188 {%- for namespace in namespaces_as_array|reverse %} | 192 {%- for namespace in namespaces_as_array|reverse %} |
189 } // namespace {{namespace}} | 193 } // namespace {{namespace}} |
190 {%- endfor %} | 194 {%- endfor %} |
191 | 195 |
192 #endif // {{header_guard}} | 196 #endif // {{header_guard}} |
OLD | NEW |