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 UtilityPrintingMsgStart | 21 #define IPC_MESSAGE_START ChromeUtilityPrintingMsgStart |
22 | 22 |
23 IPC_STRUCT_TRAITS_BEGIN(printing::PageRange) | 23 IPC_STRUCT_TRAITS_BEGIN(printing::PageRange) |
24 IPC_STRUCT_TRAITS_MEMBER(from) | 24 IPC_STRUCT_TRAITS_MEMBER(from) |
25 IPC_STRUCT_TRAITS_MEMBER(to) | 25 IPC_STRUCT_TRAITS_MEMBER(to) |
26 IPC_STRUCT_TRAITS_END() | 26 IPC_STRUCT_TRAITS_END() |
27 | 27 |
28 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults) | 28 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults) |
29 IPC_STRUCT_TRAITS_MEMBER(printer_capabilities) | 29 IPC_STRUCT_TRAITS_MEMBER(printer_capabilities) |
30 IPC_STRUCT_TRAITS_MEMBER(caps_mime_type) | 30 IPC_STRUCT_TRAITS_MEMBER(caps_mime_type) |
31 IPC_STRUCT_TRAITS_MEMBER(printer_defaults) | 31 IPC_STRUCT_TRAITS_MEMBER(printer_defaults) |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 #if defined(WIN_PDF_METAFILE_FOR_PRINTING) | 142 #if defined(WIN_PDF_METAFILE_FOR_PRINTING) |
143 // Reply when the utility process has succeeded in rendering the PDF. | 143 // Reply when the utility process has succeeded in rendering the PDF. |
144 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_Succeeded, | 144 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_Succeeded, |
145 std::vector<printing::PageRange>, // Pages rendered | 145 std::vector<printing::PageRange>, // Pages rendered |
146 double) // Scale factor | 146 double) // Scale factor |
147 | 147 |
148 // Reply when an error occurred rendering the PDF. | 148 // Reply when an error occurred rendering the PDF. |
149 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) | 149 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) |
150 #endif | 150 #endif |
OLD | NEW |