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

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

Issue 2533623002: Cleanup default FWL params part I (Closed)
Patch Set: Rebase to master 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/core/cfwl_formproxy.h ('k') | xfa/fwl/core/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_CORE_CFWL_LISTBOX_H_ 7 #ifndef XFA_FWL_CORE_CFWL_LISTBOX_H_
8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_ 8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 29 matching lines...) Expand all
40 40
41 class CFWL_ListBox : public CFWL_Widget { 41 class CFWL_ListBox : public CFWL_Widget {
42 public: 42 public:
43 explicit CFWL_ListBox(const CFWL_App* pApp, 43 explicit CFWL_ListBox(const CFWL_App* pApp,
44 std::unique_ptr<CFWL_WidgetProperties> properties, 44 std::unique_ptr<CFWL_WidgetProperties> properties,
45 CFWL_Widget* pOuter); 45 CFWL_Widget* pOuter);
46 ~CFWL_ListBox() override; 46 ~CFWL_ListBox() override;
47 47
48 // CFWL_Widget 48 // CFWL_Widget
49 FWL_Type GetClassID() const override; 49 FWL_Type GetClassID() const override;
50 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 50 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override;
51 void Update() override; 51 void Update() override;
52 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 52 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
53 void DrawWidget(CFX_Graphics* pGraphics, 53 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
54 const CFX_Matrix* pMatrix = nullptr) override;
55 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; 54 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override;
56 void OnProcessMessage(CFWL_Message* pMessage) override; 55 void OnProcessMessage(CFWL_Message* pMessage) override;
57 void OnProcessEvent(CFWL_Event* pEvent) override; 56 void OnProcessEvent(CFWL_Event* pEvent) override;
58 void OnDrawWidget(CFX_Graphics* pGraphics, 57 void OnDrawWidget(CFX_Graphics* pGraphics,
59 const CFX_Matrix* pMatrix) override; 58 const CFX_Matrix* pMatrix) override;
60 59
61 int32_t CountItems(const CFWL_Widget* pWidget) const; 60 int32_t CountItems(const CFWL_Widget* pWidget) const;
62 CFWL_ListItem* GetItem(const CFWL_Widget* pWidget, int32_t nIndex) const; 61 CFWL_ListItem* GetItem(const CFWL_Widget* pWidget, int32_t nIndex) const;
63 int32_t GetItemIndex(CFWL_Widget* pWidget, CFWL_ListItem* pItem); 62 int32_t GetItemIndex(CFWL_Widget* pWidget, CFWL_ListItem* pItem);
64 uint32_t GetItemStyles(CFWL_Widget* pWidget, CFWL_ListItem* pItem); 63 uint32_t GetItemStyles(CFWL_Widget* pWidget, CFWL_ListItem* pItem);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 int32_t m_iTTOAligns; 160 int32_t m_iTTOAligns;
162 CFWL_ListItem* m_hAnchor; 161 CFWL_ListItem* m_hAnchor;
163 FX_FLOAT m_fItemHeight; 162 FX_FLOAT m_fItemHeight;
164 FX_FLOAT m_fScorllBarWidth; 163 FX_FLOAT m_fScorllBarWidth;
165 bool m_bLButtonDown; 164 bool m_bLButtonDown;
166 IFWL_ThemeProvider* m_pScrollBarTP; 165 IFWL_ThemeProvider* m_pScrollBarTP;
167 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; 166 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray;
168 }; 167 };
169 168
170 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ 169 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_formproxy.h ('k') | xfa/fwl/core/cfwl_listbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698