summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_barcode.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-23 10:49:33 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-23 10:49:33 -0800
commit7c47e1d3172ce6f625b93be50aac2ebf86a45d0c (patch)
treebb7beae7637635cd0c631f015411a63fd2892486 /xfa/fwl/core/ifwl_barcode.h
parent7172b71a005c181e9f103ac0e19f6675bf3bc8e8 (diff)
downloadpdfium-7c47e1d3172ce6f625b93be50aac2ebf86a45d0c.tar.xz
Remove DataProvider from CFWL_WidgetPropertieschromium/2931chromium/2930
This CL removes the generic DataProvider code from CFWL_WidgetProperties and adds the specific providers to the two classes that require them. Review-Url: https://codereview.chromium.org/2527683002
Diffstat (limited to 'xfa/fwl/core/ifwl_barcode.h')
-rw-r--r--xfa/fwl/core/ifwl_barcode.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/xfa/fwl/core/ifwl_barcode.h b/xfa/fwl/core/ifwl_barcode.h
index 2a4c9d7fd2..7c6f346708 100644
--- a/xfa/fwl/core/ifwl_barcode.h
+++ b/xfa/fwl/core/ifwl_barcode.h
@@ -40,7 +40,7 @@ enum FWL_BCDAttribute {
class IFWL_Barcode : public IFWL_Edit {
public:
- class DataProvider : public IFWL_Widget::DataProvider {
+ class DataProvider {
public:
virtual BC_CHAR_ENCODING GetCharEncoding() const = 0;
virtual int32_t GetModuleHeight() const = 0;
@@ -75,11 +75,16 @@ class IFWL_Barcode : public IFWL_Edit {
void SetType(BC_TYPE type);
bool IsProtectedType() const;
+ void SetDataProvider(IFWL_Barcode::DataProvider* provider) {
+ m_pDataProvider = provider;
+ }
+
private:
void GenerateBarcodeImageCache();
void CreateBarcodeEngine();
std::unique_ptr<CFX_Barcode> m_pBarcodeEngine;
+ IFWL_Barcode::DataProvider* m_pDataProvider; // Not owned.
uint32_t m_dwStatus;
BC_TYPE m_type;
};