Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: xfa/fwl/core/ifwl_barcode.h

Issue 2527683002: Remove DataProvider from CFWL_WidgetProperties (Closed)
Patch Set: Rebase to master Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/core/cfwl_widgetproperties.cpp ('k') | xfa/fwl/core/ifwl_barcode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/core/ifwl_barcode.h
diff --git a/xfa/fwl/core/ifwl_barcode.h b/xfa/fwl/core/ifwl_barcode.h
index 2a4c9d7fd27a006b97da8f1bda80cca9cac59e5d..7c6f346708e21fd60cecfb3bf8c797bced8ac7c0 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;
};
« no previous file with comments | « xfa/fwl/core/cfwl_widgetproperties.cpp ('k') | xfa/fwl/core/ifwl_barcode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698