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

Unified Diff: components/printing/common/print_messages.cc

Issue 857053002: Generate the print messages in components/printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed dedicated component generators Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/printing/common/print_messages.h ('k') | printing/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/common/print_messages.cc
diff --git a/components/printing/common/print_messages.cc b/components/printing/common/print_messages.cc
index 3a5cddded102749d22f36d730bda39e1a369b0d1..349cb511f11b5fcd484ffa49ef544df7f54bc505 100644
--- a/components/printing/common/print_messages.cc
+++ b/components/printing/common/print_messages.cc
@@ -2,7 +2,36 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+//#include "components/printing/common/print_messages.h"
Bernhard Bauer 2015/01/22 09:30:12 Nit: remove this comment.
dgn 2015/01/22 14:27:14 Done.
+
+#define IPC_MESSAGE_IMPL
Bernhard Bauer 2015/01/22 09:30:12 Nit: I think I would move the generators to the bo
dgn 2015/01/22 14:27:14 Done. Both styles seem to be used (https://code.
+#include "components/printing/common/print_messages.h"
+
+// Generate constructors.
+#include "ipc/struct_constructor_macros.h"
+#include "components/printing/common/print_messages.h"
+
+// Generate destructors.
+#include "ipc/struct_destructor_macros.h"
+#include "components/printing/common/print_messages.h"
+
+// Generate param traits write methods.
+#include "ipc/param_traits_write_macros.h"
+namespace IPC {
+#include "components/printing/common/print_messages.h"
+} // namespace IPC
+
+// Generate param traits read methods.
+#include "ipc/param_traits_read_macros.h"
+namespace IPC {
+#include "components/printing/common/print_messages.h"
+} // namespace IPC
+
+// Generate param traits log methods.
+#include "ipc/param_traits_log_macros.h"
+namespace IPC {
#include "components/printing/common/print_messages.h"
+} // namespace IPC
#include "base/basictypes.h"
#include "base/strings/string16.h"
« no previous file with comments | « components/printing/common/print_messages.h ('k') | printing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698