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

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

Issue 2494743002: IFWL cleanup in the Combo classes (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
Index: xfa/fwl/core/ifwl_listbox.h
diff --git a/xfa/fwl/core/ifwl_listbox.h b/xfa/fwl/core/ifwl_listbox.h
index 608a7d93727c4b0ced60a66518dd9857daf08bee..94de00e2a7ef9cd4e5fbfdb6f4b17b0117d28e6a 100644
--- a/xfa/fwl/core/ifwl_listbox.h
+++ b/xfa/fwl/core/ifwl_listbox.h
@@ -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; }

Powered by Google App Engine
This is Rietveld 408576698