Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1032)

Side by Side Diff: chrome/common/chrome_utility_printing_messages.h

Issue 2633573002: Add Postscript Printing (Closed)
Patch Set: Fix clang compile Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 14 matching lines...) Expand all
25 25
26 #define IPC_MESSAGE_START ChromeUtilityPrintingMsgStart 26 #define IPC_MESSAGE_START ChromeUtilityPrintingMsgStart
27 27
28 // Preview and Cloud Print messages. 28 // Preview and Cloud Print messages.
29 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 29 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
30 IPC_ENUM_TRAITS_MAX_VALUE(printing::PdfRenderSettings::Mode, 30 IPC_ENUM_TRAITS_MAX_VALUE(printing::PdfRenderSettings::Mode,
31 printing::PdfRenderSettings::Mode::LAST) 31 printing::PdfRenderSettings::Mode::LAST)
32 32
33 IPC_STRUCT_TRAITS_BEGIN(printing::PdfRenderSettings) 33 IPC_STRUCT_TRAITS_BEGIN(printing::PdfRenderSettings)
34 IPC_STRUCT_TRAITS_MEMBER(area) 34 IPC_STRUCT_TRAITS_MEMBER(area)
35 IPC_STRUCT_TRAITS_MEMBER(offsets)
35 IPC_STRUCT_TRAITS_MEMBER(dpi) 36 IPC_STRUCT_TRAITS_MEMBER(dpi)
36 IPC_STRUCT_TRAITS_MEMBER(autorotate) 37 IPC_STRUCT_TRAITS_MEMBER(autorotate)
37 IPC_STRUCT_TRAITS_MEMBER(mode) 38 IPC_STRUCT_TRAITS_MEMBER(mode)
38 IPC_STRUCT_TRAITS_END() 39 IPC_STRUCT_TRAITS_END()
39 40
40 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults) 41 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults)
41 IPC_STRUCT_TRAITS_MEMBER(printer_capabilities) 42 IPC_STRUCT_TRAITS_MEMBER(printer_capabilities)
42 IPC_STRUCT_TRAITS_MEMBER(caps_mime_type) 43 IPC_STRUCT_TRAITS_MEMBER(caps_mime_type)
43 IPC_STRUCT_TRAITS_MEMBER(printer_defaults) 44 IPC_STRUCT_TRAITS_MEMBER(printer_defaults)
44 IPC_STRUCT_TRAITS_MEMBER(defaults_mime_type) 45 IPC_STRUCT_TRAITS_MEMBER(defaults_mime_type)
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 IPC::PlatformFileForTransit /* input_file */, 114 IPC::PlatformFileForTransit /* input_file */,
114 printing::PdfRenderSettings /* settings */) 115 printing::PdfRenderSettings /* settings */)
115 116
116 // Requests conversion of the next page. 117 // Requests conversion of the next page.
117 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage, 118 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage,
118 int /* page_number */, 119 int /* page_number */,
119 IPC::PlatformFileForTransit /* output_file */) 120 IPC::PlatformFileForTransit /* output_file */)
120 121
121 // Requests utility process to stop conversion and exit. 122 // Requests utility process to stop conversion and exit.
122 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop) 123 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToMetafiles_Stop)
123 #endif // ENABLE_PRINTING && OS_WIN 124
125 // Tell the utility process to start rendering the given PDF into PS.
126 // Utility process would be alive until
127 // ChromeUtilityMsg_RenderPDFPagesToPostScript_Stop message.
128 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToPostScript_Start,
129 IPC::PlatformFileForTransit /* input_file */,
130 printing::PdfRenderSettings /* settings */)
131
132 // Requests conversion of the next page.
133 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RenderPDFPagesToPostScript_GetPage,
134 int /* page_number */,
135 IPC::PlatformFileForTransit /* output_file */)
136
137 // Requests utility process to stop conversion and exit.
138 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_RenderPDFPagesToPostScript_Stop)
139 #endif // BUILDFLAG(ENABLE_PRINTING) && defined(OS_WIN)
124 140
125 //------------------------------------------------------------------------------ 141 //------------------------------------------------------------------------------
126 // Utility process host messages: 142 // Utility process host messages:
127 // These are messages from the utility process to the browser. 143 // These are messages from the utility process to the browser.
128 144
129 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 145 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
130 // Reply when the utility process has succeeded in rendering the PDF to PWG. 146 // Reply when the utility process has succeeded in rendering the PDF to PWG.
131 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded) 147 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded)
132 148
133 // Reply when an error occurred rendering the PDF to PWG. 149 // Reply when an error occurred rendering the PDF to PWG.
(...skipping 28 matching lines...) Expand all
162 // Reply when the utility process loaded PDF. |page_count| is 0, if loading 178 // Reply when the utility process loaded PDF. |page_count| is 0, if loading
163 // failed. 179 // failed.
164 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageCount, 180 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageCount,
165 int /* page_count */) 181 int /* page_count */)
166 182
167 // Reply when the utility process rendered the PDF page. 183 // Reply when the utility process rendered the PDF page.
168 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone, 184 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone,
169 bool /* success */, 185 bool /* success */,
170 float /* scale_factor */) 186 float /* scale_factor */)
171 187
188 // Reply when the utility process loaded PDF. |page_count| is 0, if loading
189 // failed.
190 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToPostScript_PageCount,
191 int /* page_count */)
192
193 // Reply when the utility process rendered the PDF page.
194 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToPostScript_PageDone,
195 bool /* success */)
196
172 // Request that the given font characters be loaded by the browser so it's 197 // Request that the given font characters be loaded by the browser so it's
173 // cached by the OS. Please see 198 // cached by the OS. Please see
174 // PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details. 199 // PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details.
175 IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters, 200 IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters,
176 LOGFONT /* font_data */, 201 LOGFONT /* font_data */,
177 base::string16 /* characters */) 202 base::string16 /* characters */)
178 203
179 #endif // ENABLE_PRINTING && OS_WIN 204 #endif // ENABLE_PRINTING && OS_WIN
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698