diff --git a/chromium_src/chrome/browser/printing/print_view_manager_base.cc b/chromium_src/chrome/browser/printing/print_view_manager_base.cc index a148f35b3fce..64f32b00fa60 100644 --- a/chromium_src/chrome/browser/printing/print_view_manager_base.cc +++ b/chromium_src/chrome/browser/printing/print_view_manager_base.cc @@ -143,7 +143,7 @@ void PrintViewManagerBase::OnDidPrintPage( } std::unique_ptr metafile( - new PdfMetafileSkia(PDF_SKIA_DOCUMENT_TYPE)); + new PdfMetafileSkia(SkiaDocumentType::PDF)); if (metafile_must_be_valid) { if (!metafile->InitFromData(shared_buf.memory(), params.data_size)) { NOTREACHED() << "Invalid metafile header"; diff --git a/chromium_src/chrome/renderer/printing/print_web_view_helper.cc b/chromium_src/chrome/renderer/printing/print_web_view_helper.cc index 744b263ae2d6..0074dc55ff6e 100644 --- a/chromium_src/chrome/renderer/printing/print_web_view_helper.cc +++ b/chromium_src/chrome/renderer/printing/print_web_view_helper.cc @@ -1254,7 +1254,7 @@ bool PrintWebViewHelper::PrintPreviewContext::CreatePreviewDocument( return false; } - metafile_.reset(new PdfMetafileSkia(PDF_SKIA_DOCUMENT_TYPE)); + metafile_.reset(new PdfMetafileSkia(SkiaDocumentType::PDF)); CHECK(metafile_->Init()); current_page_index_ = 0; diff --git a/chromium_src/chrome/renderer/printing/print_web_view_helper_linux.cc b/chromium_src/chrome/renderer/printing/print_web_view_helper_linux.cc index be8b3bdd31ba..e7f421e86112 100644 --- a/chromium_src/chrome/renderer/printing/print_web_view_helper_linux.cc +++ b/chromium_src/chrome/renderer/printing/print_web_view_helper_linux.cc @@ -33,7 +33,7 @@ bool PrintWebViewHelper::RenderPreviewPage( std::unique_ptr 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(PDF_SKIA_DOCUMENT_TYPE)); + draft_metafile.reset(new PdfMetafileSkia(SkiaDocumentType::PDF)); initial_render_metafile = draft_metafile.get(); } @@ -50,7 +50,7 @@ bool PrintWebViewHelper::RenderPreviewPage( DCHECK(!draft_metafile.get()); draft_metafile = print_preview_context_.metafile()->GetMetafileForCurrentPage( - PDF_SKIA_DOCUMENT_TYPE); + SkiaDocumentType::PDF); } return PreviewPageRendered(page_number, draft_metafile.get()); @@ -58,7 +58,7 @@ bool PrintWebViewHelper::RenderPreviewPage( bool PrintWebViewHelper::PrintPagesNative(blink::WebLocalFrame* frame, int page_count) { - PdfMetafileSkia metafile(PDF_SKIA_DOCUMENT_TYPE); + PdfMetafileSkia metafile(SkiaDocumentType::PDF); if (!metafile.Init()) return false; diff --git a/chromium_src/chrome/renderer/printing/print_web_view_helper_mac.mm b/chromium_src/chrome/renderer/printing/print_web_view_helper_mac.mm index 08ba2060924b..25ab5a5f2570 100644 --- a/chromium_src/chrome/renderer/printing/print_web_view_helper_mac.mm +++ b/chromium_src/chrome/renderer/printing/print_web_view_helper_mac.mm @@ -22,7 +22,7 @@ using blink::WebLocalFrame; void PrintWebViewHelper::PrintPageInternal( const PrintMsg_PrintPage_Params& params, WebLocalFrame* frame) { - PdfMetafileSkia metafile(PDF_SKIA_DOCUMENT_TYPE); + PdfMetafileSkia metafile(SkiaDocumentType::PDF); CHECK(metafile.Init()); int page_number = params.page_number; @@ -60,7 +60,7 @@ bool PrintWebViewHelper::RenderPreviewPage( is_print_ready_metafile_sent_; if (render_to_draft) { - draft_metafile.reset(new PdfMetafileSkia(PDF_SKIA_DOCUMENT_TYPE)); + draft_metafile.reset(new PdfMetafileSkia(SkiaDocumentType::PDF)); CHECK(draft_metafile->Init()); initial_render_metafile = draft_metafile.get(); } @@ -80,7 +80,7 @@ bool PrintWebViewHelper::RenderPreviewPage( DCHECK(!draft_metafile.get()); draft_metafile = print_preview_context_.metafile()->GetMetafileForCurrentPage( - PDF_SKIA_DOCUMENT_TYPE); + SkiaDocumentType::PDF); } } return PreviewPageRendered(page_number, draft_metafile.get()); diff --git a/chromium_src/chrome/renderer/printing/print_web_view_helper_pdf_win.cc b/chromium_src/chrome/renderer/printing/print_web_view_helper_pdf_win.cc index 5d069659cabe..118bf92e812e 100644 --- a/chromium_src/chrome/renderer/printing/print_web_view_helper_pdf_win.cc +++ b/chromium_src/chrome/renderer/printing/print_web_view_helper_pdf_win.cc @@ -30,7 +30,7 @@ bool PrintWebViewHelper::RenderPreviewPage( std::unique_ptr 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(PDF_SKIA_DOCUMENT_TYPE)); + draft_metafile.reset(new PdfMetafileSkia(SkiaDocumentType::PDF)); initial_render_metafile = draft_metafile.get(); } @@ -49,14 +49,14 @@ bool PrintWebViewHelper::RenderPreviewPage( DCHECK(!draft_metafile.get()); draft_metafile = print_preview_context_.metafile()->GetMetafileForCurrentPage( - PDF_SKIA_DOCUMENT_TYPE); + SkiaDocumentType::PDF); } return PreviewPageRendered(page_number, draft_metafile.get()); } bool PrintWebViewHelper::PrintPagesNative(blink::WebLocalFrame* frame, int page_count) { - PdfMetafileSkia metafile(PDF_SKIA_DOCUMENT_TYPE); + PdfMetafileSkia metafile(SkiaDocumentType::PDF); if (!metafile.Init()) return false;