summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffwidget.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-29 16:19:59 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-29 16:19:59 +0000
commitae82b696f236bc5bd1375532bcf867fcc6aa9126 (patch)
treeec984dc11139bd57af09b7231c7777c233f77f63 /xfa/fxfa/cxfa_ffwidget.h
parent611da5146966980bca581e37fd85afbc2f6c763e (diff)
downloadpdfium-ae82b696f236bc5bd1375532bcf867fcc6aa9126.tar.xz
Use more UnownedPtr<> in cxfa_ffwidget
Change-Id: Iae962711f522ad52e77f19201d00d9ab86096ca4 Reviewed-on: https://pdfium-review.googlesource.com/36510 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidget.h')
-rw-r--r--xfa/fxfa/cxfa_ffwidget.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/xfa/fxfa/cxfa_ffwidget.h b/xfa/fxfa/cxfa_ffwidget.h
index f8d97dc551..283c8cbbc7 100644
--- a/xfa/fxfa/cxfa_ffwidget.h
+++ b/xfa/fxfa/cxfa_ffwidget.h
@@ -140,8 +140,11 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
virtual FormFieldType GetFormFieldType();
- CXFA_FFPageView* GetPageView() const { return m_pPageView; }
+ CXFA_FFPageView* GetPageView() const { return m_pPageView.Get(); }
void SetPageView(CXFA_FFPageView* pPageView) { m_pPageView = pPageView; }
+ CXFA_FFDocView* GetDocView() const { return m_pDocView.Get(); }
+ void SetDocView(CXFA_FFDocView* pDocView) { m_pDocView = pDocView; }
+
const CFX_RectF& GetWidgetRect() const;
const CFX_RectF& RecacheWidgetRect() const;
uint32_t GetStatus();
@@ -149,8 +152,6 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
CXFA_Node* GetNode() const { return m_pNode.Get(); }
- CXFA_FFDocView* GetDocView();
- void SetDocView(CXFA_FFDocView* pDocView);
CXFA_FFDoc* GetDoc();
CXFA_FFApp* GetApp();
IXFA_AppProvider* GetAppProvider();
@@ -182,8 +183,8 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
bool IsButtonDown();
void SetButtonDown(bool bSet);
- CXFA_FFDocView* m_pDocView = nullptr;
- CXFA_FFPageView* m_pPageView = nullptr;
+ UnownedPtr<CXFA_FFDocView> m_pDocView;
+ UnownedPtr<CXFA_FFPageView> m_pPageView;
UnownedPtr<CXFA_Node> const m_pNode;
mutable CFX_RectF m_rtWidget;
};