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 "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults, | 92 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults, |
93 std::string /* printer name */) | 93 std::string /* printer name */) |
94 #endif // ENABLE_PRINT_PREVIEW | 94 #endif // ENABLE_PRINT_PREVIEW |
95 | 95 |
96 // Windows uses messages for printing even without preview. crbug.com/170859 | 96 // Windows uses messages for printing even without preview. crbug.com/170859 |
97 // Primary user of Windows without preview is CEF. crbug.com/417967 | 97 // Primary user of Windows without preview is CEF. crbug.com/417967 |
98 #if BUILDFLAG(ENABLE_PRINTING) && defined(OS_WIN) | 98 #if BUILDFLAG(ENABLE_PRINTING) && defined(OS_WIN) |
99 // Tell the utility process to start rendering the given PDF into a metafile. | 99 // Tell the utility process to start rendering the given PDF into a metafile. |
100 // Utility process would be alive until | 100 // Utility process would be alive until |
101 // ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop message. | 101 // ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop message. |
102 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_RenderPDFPagesToMetafiles, | 102 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles, |
103 IPC::PlatformFileForTransit /* input_file */, | 103 IPC::PlatformFileForTransit /* input_file */, |
104 printing::PdfRenderSettings /* settings */, | 104 printing::PdfRenderSettings /* settings */) |
105 bool /* print_text_with_gdi */) | |
106 | 105 |
107 // Requests conversion of the next page. | 106 // Requests conversion of the next page. |
108 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage, | 107 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage, |
109 int /* page_number */, | 108 int /* page_number */, |
110 IPC::PlatformFileForTransit /* output_file */) | 109 IPC::PlatformFileForTransit /* output_file */) |
111 | 110 |
112 // Requests utility process to stop conversion and exit. | 111 // Requests utility process to stop conversion and exit. |
113 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop) | 112 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop) |
114 #endif // ENABLE_PRINTING && OS_WIN | 113 |
| 114 // Tell the utility process to start rendering the given PDF into PS. |
| 115 // Utility process would be alive until |
| 116 // ChromeUtilityMsg_RenderPDFPagesToPostScript_Stop message. |
| 117 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToPostScript_Start, |
| 118 IPC::PlatformFileForTransit /* input_file */, |
| 119 printing::PdfRenderSettings /* settings */) |
| 120 |
| 121 // Requests conversion of the next page. |
| 122 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToPostScript_GetPage, |
| 123 int /* page_number */, |
| 124 IPC::PlatformFileForTransit /* output_file */) |
| 125 |
| 126 // Requests utility process to stop conversion and exit. |
| 127 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToPostScript_Stop) |
| 128 #endif // BUILDFLAG(ENABLE_PRINTING) && defined(OS_WIN) |
115 | 129 |
116 //------------------------------------------------------------------------------ | 130 //------------------------------------------------------------------------------ |
117 // Utility process host messages: | 131 // Utility process host messages: |
118 // These are messages from the utility process to the browser. | 132 // These are messages from the utility process to the browser. |
119 | 133 |
120 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 134 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
121 // Reply when the utility process has succeeded in rendering the PDF to PWG. | 135 // Reply when the utility process has succeeded in rendering the PDF to PWG. |
122 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) | 136 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) |
123 | 137 |
124 // Reply when an error occurred rendering the PDF to PWG. | 138 // Reply when an error occurred rendering the PDF to PWG. |
(...skipping 28 matching lines...) Expand all Loading... |
153 // Reply when the utility process loaded PDF. |page_count| is 0, if loading | 167 // Reply when the utility process loaded PDF. |page_count| is 0, if loading |
154 // failed. | 168 // failed. |
155 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageCount, | 169 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageCount, |
156 int /* page_count */) | 170 int /* page_count */) |
157 | 171 |
158 // Reply when the utility process rendered the PDF page. | 172 // Reply when the utility process rendered the PDF page. |
159 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone, | 173 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone, |
160 bool /* success */, | 174 bool /* success */, |
161 float /* scale_factor */) | 175 float /* scale_factor */) |
162 | 176 |
| 177 // Reply when the utility process loaded PDF. |page_count| is 0, if loading |
| 178 // failed. |
| 179 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToPostScript_PageCount, |
| 180 int /* page_count */) |
| 181 |
| 182 // Reply when the utility process rendered the PDF page. |
| 183 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToPostScript_PageDone, |
| 184 bool /* success */) |
| 185 |
163 // Request that the given font characters be loaded by the browser so it's | 186 // Request that the given font characters be loaded by the browser so it's |
164 // cached by the OS. Please see | 187 // cached by the OS. Please see |
165 // PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details. | 188 // PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details. |
166 IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters, | 189 IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters, |
167 LOGFONT /* font_data */, | 190 LOGFONT /* font_data */, |
168 base::string16 /* characters */) | 191 base::string16 /* characters */) |
169 | 192 |
170 #endif // ENABLE_PRINTING && OS_WIN | 193 #endif // ENABLE_PRINTING && OS_WIN |
OLD | NEW |