1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Singly or multiply-included shared traits file depending on circumstances.
6 // This allows the use of printing IPC serialization macros in more than one IPC
8 #ifndef COMPONENTS_PRINTING_COMMON_PRINTING_PARAM_TRAITS_MACROS_H_
9 #define COMPONENTS_PRINTING_COMMON_PRINTING_PARAM_TRAITS_MACROS_H_
11 #include "ipc/ipc_message_macros.h"
12 #include "printing/print_job_constants.h"
14 // TODO(dgn) move all those macros back to
15 // components/printing/common/print_messages.h when they can be handled by a
16 // single generator. (main tracking bug: crbug.com/450822)
17 IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType
,
18 printing::MARGIN_TYPE_LAST
)
19 IPC_ENUM_TRAITS_MIN_MAX_VALUE(printing::DuplexMode
,
20 printing::UNKNOWN_DUPLEX_MODE
,
23 #endif // COMPONENTS_PRINTING_COMMON_PRINTING_PARAM_TRAITS_MACROS_H_