summaryrefslogtreecommitdiff
path: root/xfa/include/fwl
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-11-18 10:24:24 -0800
committerTom Sepez <tsepez@chromium.org>2015-11-18 10:24:24 -0800
commit3cca9c8f68e7a60a9e064bb2e036fdd51ae6eb55 (patch)
tree90788b0c6e7580ac232664ccebc79e4e2defb171 /xfa/include/fwl
parent17e920da8f98461d7a60d063053cf26f4eaf3a37 (diff)
downloadpdfium-3cca9c8f68e7a60a9e064bb2e036fdd51ae6eb55.tar.xz
Fold IFWL_TargetData into IFWL_Target
IFWL_TargetData was a sibling class to which we illegally cast other IFWL_ classes just to get access to a member, to which they already had access in many cases. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1452403002 .
Diffstat (limited to 'xfa/include/fwl')
-rw-r--r--xfa/include/fwl/core/fwl_target.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/xfa/include/fwl/core/fwl_target.h b/xfa/include/fwl/core/fwl_target.h
index 25c8a33c90..363ce30562 100644
--- a/xfa/include/fwl/core/fwl_target.h
+++ b/xfa/include/fwl/core/fwl_target.h
@@ -28,6 +28,8 @@ class CFWL_TargetImp;
class IFWL_Target {
public:
+ IFWL_Target() : m_pImpl(nullptr) {}
+
FX_DWORD Release();
IFWL_Target* Retain();
FX_DWORD GetRefCount() const;
@@ -37,6 +39,9 @@ class IFWL_Target {
FWL_ERR Initialize();
FWL_ERR Finalize();
+ CFWL_TargetImp* GetImpl() const { return m_pImpl; }
+ void SetImpl(CFWL_TargetImp* pImpl) { m_pImpl = pImpl; }
+
protected:
virtual ~IFWL_Target();
CFWL_TargetImp* m_pImpl;