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

Side by Side Diff: xfa/fwl/cfwl_listbox.h

Issue 2563693003: Remove unused list data pointer (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
« no previous file with comments | « xfa/fwl/cfwl_combobox.cpp ('k') | xfa/fwl/cfwl_listbox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FWL_CFWL_LISTBOX_H_ 7 #ifndef XFA_FWL_CFWL_LISTBOX_H_
8 #define XFA_FWL_CFWL_LISTBOX_H_ 8 #define XFA_FWL_CFWL_LISTBOX_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 int32_t CountItems(const CFWL_Widget* pWidget) const; 59 int32_t CountItems(const CFWL_Widget* pWidget) const;
60 CFWL_ListItem* GetItem(const CFWL_Widget* pWidget, int32_t nIndex) const; 60 CFWL_ListItem* GetItem(const CFWL_Widget* pWidget, int32_t nIndex) const;
61 int32_t GetItemIndex(CFWL_Widget* pWidget, CFWL_ListItem* pItem); 61 int32_t GetItemIndex(CFWL_Widget* pWidget, CFWL_ListItem* pItem);
62 uint32_t GetItemStyles(CFWL_Widget* pWidget, CFWL_ListItem* pItem); 62 uint32_t GetItemStyles(CFWL_Widget* pWidget, CFWL_ListItem* pItem);
63 uint32_t GetItemStates(CFWL_ListItem* pItem); 63 uint32_t GetItemStates(CFWL_ListItem* pItem);
64 CFX_WideString GetItemText(CFWL_Widget* pWidget, CFWL_ListItem* pItem); 64 CFX_WideString GetItemText(CFWL_Widget* pWidget, CFWL_ListItem* pItem);
65 void GetItemRect(CFWL_Widget* pWidget, 65 void GetItemRect(CFWL_Widget* pWidget,
66 CFWL_ListItem* pItem, 66 CFWL_ListItem* pItem,
67 CFX_RectF& rtItem); 67 CFX_RectF& rtItem);
68 void* GetItemData(CFWL_Widget* pWidget, CFWL_ListItem* pItem);
69 void SetItemStyles(CFWL_Widget* pWidget, 68 void SetItemStyles(CFWL_Widget* pWidget,
70 CFWL_ListItem* pItem, 69 CFWL_ListItem* pItem,
71 uint32_t dwStyle); 70 uint32_t dwStyle);
72 void SetItemRect(CFWL_Widget* pWidget, 71 void SetItemRect(CFWL_Widget* pWidget,
73 CFWL_ListItem* pItem, 72 CFWL_ListItem* pItem,
74 const CFX_RectF& rtItem); 73 const CFX_RectF& rtItem);
75 CFX_DIBitmap* GetItemIcon(CFWL_Widget* pWidget, CFWL_ListItem* pItem); 74 CFX_DIBitmap* GetItemIcon(CFWL_Widget* pWidget, CFWL_ListItem* pItem);
76 void GetItemCheckRect(CFWL_Widget* pWidget, 75 void GetItemCheckRect(CFWL_Widget* pWidget,
77 CFWL_ListItem* pItem, 76 CFWL_ListItem* pItem,
78 CFX_RectF& rtCheck); 77 CFX_RectF& rtCheck);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 int32_t m_iTTOAligns; 159 int32_t m_iTTOAligns;
161 CFWL_ListItem* m_hAnchor; 160 CFWL_ListItem* m_hAnchor;
162 FX_FLOAT m_fItemHeight; 161 FX_FLOAT m_fItemHeight;
163 FX_FLOAT m_fScorllBarWidth; 162 FX_FLOAT m_fScorllBarWidth;
164 bool m_bLButtonDown; 163 bool m_bLButtonDown;
165 IFWL_ThemeProvider* m_pScrollBarTP; 164 IFWL_ThemeProvider* m_pScrollBarTP;
166 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; 165 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray;
167 }; 166 };
168 167
169 #endif // XFA_FWL_CFWL_LISTBOX_H_ 168 #endif // XFA_FWL_CFWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/cfwl_combobox.cpp ('k') | xfa/fwl/cfwl_listbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698