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

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

Issue 2488953003: Cleanup IFWL_Widget visibility and virtual parameters (Closed)
Patch Set: fixes 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 25 matching lines...) Expand all
36 36
37 class IFWL_ScrollBar : public IFWL_Widget { 37 class IFWL_ScrollBar : public IFWL_Widget {
38 public: 38 public:
39 IFWL_ScrollBar(const IFWL_App* app, 39 IFWL_ScrollBar(const IFWL_App* app,
40 std::unique_ptr<CFWL_WidgetProperties> properties, 40 std::unique_ptr<CFWL_WidgetProperties> properties,
41 IFWL_Widget* pOuter); 41 IFWL_Widget* pOuter);
42 ~IFWL_ScrollBar() override; 42 ~IFWL_ScrollBar() override;
43 43
44 // IFWL_Widget 44 // IFWL_Widget
45 FWL_Type GetClassID() const override; 45 FWL_Type GetClassID() const override;
46 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 46 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override;
47 FWL_Error Update() override; 47 void Update() override;
48 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 48 void DrawWidget(CFX_Graphics* pGraphics,
49 const CFX_Matrix* pMatrix = nullptr) override; 49 const CFX_Matrix* pMatrix = nullptr) override;
50 void OnProcessMessage(CFWL_Message* pMessage) override; 50 void OnProcessMessage(CFWL_Message* pMessage) override;
51 void OnDrawWidget(CFX_Graphics* pGraphics, 51 void OnDrawWidget(CFX_Graphics* pGraphics,
52 const CFX_Matrix* pMatrix) override; 52 const CFX_Matrix* pMatrix) override;
53 53
54 bool IsVertical(); 54 bool IsVertical();
55 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); 55 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax);
56 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax); 56 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax);
57 FX_FLOAT GetPageSize(); 57 FX_FLOAT GetPageSize();
58 FWL_Error SetPageSize(FX_FLOAT fPageSize); 58 FWL_Error SetPageSize(FX_FLOAT fPageSize);
59 FX_FLOAT GetStepSize(); 59 FX_FLOAT GetStepSize();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void DoMouseMove(int32_t iItem, 154 void DoMouseMove(int32_t iItem,
155 const CFX_RectF& rtItem, 155 const CFX_RectF& rtItem,
156 int32_t& iState, 156 int32_t& iState,
157 FX_FLOAT fx, 157 FX_FLOAT fx,
158 FX_FLOAT fy); 158 FX_FLOAT fy);
159 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); 159 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState);
160 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); 160 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState);
161 }; 161 };
162 162
163 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ 163 #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