From c5709dd345c748016a637b2104544895223f8fc7 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 17 Sep 2018 18:10:36 +0000 Subject: Make CBC_CodeBase::SetTextLocation() virtual. Do the same for a few other CBC_CodeBase methods, instead of trying to implement virtual methods manually using memory pointers. Change-Id: Iec0e3a4f8eabc54962c7ac0a00a1b80b192ff474 Reviewed-on: https://pdfium-review.googlesource.com/42600 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- fxbarcode/cbc_codebase.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fxbarcode/cbc_codebase.h') diff --git a/fxbarcode/cbc_codebase.h b/fxbarcode/cbc_codebase.h index aab98da32b..e0f402d91c 100644 --- a/fxbarcode/cbc_codebase.h +++ b/fxbarcode/cbc_codebase.h @@ -29,6 +29,11 @@ class CBC_CodeBase { virtual bool Encode(const WideStringView& contents) = 0; virtual bool RenderDevice(CFX_RenderDevice* device, const CFX_Matrix* matrix) = 0; + virtual bool SetTextLocation(BC_TEXT_LOC location); + virtual bool SetWideNarrowRatio(int8_t ratio); + virtual bool SetStartChar(char start); + virtual bool SetEndChar(char end); + virtual bool SetErrorCorrectionLevel(int32_t level); bool SetCharEncoding(int32_t encoding); bool SetModuleHeight(int32_t moduleHeight); -- cgit v1.2.3