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" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
114 // Reply when the utility process has failed to obtain the printer | 114 // Reply when the utility process has failed to obtain the printer |
115 // semantic capabilities and defaults. | 115 // semantic capabilities and defaults. |
116 IPC_MESSAGE_CONTROL1( | 116 IPC_MESSAGE_CONTROL1( |
117 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed, | 117 ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed, |
118 std::string /* printer name */) | 118 std::string /* printer name */) |
119 | 119 |
120 #endif // ENABLE_FULL_PRINTING | 120 #endif // ENABLE_FULL_PRINTING |
121 | 121 |
122 #if defined(OS_WIN) | 122 #if defined(OS_WIN) |
123 // Tell the utility process to render the given PDF into a metafile. | 123 // Tell the utility process to render the given PDF into a metafile. |
124 // The metafile path will have ".%d" inserted where the %d is the page number. | 124 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles, |
Lei Zhang
2014/09/15 21:49:53
BTW, this should go in the "Utility process messag
Vitaly Buka (NO REVIEWS)
2014/09/15 22:33:50
Done.
| |
125 // If no page range is specified, all pages will be converted. | 125 IPC::PlatformFileForTransit, /* input_file */ |
126 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafiles, | 126 printing::PdfRenderSettings /* settings */) |
127 IPC::PlatformFileForTransit, // PDF file | |
128 base::FilePath, // Base location for output metafile | |
129 printing::PdfRenderSettings, // PDF render settings | |
130 std::vector<printing::PageRange>) | |
131 | 127 |
132 // Reply when the utility process has succeeded in rendering the PDF. | 128 // Reply when the utility process has succeeded in rendering the PDF page. |
133 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_Succeeded, | 129 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageCount, |
134 std::vector<printing::PageRange>, // Pages rendered | 130 int /* page_count */) |
135 double) // Scale factor | |
136 | 131 |
137 // Reply when an error occurred rendering the PDF. | 132 // Requests conversion of the next page. |
138 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) | 133 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_GetPage, |
Lei Zhang
2014/09/15 21:49:53
This should be a ChromeUtilityMsg and go in the ab
Vitaly Buka (NO REVIEWS)
2014/09/15 22:33:50
Done.
| |
134 int /* page_number */, | |
135 IPC::PlatformFileForTransit /* output_file */) | |
139 | 136 |
137 // Reply when the utility process has succeeded in rendering the PDF page. | |
138 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone, | |
139 bool /* success */, | |
140 double /* scale_factor */) | |
140 #endif // OS_WIN | 141 #endif // OS_WIN |
OLD | NEW |