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

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

Issue 1765243002: Remove Mojo bindings environment. (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
« no previous file with comments | « mojo/public/interfaces/bindings/tests/BUILD.gn ('k') | mojo/public/tools/bindings/mojom.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
26 26
27 #include "base/logging.h" 27 #include "base/logging.h"
28 #include "base/trace_event/trace_event.h" 28 #include "base/trace_event/trace_event.h"
29 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" 29 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h"
30 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" 30 #include "mojo/public/cpp/bindings/lib/bounds_checker.h"
31 #include "mojo/public/cpp/bindings/lib/map_data_internal.h" 31 #include "mojo/public/cpp/bindings/lib/map_data_internal.h"
32 #include "mojo/public/cpp/bindings/lib/message_builder.h" 32 #include "mojo/public/cpp/bindings/lib/message_builder.h"
33 #include "mojo/public/cpp/bindings/lib/validate_params.h" 33 #include "mojo/public/cpp/bindings/lib/validate_params.h"
34 #include "mojo/public/cpp/bindings/lib/validation_errors.h" 34 #include "mojo/public/cpp/bindings/lib/validation_errors.h"
35 #include "mojo/public/cpp/bindings/lib/validation_util.h" 35 #include "mojo/public/cpp/bindings/lib/validation_util.h"
36 #include "mojo/public/cpp/environment/lib/scoped_task_tracking.h"
37 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h" 36 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
38 37
39 {%- for namespace in namespaces_as_array %} 38 {%- for namespace in namespaces_as_array %}
40 namespace {{namespace}} { 39 namespace {{namespace}} {
41 {%- endfor %} 40 {%- endfor %}
42 {%- if variant %} 41 {%- if variant %}
43 namespace {{variant}} { 42 namespace {{variant}} {
44 {%- endif %} 43 {%- endif %}
45 44
46 {#--- Constants #} 45 {#--- Constants #}
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 {%- endif %} 127 {%- endif %}
129 {%- for namespace in namespaces_as_array|reverse %} 128 {%- for namespace in namespaces_as_array|reverse %}
130 } // namespace {{namespace}} 129 } // namespace {{namespace}}
131 {%- endfor %} 130 {%- endfor %}
132 131
133 #if defined(__clang__) 132 #if defined(__clang__)
134 #pragma clang diagnostic pop 133 #pragma clang diagnostic pop
135 #elif defined(_MSC_VER) 134 #elif defined(_MSC_VER)
136 #pragma warning(pop) 135 #pragma warning(pop)
137 #endif 136 #endif
OLDNEW
« no previous file with comments | « mojo/public/interfaces/bindings/tests/BUILD.gn ('k') | mojo/public/tools/bindings/mojom.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698