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

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

Issue 2556873004: Convert GetWidgetRect to return rect. (Closed)
Patch Set: Review feedback 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_form.cpp ('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) override;
51 void Update() override; 50 void Update() override;
52 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 51 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
53 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; 52 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
54 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; 53 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override;
55 void OnProcessMessage(CFWL_Message* pMessage) override; 54 void OnProcessMessage(CFWL_Message* pMessage) override;
56 void OnProcessEvent(CFWL_Event* pEvent) override; 55 void OnProcessEvent(CFWL_Event* pEvent) override;
57 void OnDrawWidget(CFX_Graphics* pGraphics, 56 void OnDrawWidget(CFX_Graphics* pGraphics,
58 const CFX_Matrix* pMatrix) override; 57 const CFX_Matrix* pMatrix) override;
59 58
60 int32_t CountItems(const CFWL_Widget* pWidget) const; 59 int32_t CountItems(const CFWL_Widget* pWidget) const;
(...skipping 100 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_form.cpp ('k') | xfa/fwl/core/cfwl_listbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698