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

Side by Side Diff: xfa/fwl/core/ifwl_listbox.h

Issue 2510123002: Remove the CFWL_EventType::DrawItem (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/ifwl_combobox.cpp ('k') | xfa/fwl/core/ifwl_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_CORE_IFWL_LISTBOX_H_ 7 #ifndef XFA_FWL_CORE_IFWL_LISTBOX_H_
8 #define XFA_FWL_CORE_IFWL_LISTBOX_H_ 8 #define XFA_FWL_CORE_IFWL_LISTBOX_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 24 matching lines...) Expand all
35 35
36 class CFWL_MsgKillFocus; 36 class CFWL_MsgKillFocus;
37 class CFWL_MsgMouse; 37 class CFWL_MsgMouse;
38 class CFWL_MsgMouseWheel; 38 class CFWL_MsgMouseWheel;
39 class CFX_DIBitmap; 39 class CFX_DIBitmap;
40 40
41 FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, 41 FWL_EVENT_DEF(CFWL_EvtLtbSelChanged,
42 CFWL_EventType::SelectChanged, 42 CFWL_EventType::SelectChanged,
43 CFX_Int32Array iarraySels;) 43 CFX_Int32Array iarraySels;)
44 44
45 FWL_EVENT_DEF(CFWL_EvtLtbDrawItem,
46 CFWL_EventType::DrawItem,
47 CFX_Graphics* m_pGraphics;
48 CFX_Matrix m_matrix;
49 int32_t m_index;
50 CFX_RectF m_rect;)
51
52 class IFWL_ListBoxDP : public IFWL_DataProvider { 45 class IFWL_ListBoxDP : public IFWL_DataProvider {
53 public: 46 public:
54 virtual int32_t CountItems(const IFWL_Widget* pWidget) const = 0; 47 virtual int32_t CountItems(const IFWL_Widget* pWidget) const = 0;
55 virtual CFWL_ListItem* GetItem(const IFWL_Widget* pWidget, 48 virtual CFWL_ListItem* GetItem(const IFWL_Widget* pWidget,
56 int32_t nIndex) const = 0; 49 int32_t nIndex) const = 0;
57 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) = 0; 50 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) = 0;
58 virtual uint32_t GetItemStyles(IFWL_Widget* pWidget, 51 virtual uint32_t GetItemStyles(IFWL_Widget* pWidget,
59 CFWL_ListItem* pItem) = 0; 52 CFWL_ListItem* pItem) = 0;
60 virtual void GetItemText(IFWL_Widget* pWidget, 53 virtual void GetItemText(IFWL_Widget* pWidget,
61 CFWL_ListItem* pItem, 54 CFWL_ListItem* pItem,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 uint32_t m_dwTTOStyles; 166 uint32_t m_dwTTOStyles;
174 int32_t m_iTTOAligns; 167 int32_t m_iTTOAligns;
175 CFWL_ListItem* m_hAnchor; 168 CFWL_ListItem* m_hAnchor;
176 FX_FLOAT m_fItemHeight; 169 FX_FLOAT m_fItemHeight;
177 FX_FLOAT m_fScorllBarWidth; 170 FX_FLOAT m_fScorllBarWidth;
178 bool m_bLButtonDown; 171 bool m_bLButtonDown;
179 IFWL_ThemeProvider* m_pScrollBarTP; 172 IFWL_ThemeProvider* m_pScrollBarTP;
180 }; 173 };
181 174
182 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_ 175 #endif // XFA_FWL_CORE_IFWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_combobox.cpp ('k') | xfa/fwl/core/ifwl_listbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698