summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffcombobox.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-27 16:14:51 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-27 16:14:51 +0000
commit2d7cb9267899902ce455165303e2373ac38c867d (patch)
treeb3535665dc930a2a1d87c3f2d85087104543fe09 /xfa/fxfa/cxfa_ffcombobox.h
parentbdf3f682d14df4d51bdded89cc897a27112e4934 (diff)
downloadpdfium-2d7cb9267899902ce455165303e2373ac38c867d.tar.xz
Use unowned ptr for IFWL_ delegates
Change-Id: I1e9059242dad254394b73c6fddb010b182e969f0 Reviewed-on: https://pdfium-review.googlesource.com/36230 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffcombobox.h')
-rw-r--r--xfa/fxfa/cxfa_ffcombobox.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_ffcombobox.h b/xfa/fxfa/cxfa_ffcombobox.h
index 66f92b2557..d1c710bcc9 100644
--- a/xfa/fxfa/cxfa_ffcombobox.h
+++ b/xfa/fxfa/cxfa_ffcombobox.h
@@ -7,6 +7,7 @@
#ifndef XFA_FXFA_CXFA_FFCOMBOBOX_H_
#define XFA_FXFA_CXFA_FFCOMBOBOX_H_
+#include "core/fxcrt/unowned_ptr.h"
#include "xfa/fxfa/cxfa_ffdropdown.h"
class CXFA_EventParam;
@@ -59,7 +60,7 @@ class CXFA_FFComboBox : public CXFA_FFDropDown {
void SetItemState(int32_t nIndex, bool bSelected);
private:
- // CXFA_FFField
+ // CXFA_FFField:
bool PtInActiveRect(const CFX_PointF& point) override;
bool CommitData() override;
bool UpdateFWLData() override;
@@ -67,11 +68,10 @@ class CXFA_FFComboBox : public CXFA_FFDropDown {
uint32_t GetAlignment();
void FWLEventSelChange(CXFA_EventParam* pParam);
-
WideString GetCurrentText() const;
WideString m_wsNewValue;
- IFWL_WidgetDelegate* m_pOldDelegate;
+ UnownedPtr<IFWL_WidgetDelegate> m_pOldDelegate;
};
#endif // XFA_FXFA_CXFA_FFCOMBOBOX_H_