summaryrefslogtreecommitdiff
path: root/chromium/printing/pdf_metafile_cg_mac.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-07-16 11:45:35 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-07-17 08:59:23 +0000
commit552906b0f222c5d5dd11b9fd73829d510980461a (patch)
tree3a11e6ed0538a81dd83b20cf3a4783e297f26d91 /chromium/printing/pdf_metafile_cg_mac.h
parent1b05827804eaf047779b597718c03e7d38344261 (diff)
downloadqtwebengine-chromium-552906b0f222c5d5dd11b9fd73829d510980461a.tar.gz
BASELINE: Update Chromium to 83.0.4103.122
Change-Id: Ie3a82f5bb0076eec2a7c6a6162326b4301ee291e Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/printing/pdf_metafile_cg_mac.h')
-rw-r--r--chromium/printing/pdf_metafile_cg_mac.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/chromium/printing/pdf_metafile_cg_mac.h b/chromium/printing/pdf_metafile_cg_mac.h
index a49a3895564..6a516694a15 100644
--- a/chromium/printing/pdf_metafile_cg_mac.h
+++ b/chromium/printing/pdf_metafile_cg_mac.h
@@ -10,28 +10,24 @@
#include <stdint.h>
#include "base/mac/scoped_cftyperef.h"
-#include "base/macros.h"
#include "printing/metafile.h"
-namespace gfx {
-class Rect;
-class Size;
-}
-
namespace printing {
// This class creates a graphics context that renders into a PDF data stream.
class PRINTING_EXPORT PdfMetafileCg : public Metafile {
public:
PdfMetafileCg();
+ PdfMetafileCg(const PdfMetafileCg&) = delete;
+ PdfMetafileCg& operator=(const PdfMetafileCg&) = delete;
~PdfMetafileCg() override;
// Metafile methods.
bool Init() override;
- bool InitFromData(const void* src_buffer, size_t src_buffer_size) override;
+ bool InitFromData(base::span<const uint8_t> data) override;
void StartPage(const gfx::Size& page_size,
const gfx::Rect& content_area,
- const float& scale_factor) override;
+ float scale_factor) override;
bool FinishPage() override;
bool FinishDocument() override;
@@ -47,7 +43,7 @@ class PRINTING_EXPORT PdfMetafileCg : public Metafile {
bool RenderPage(unsigned int page_number,
printing::NativeDrawingContext context,
- const CGRect rect,
+ const CGRect& rect,
const MacRenderPageParams& params) const override;
private:
@@ -64,9 +60,7 @@ class PRINTING_EXPORT PdfMetafileCg : public Metafile {
mutable base::ScopedCFTypeRef<CGPDFDocumentRef> pdf_doc_;
// Whether or not a page is currently open.
- bool page_is_open_;
-
- DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg);
+ bool page_is_open_ = false;
};
} // namespace printing