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

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

Issue 2464703006: Fold IFWL*::{Initialize|Finalize} into constructor/destructor (Closed)
Patch Set: Rebase to master 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_pushbutton.cpp ('k') | xfa/fwl/core/ifwl_scrollbar.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_SCROLLBAR_H_ 7 #ifndef XFA_FWL_CORE_IFWL_SCROLLBAR_H_
8 #define XFA_FWL_CORE_IFWL_SCROLLBAR_H_ 8 #define XFA_FWL_CORE_IFWL_SCROLLBAR_H_
9 9
10 #include "core/fxcrt/fx_system.h" 10 #include "core/fxcrt/fx_system.h"
(...skipping 26 matching lines...) Expand all
37 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; 37 class IFWL_ScrollBarDP : public IFWL_DataProvider {};
38 38
39 class IFWL_ScrollBar : public IFWL_Widget { 39 class IFWL_ScrollBar : public IFWL_Widget {
40 public: 40 public:
41 IFWL_ScrollBar(const IFWL_App* app, 41 IFWL_ScrollBar(const IFWL_App* app,
42 const CFWL_WidgetImpProperties& properties, 42 const CFWL_WidgetImpProperties& properties,
43 IFWL_Widget* pOuter); 43 IFWL_Widget* pOuter);
44 ~IFWL_ScrollBar() override; 44 ~IFWL_ScrollBar() override;
45 45
46 // IFWL_Widget 46 // IFWL_Widget
47 void Initialize() override;
48 void Finalize() override;
49 FWL_Type GetClassID() const override; 47 FWL_Type GetClassID() const override;
50 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 48 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
51 FWL_Error Update() override; 49 FWL_Error Update() override;
52 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 50 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
53 const CFX_Matrix* pMatrix = nullptr) override; 51 const CFX_Matrix* pMatrix = nullptr) override;
54 52
55 FX_BOOL IsVertical(); 53 FX_BOOL IsVertical();
56 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); 54 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax);
57 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax); 55 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax);
58 FX_FLOAT GetPageSize(); 56 FX_FLOAT GetPageSize();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 int32_t& iState, 165 int32_t& iState,
168 FX_FLOAT fx, 166 FX_FLOAT fx,
169 FX_FLOAT fy); 167 FX_FLOAT fy);
170 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); 168 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState);
171 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); 169 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState);
172 170
173 IFWL_ScrollBar* m_pOwner; 171 IFWL_ScrollBar* m_pOwner;
174 }; 172 };
175 173
176 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ 174 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_pushbutton.cpp ('k') | xfa/fwl/core/ifwl_scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698