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

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

Issue 2556873004: Convert GetWidgetRect to return rect. (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
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; 50 CFX_RectF GetWidgetRect(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, const CFX_Matrix* pMatrix) override; 53 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
54 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; 54 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override;
55 void OnProcessMessage(CFWL_Message* pMessage) override; 55 void OnProcessMessage(CFWL_Message* pMessage) override;
56 void OnProcessEvent(CFWL_Event* pEvent) override; 56 void OnProcessEvent(CFWL_Event* pEvent) override;
57 void OnDrawWidget(CFX_Graphics* pGraphics, 57 void OnDrawWidget(CFX_Graphics* pGraphics,
58 const CFX_Matrix* pMatrix) override; 58 const CFX_Matrix* pMatrix) override;
59 59
60 int32_t CountItems(const CFWL_Widget* pWidget) const; 60 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; 161 int32_t m_iTTOAligns;
162 CFWL_ListItem* m_hAnchor; 162 CFWL_ListItem* m_hAnchor;
163 FX_FLOAT m_fItemHeight; 163 FX_FLOAT m_fItemHeight;
164 FX_FLOAT m_fScorllBarWidth; 164 FX_FLOAT m_fScorllBarWidth;
165 bool m_bLButtonDown; 165 bool m_bLButtonDown;
166 IFWL_ThemeProvider* m_pScrollBarTP; 166 IFWL_ThemeProvider* m_pScrollBarTP;
167 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; 167 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray;
168 }; 168 };
169 169
170 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ 170 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698