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

Unified Diff: mojo/public/bindings/generators/cpp_templates/module.cc-template

Issue 65933002: Mojo: Unify the disparate source and header files into 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mistaken /n's Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/bindings/generators/cpp_templates/module.cc-template
diff --git a/mojo/public/bindings/generators/cpp_templates/module.cc-template b/mojo/public/bindings/generators/cpp_templates/module.cc-template
new file mode 100644
index 0000000000000000000000000000000000000000..9c071875d406905e972a0a351febe33821fcce79
--- /dev/null
+++ b/mojo/public/bindings/generators/cpp_templates/module.cc-template
@@ -0,0 +1,39 @@
+// Copyright $YEAR The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "$HEADER"
+
+#include "mojo/public/bindings/lib/message_builder.h"
+#include "$INTERNAL_HEADER"
+
+namespace sample {
+namespace {
+
+#pragma pack(push, 1)
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-private-field"
+#endif
+$PARAM_DEFINITIONS
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
+#pragma pack(pop)
+
+} // namespace
+
+$STRUCT_DEFINITIONS
+
+$INTERFACE_DEFINITIONS
+} // namespace sample
+
+namespace mojo {
+namespace internal {
+
+$STRUCT_SERIALIZATION_DEFINITIONS
+
+$INTERFACE_SERIALIZATION_DEFINITIONS
+
+} // namespace internal
+} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698