diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-17 18:54:07 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-17 18:54:07 +0000 |
commit | 222db47cd745c223bbf52ac5770909c41dc660b8 (patch) | |
tree | f570fd38c1fa427fd60eeadf3b86ead966d8b9a4 /fxbarcode/BC_Writer.h | |
parent | bff81396b7aee1cc195194d0d1122d8fbec7dfb9 (diff) | |
download | pdfium-222db47cd745c223bbf52ac5770909c41dc660b8.tar.xz |
Make CBC_CodeBase::SetTextLocation() not virtual.
Make CBC_Writer::SetTextLocation() virtual instead.
Change-Id: I9ac06affe35f3c7bebc2f5ff0917e7146cfe89cc
Reviewed-on: https://pdfium-review.googlesource.com/42601
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fxbarcode/BC_Writer.h')
-rw-r--r-- | fxbarcode/BC_Writer.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/fxbarcode/BC_Writer.h b/fxbarcode/BC_Writer.h index 565c03f1a5..3751b93457 100644 --- a/fxbarcode/BC_Writer.h +++ b/fxbarcode/BC_Writer.h @@ -10,6 +10,7 @@ #include "core/fxcrt/fx_string.h" #include "core/fxge/dib/cfx_dibitmap.h" #include "core/fxge/fx_dib.h" +#include "fxbarcode/BC_Library.h" #include "fxbarcode/utils.h" class CBC_Writer { @@ -23,17 +24,18 @@ class CBC_Writer { virtual bool SetWidth(int32_t width); virtual void SetBackgroundColor(FX_ARGB backgroundColor); virtual void SetBarcodeColor(FX_ARGB foregroundColor); + virtual bool SetTextLocation(BC_TEXT_LOC location); protected: RetainPtr<CFX_DIBitmap> CreateDIBitmap(int32_t width, int32_t height); - int32_t m_CharEncoding; - int32_t m_ModuleHeight; - int32_t m_ModuleWidth; - int32_t m_Height; - int32_t m_Width; - FXDIB_Format m_colorSpace; - FX_ARGB m_barColor; - FX_ARGB m_backgroundColor; + int32_t m_CharEncoding = 0; + int32_t m_ModuleHeight = 1; + int32_t m_ModuleWidth = 1; + int32_t m_Height = 320; + int32_t m_Width = 640; + FXDIB_Format m_colorSpace = FXDIB_Argb; + FX_ARGB m_barColor = 0xff000000; + FX_ARGB m_backgroundColor = 0xffffffff; }; #endif // FXBARCODE_BC_WRITER_H_ |