Fix building on Linux
This commit is contained in:
parent
f28e8d7168
commit
4aa292c7cd
3 changed files with 9 additions and 6 deletions
|
@ -8,7 +8,7 @@
|
|||
#ifndef ATOM_COMMON_CHROME_VERSION_H_
|
||||
#define ATOM_COMMON_CHROME_VERSION_H_
|
||||
|
||||
#define CHROME_VERSION_STRING "52.0.2743.82"
|
||||
#define CHROME_VERSION_STRING "53.0.2785.89"
|
||||
#define CHROME_VERSION "v" CHROME_VERSION_STRING
|
||||
|
||||
#endif // ATOM_COMMON_CHROME_VERSION_H_
|
||||
|
|
|
@ -33,7 +33,7 @@ bool PrintWebViewHelper::RenderPreviewPage(
|
|||
std::unique_ptr<PdfMetafileSkia> draft_metafile;
|
||||
PdfMetafileSkia* initial_render_metafile = print_preview_context_.metafile();
|
||||
if (print_preview_context_.IsModifiable() && is_print_ready_metafile_sent_) {
|
||||
draft_metafile.reset(new PdfMetafileSkia);
|
||||
draft_metafile.reset(new PdfMetafileSkia(PDF_SKIA_DOCUMENT_TYPE));
|
||||
initial_render_metafile = draft_metafile.get();
|
||||
}
|
||||
|
||||
|
@ -49,14 +49,16 @@ bool PrintWebViewHelper::RenderPreviewPage(
|
|||
print_preview_context_.generate_draft_pages()) {
|
||||
DCHECK(!draft_metafile.get());
|
||||
draft_metafile =
|
||||
print_preview_context_.metafile()->GetMetafileForCurrentPage();
|
||||
print_preview_context_.metafile()->GetMetafileForCurrentPage(
|
||||
PDF_SKIA_DOCUMENT_TYPE);
|
||||
|
||||
}
|
||||
return PreviewPageRendered(page_number, draft_metafile.get());
|
||||
}
|
||||
|
||||
bool PrintWebViewHelper::PrintPagesNative(blink::WebFrame* frame,
|
||||
int page_count) {
|
||||
PdfMetafileSkia metafile;
|
||||
PdfMetafileSkia metafile(PDF_SKIA_DOCUMENT_TYPE);
|
||||
if (!metafile.Init())
|
||||
return false;
|
||||
|
||||
|
|
|
@ -49,14 +49,15 @@ bool PrintWebViewHelper::RenderPreviewPage(
|
|||
print_preview_context_.generate_draft_pages()) {
|
||||
DCHECK(!draft_metafile.get());
|
||||
draft_metafile =
|
||||
print_preview_context_.metafile()->GetMetafileForCurrentPage();
|
||||
print_preview_context_.metafile()->GetMetafileForCurrentPage(
|
||||
PDF_SKIA_DOCUMENT_TYPE);
|
||||
}
|
||||
return PreviewPageRendered(page_number, draft_metafile.get());
|
||||
}
|
||||
|
||||
bool PrintWebViewHelper::PrintPagesNative(blink::WebFrame* frame,
|
||||
int page_count) {
|
||||
PdfMetafileSkia metafile;
|
||||
PdfMetafileSkia metafile(PDF_SKIA_DOCUMENT_TYPE);
|
||||
if (!metafile.Init())
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue