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

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

Issue 2608513002: Remove mojo::String. (Closed)
Patch Set: rebase Created 3 years, 11 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #include "mojo/public/cpp/bindings/union_traits.h" 58 #include "mojo/public/cpp/bindings/union_traits.h"
59 #include "{{module.path}}-shared.h" 59 #include "{{module.path}}-shared.h"
60 {%- for import in imports %} 60 {%- for import in imports %}
61 {%- if variant %} 61 {%- if variant %}
62 #include "{{"%s-%s.h"|format(import.module.path, variant)}}" 62 #include "{{"%s-%s.h"|format(import.module.path, variant)}}"
63 {%- else %} 63 {%- else %}
64 #include "{{import.module.path}}.h" 64 #include "{{import.module.path}}.h"
65 {%- endif %} 65 {%- endif %}
66 {%- endfor %} 66 {%- endfor %}
67 {%- if not for_blink %} 67 {%- if not for_blink %}
68 #include <string>
68 #include "mojo/public/cpp/bindings/array.h" 69 #include "mojo/public/cpp/bindings/array.h"
69 #include "mojo/public/cpp/bindings/string.h"
70 {%- else %} 70 {%- else %}
71 {# hash_util.h includes template specializations that should be present for 71 {# hash_util.h includes template specializations that should be present for
72 every use of {Inlined}StructPtr. #} 72 every use of {Inlined}StructPtr. #}
73 #include "mojo/public/cpp/bindings/lib/wtf_hash_util.h" 73 #include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
74 #include "mojo/public/cpp/bindings/wtf_array.h" 74 #include "mojo/public/cpp/bindings/wtf_array.h"
75 #include "third_party/WebKit/Source/wtf/HashFunctions.h" 75 #include "third_party/WebKit/Source/wtf/HashFunctions.h"
76 #include "third_party/WebKit/Source/wtf/Optional.h" 76 #include "third_party/WebKit/Source/wtf/Optional.h"
77 #include "third_party/WebKit/Source/wtf/text/WTFString.h" 77 #include "third_party/WebKit/Source/wtf/text/WTFString.h"
78 {%- endif %} 78 {%- endif %}
79 79
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 {#--- Union Serialization Helpers -#} 221 {#--- Union Serialization Helpers -#}
222 {% if unions %} 222 {% if unions %}
223 {%- for union in unions %} 223 {%- for union in unions %}
224 {% include "union_traits_declaration.tmpl" %} 224 {% include "union_traits_declaration.tmpl" %}
225 {%- endfor %} 225 {%- endfor %}
226 {%- endif %} 226 {%- endif %}
227 227
228 } // namespace mojo 228 } // namespace mojo
229 229
230 #endif // {{header_guard}} 230 #endif // {{header_guard}}
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/wtf_types_unittest.cc ('k') | services/tracing/public/cpp/provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698