OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Multiply-included message file, so no include guard. | 5 // Multiply-included message file, so no include guard. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
11 #include "ipc/ipc_platform_file.h" | 11 #include "ipc/ipc_platform_file.h" |
12 #include "printing/backend/print_backend.h" | 12 #include "printing/backend/print_backend.h" |
13 #include "printing/page_range.h" | 13 #include "printing/page_range.h" |
14 #include "printing/pdf_render_settings.h" | 14 #include "printing/pdf_render_settings.h" |
15 #include "printing/pwg_raster_settings.h" | 15 #include "printing/pwg_raster_settings.h" |
16 | 16 |
17 #if !defined(ENABLE_FULL_PRINTING) | 17 #if !defined(ENABLE_FULL_PRINTING) |
18 #error "Full printing must be enabled" | 18 #error "Full printing must be enabled" |
19 #endif | 19 #endif |
20 | 20 |
21 #define IPC_MESSAGE_START ChromeUtilityPrintingMsgStart | 21 #define IPC_MESSAGE_START ChromeUtilityPrintingMsgStart |
22 | 22 |
23 IPC_STRUCT_TRAITS_BEGIN(printing::PageRange) | |
24 IPC_STRUCT_TRAITS_MEMBER(from) | |
25 IPC_STRUCT_TRAITS_MEMBER(to) | |
26 IPC_STRUCT_TRAITS_END() | |
27 | |
28 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults) | 23 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults) |
29 IPC_STRUCT_TRAITS_MEMBER(printer_capabilities) | 24 IPC_STRUCT_TRAITS_MEMBER(printer_capabilities) |
30 IPC_STRUCT_TRAITS_MEMBER(caps_mime_type) | 25 IPC_STRUCT_TRAITS_MEMBER(caps_mime_type) |
31 IPC_STRUCT_TRAITS_MEMBER(printer_defaults) | 26 IPC_STRUCT_TRAITS_MEMBER(printer_defaults) |
32 IPC_STRUCT_TRAITS_MEMBER(defaults_mime_type) | 27 IPC_STRUCT_TRAITS_MEMBER(defaults_mime_type) |
33 IPC_STRUCT_TRAITS_END() | 28 IPC_STRUCT_TRAITS_END() |
34 | 29 |
35 IPC_ENUM_TRAITS_MAX_VALUE(printing::ColorModel, printing::PROCESSCOLORMODEL_RGB) | 30 IPC_ENUM_TRAITS_MAX_VALUE(printing::ColorModel, printing::PROCESSCOLORMODEL_RGB) |
36 IPC_ENUM_TRAITS_MIN_MAX_VALUE(printing::DuplexMode, | |
37 printing::UNKNOWN_DUPLEX_MODE, | |
38 printing::SHORT_EDGE) | |
39 | 31 |
40 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterSemanticCapsAndDefaults::Paper) | 32 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterSemanticCapsAndDefaults::Paper) |
41 IPC_STRUCT_TRAITS_MEMBER(display_name) | 33 IPC_STRUCT_TRAITS_MEMBER(display_name) |
42 IPC_STRUCT_TRAITS_MEMBER(vendor_id) | 34 IPC_STRUCT_TRAITS_MEMBER(vendor_id) |
43 IPC_STRUCT_TRAITS_MEMBER(size_um) | 35 IPC_STRUCT_TRAITS_MEMBER(size_um) |
44 IPC_STRUCT_TRAITS_END() | 36 IPC_STRUCT_TRAITS_END() |
45 | 37 |
46 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterSemanticCapsAndDefaults) | 38 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterSemanticCapsAndDefaults) |
47 IPC_STRUCT_TRAITS_MEMBER(collate_capable) | 39 IPC_STRUCT_TRAITS_MEMBER(collate_capable) |
48 IPC_STRUCT_TRAITS_MEMBER(collate_default) | 40 IPC_STRUCT_TRAITS_MEMBER(collate_default) |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 133 |
142 #if defined(WIN_PDF_METAFILE_FOR_PRINTING) | 134 #if defined(WIN_PDF_METAFILE_FOR_PRINTING) |
143 // Reply when the utility process has succeeded in rendering the PDF. | 135 // Reply when the utility process has succeeded in rendering the PDF. |
144 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_Succeeded, | 136 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_Succeeded, |
145 std::vector<printing::PageRange>, // Pages rendered | 137 std::vector<printing::PageRange>, // Pages rendered |
146 double) // Scale factor | 138 double) // Scale factor |
147 | 139 |
148 // Reply when an error occurred rendering the PDF. | 140 // Reply when an error occurred rendering the PDF. |
149 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) | 141 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) |
150 #endif | 142 #endif |
OLD | NEW |