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

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

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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/platform/native/system_thunks.cc ('k') | mojo/runner/android/android_handler.cc » ('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
11 #if defined(__clang__) 11 #if defined(__clang__)
12 #pragma clang diagnostic push 12 #pragma clang diagnostic push
13 #pragma clang diagnostic ignored "-Wunused-private-field" 13 #pragma clang diagnostic ignored "-Wunused-private-field"
14 #elif defined(_MSC_VER) 14 #elif defined(_MSC_VER)
15 #pragma warning(push) 15 #pragma warning(push)
16 #pragma warning(disable:4056) 16 #pragma warning(disable:4056)
17 #pragma warning(disable:4065) 17 #pragma warning(disable:4065)
18 #pragma warning(disable:4756) 18 #pragma warning(disable:4756)
19 #endif 19 #endif
20 20
21 #include "{{variant_path}}.h" 21 #include "{{variant_path}}.h"
22 22
23 #include <math.h> 23 #include <math.h>
24 #include <stdint.h>
24 25
25 #include "base/trace_event/trace_event.h" 26 #include "base/trace_event/trace_event.h"
26 #include "mojo/public/cpp/bindings/lib/array_serialization.h" 27 #include "mojo/public/cpp/bindings/lib/array_serialization.h"
27 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" 28 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h"
28 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" 29 #include "mojo/public/cpp/bindings/lib/bounds_checker.h"
29 #include "mojo/public/cpp/bindings/lib/map_data_internal.h" 30 #include "mojo/public/cpp/bindings/lib/map_data_internal.h"
30 #include "mojo/public/cpp/bindings/lib/map_serialization.h" 31 #include "mojo/public/cpp/bindings/lib/map_serialization.h"
31 #include "mojo/public/cpp/bindings/lib/message_builder.h" 32 #include "mojo/public/cpp/bindings/lib/message_builder.h"
32 #include "mojo/public/cpp/bindings/lib/native_serialization.h" 33 #include "mojo/public/cpp/bindings/lib/native_serialization.h"
33 #include "mojo/public/cpp/bindings/lib/string_serialization.h" 34 #include "mojo/public/cpp/bindings/lib/string_serialization.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 {%- endif %} 137 {%- endif %}
137 {%- for namespace in namespaces_as_array|reverse %} 138 {%- for namespace in namespaces_as_array|reverse %}
138 } // namespace {{namespace}} 139 } // namespace {{namespace}}
139 {%- endfor %} 140 {%- endfor %}
140 141
141 #if defined(__clang__) 142 #if defined(__clang__)
142 #pragma clang diagnostic pop 143 #pragma clang diagnostic pop
143 #elif defined(_MSC_VER) 144 #elif defined(_MSC_VER)
144 #pragma warning(pop) 145 #pragma warning(pop)
145 #endif 146 #endif
OLDNEW
« no previous file with comments | « mojo/public/platform/native/system_thunks.cc ('k') | mojo/runner/android/android_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698