diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-11 18:09:57 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-11 18:09:57 -0800 |
commit | 27e66753c8bd6e664f26d05c1a468dc68be01913 (patch) | |
tree | 0006196c2e60225fb571946957f2e77646c6d6e2 /xfa/fwl/core/ifwl_listbox.h | |
parent | 6e1d6032b7990cdf580c99ff491a1b761ee39ca6 (diff) | |
download | pdfium-27e66753c8bd6e664f26d05c1a468dc68be01913.tar.xz |
IFWL cleanup in the Combo classeschromium/2919chromium/2918
Cleanup visibility and unused methods in the IFWL combo code.
Review-Url: https://codereview.chromium.org/2494743002
Diffstat (limited to 'xfa/fwl/core/ifwl_listbox.h')
-rw-r--r-- | xfa/fwl/core/ifwl_listbox.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xfa/fwl/core/ifwl_listbox.h b/xfa/fwl/core/ifwl_listbox.h index 608a7d9372..32865c116e 100644 --- a/xfa/fwl/core/ifwl_listbox.h +++ b/xfa/fwl/core/ifwl_listbox.h @@ -51,9 +51,9 @@ FWL_EVENT_DEF(CFWL_EvtLtbDrawItem, class IFWL_ListBoxDP : public IFWL_DataProvider { public: - virtual int32_t CountItems(const IFWL_Widget* pWidget) = 0; + virtual int32_t CountItems(const IFWL_Widget* pWidget) const = 0; virtual CFWL_ListItem* GetItem(const IFWL_Widget* pWidget, - int32_t nIndex) = 0; + int32_t nIndex) const = 0; virtual int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) = 0; virtual bool SetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem, @@ -119,15 +119,16 @@ class IFWL_ListBox : public IFWL_Widget { void GetItemText(CFWL_ListItem* hItem, CFX_WideString& wsText); void GetScrollPos(FX_FLOAT& fPos, bool bVert = true); + FX_FLOAT GetItemHeight() const { return m_fItemHeight; } + FX_FLOAT CalcItemHeight(); + protected: CFWL_ListItem* GetItem(CFWL_ListItem* hItem, uint32_t dwKeyCode); void SetSelection(CFWL_ListItem* hStart, CFWL_ListItem* hEnd, bool bSelected); CFWL_ListItem* GetItemAtPoint(FX_FLOAT fx, FX_FLOAT fy); bool ScrollToVisible(CFWL_ListItem* hItem); - FX_FLOAT CalcItemHeight(); void InitScrollBar(bool bVert = true); bool IsShowScrollBar(bool bVert); - FX_FLOAT GetItemHeight() const { return m_fItemHeight; } IFWL_ScrollBar* GetVertScrollBar() const { return m_pVertScrollBar.get(); } const CFX_RectF& GetRTClient() const { return m_rtClient; } |