Index: printing/printing_param_traits_macros.h |
diff --git a/printing/printing_param_traits_macros.h b/printing/printing_param_traits_macros.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..354d043b811ac8892acf87163aadc6495d6f9df8 |
--- /dev/null |
+++ b/printing/printing_param_traits_macros.h |
@@ -0,0 +1,20 @@ |
+// Copyright 2015 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. |
+ |
+// 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 PRINTING_PRINTING_PARAM_TRAITS_MACROS_H_ |
+#define PRINTING_PRINTING_PARAM_TRAITS_MACROS_H_ |
+ |
+#include "printing/print_job_constants.h" |
+#include "ipc/ipc_message_macros.h" |
+ |
+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 // PRINTING_PRINTING_PARAM_TRAITS_MACROS_H_ |