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

Unified Diff: components/printing/common/printing_param_traits_macros.h

Issue 857053002: Generate the print messages in components/printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reorder imports 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/common/printing_param_traits_macros.h
diff --git a/components/printing/common/printing_param_traits_macros.h b/components/printing/common/printing_param_traits_macros.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ce6d9cb192cd0405d1ef7837668a075d8412d99
--- /dev/null
+++ b/components/printing/common/printing_param_traits_macros.h
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
dcheng 2015/01/27 18:36:57 Mind updating OWNERS to cover this file as well?
Vitaly Buka (NO REVIEWS) 2015/01/27 18:45:39 it's already there
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Singly or multiply-included shared traits file depending on circumstances.
+// This allows the use of printing IPC serialization macros in more than one IPC
+// message file.
+#ifndef COMPONENTS_PRINTING_COMMON_PRINTING_PARAM_TRAITS_MACROS_H_
+#define COMPONENTS_PRINTING_COMMON_PRINTING_PARAM_TRAITS_MACROS_H_
+
+#include "ipc/ipc_message_macros.h"
+#include "printing/print_job_constants.h"
+
+// TODO(dgn) move all those macros back to
+// components/printing/common/print_messages.h when they can be handled by a
+// single generator. (main tracking bug: crbug.com/450822)
+IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType,
+ printing::MARGIN_TYPE_LAST)
+IPC_ENUM_TRAITS_MIN_MAX_VALUE(printing::DuplexMode,
+ printing::UNKNOWN_DUPLEX_MODE,
+ printing::SHORT_EDGE)
+
+#endif // COMPONENTS_PRINTING_COMMON_PRINTING_PARAM_TRAITS_MACROS_H_
« no previous file with comments | « components/printing/common/print_messages.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698