Fix printing_handler_win compilation errors
This commit is contained in:
parent
a723e5a4c5
commit
1b46b5ceda
1 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@ bool Send(IPC::Message* message) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReleaseProcessIfNeeded() {
|
void ReleaseProcessIfNeeded() {
|
||||||
content::UtilityThread::Get()->ReleaseProcessIfNeeded();
|
content::UtilityThread::Get()->ReleaseProcess();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PreCacheFontCharacters(const LOGFONT* logfont,
|
void PreCacheFontCharacters(const LOGFONT* logfont,
|
||||||
|
@ -67,15 +67,15 @@ void PrintingHandlerWin::OnRenderPDFPagesToMetafile(
|
||||||
int postscript_level;
|
int postscript_level;
|
||||||
switch (pdf_rendering_settings_.mode) {
|
switch (pdf_rendering_settings_.mode) {
|
||||||
case PdfRenderSettings::Mode::POSTSCRIPT_LEVEL2:
|
case PdfRenderSettings::Mode::POSTSCRIPT_LEVEL2:
|
||||||
postscript_level = 2;
|
postscript_level = chrome_pdf::PrintingMode::kPostScript2;
|
||||||
break;
|
break;
|
||||||
case PdfRenderSettings::Mode::POSTSCRIPT_LEVEL3:
|
case PdfRenderSettings::Mode::POSTSCRIPT_LEVEL3:
|
||||||
postscript_level = 3;
|
postscript_level = chrome_pdf::PrintingMode::kPostScript3;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
postscript_level = 0; // Not using postscript.
|
postscript_level = chrome_pdf::PrintingMode::kEmf; // Not using postscript.
|
||||||
}
|
}
|
||||||
chrome_pdf::SetPDFPostscriptPrintingLevel(postscript_level);
|
chrome_pdf::SetPDFUsePrintMode(postscript_level);
|
||||||
|
|
||||||
base::File pdf_file = IPC::PlatformFileForTransitToFile(pdf_transit);
|
base::File pdf_file = IPC::PlatformFileForTransitToFile(pdf_transit);
|
||||||
int page_count = LoadPDF(std::move(pdf_file));
|
int page_count = LoadPDF(std::move(pdf_file));
|
||||||
|
|
Loading…
Reference in a new issue