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

Side by Side Diff: xfa/fwl/basewidget/fwl_scrollbarimp.h

Issue 2037573003: Remove FWL_HTIMER in favor of IWFL_TimerInfo (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits. Created 4 years, 6 months 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/basewidget/fwl_caretimp.cpp ('k') | xfa/fwl/basewidget/fwl_scrollbarimp.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_BASEWIDGET_FWL_SCROLLBARIMP_H_ 7 #ifndef XFA_FWL_BASEWIDGET_FWL_SCROLLBARIMP_H_
8 #define XFA_FWL_BASEWIDGET_FWL_SCROLLBARIMP_H_ 8 #define XFA_FWL_BASEWIDGET_FWL_SCROLLBARIMP_H_
9 9
10 #include "xfa/fwl/core/fwl_widgetimp.h" 10 #include "xfa/fwl/core/fwl_widgetimp.h"
(...skipping 14 matching lines...) Expand all
25 FWL_Error GetClassName(CFX_WideString& wsClass) const override; 25 FWL_Error GetClassName(CFX_WideString& wsClass) const override;
26 FWL_Type GetClassID() const override; 26 FWL_Type GetClassID() const override;
27 FWL_Error Initialize() override; 27 FWL_Error Initialize() override;
28 FWL_Error Finalize() override; 28 FWL_Error Finalize() override;
29 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 29 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
30 FWL_Error Update() override; 30 FWL_Error Update() override;
31 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 31 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
32 const CFX_Matrix* pMatrix = nullptr) override; 32 const CFX_Matrix* pMatrix = nullptr) override;
33 33
34 // IFWL_Timer 34 // IFWL_Timer
35 int32_t Run(FWL_HTIMER hTimer) override; 35 void Run(IFWL_TimerInfo* pTimerInfo) override;
36 36
37 FX_BOOL IsVertical(); 37 FX_BOOL IsVertical();
38 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); 38 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax);
39 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax); 39 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax);
40 FX_FLOAT GetPageSize(); 40 FX_FLOAT GetPageSize();
41 FWL_Error SetPageSize(FX_FLOAT fPageSize); 41 FWL_Error SetPageSize(FX_FLOAT fPageSize);
42 FX_FLOAT GetStepSize(); 42 FX_FLOAT GetStepSize();
43 FWL_Error SetStepSize(FX_FLOAT fStepSize); 43 FWL_Error SetStepSize(FX_FLOAT fStepSize);
44 FX_FLOAT GetPos(); 44 FX_FLOAT GetPos();
45 FWL_Error SetPos(FX_FLOAT fPos); 45 FWL_Error SetPos(FX_FLOAT fPos);
(...skipping 21 matching lines...) Expand all
67 void CalcMinButtonRect(CFX_RectF& rect); 67 void CalcMinButtonRect(CFX_RectF& rect);
68 void CalcMaxButtonRect(CFX_RectF& rect); 68 void CalcMaxButtonRect(CFX_RectF& rect);
69 void CalcThumbButtonRect(CFX_RectF& rect); 69 void CalcThumbButtonRect(CFX_RectF& rect);
70 void CalcMinTrackRect(CFX_RectF& rect); 70 void CalcMinTrackRect(CFX_RectF& rect);
71 void CalcMaxTrackRect(CFX_RectF& rect); 71 void CalcMaxTrackRect(CFX_RectF& rect);
72 FX_FLOAT GetTrackPointPos(FX_FLOAT fx, FX_FLOAT fy); 72 FX_FLOAT GetTrackPointPos(FX_FLOAT fx, FX_FLOAT fy);
73 void GetTrackRect(CFX_RectF& rect, FX_BOOL bLower = TRUE); 73 void GetTrackRect(CFX_RectF& rect, FX_BOOL bLower = TRUE);
74 FX_BOOL SendEvent(); 74 FX_BOOL SendEvent();
75 FX_BOOL OnScroll(uint32_t dwCode, FX_FLOAT fPos); 75 FX_BOOL OnScroll(uint32_t dwCode, FX_FLOAT fPos);
76 76
77 FWL_HTIMER m_hTimer; 77 IFWL_TimerInfo* m_pTimerInfo;
78 FX_FLOAT m_fRangeMin; 78 FX_FLOAT m_fRangeMin;
79 FX_FLOAT m_fRangeMax; 79 FX_FLOAT m_fRangeMax;
80 FX_FLOAT m_fPageSize; 80 FX_FLOAT m_fPageSize;
81 FX_FLOAT m_fStepSize; 81 FX_FLOAT m_fStepSize;
82 FX_FLOAT m_fPos; 82 FX_FLOAT m_fPos;
83 FX_FLOAT m_fTrackPos; 83 FX_FLOAT m_fTrackPos;
84 int32_t m_iMinButtonState; 84 int32_t m_iMinButtonState;
85 int32_t m_iMaxButtonState; 85 int32_t m_iMaxButtonState;
86 int32_t m_iThumbButtonState; 86 int32_t m_iThumbButtonState;
87 int32_t m_iMinTrackState; 87 int32_t m_iMinTrackState;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 int32_t& iState, 138 int32_t& iState,
139 FX_FLOAT fx, 139 FX_FLOAT fx,
140 FX_FLOAT fy); 140 FX_FLOAT fy);
141 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); 141 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState);
142 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); 142 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState);
143 143
144 CFWL_ScrollBarImp* m_pOwner; 144 CFWL_ScrollBarImp* m_pOwner;
145 }; 145 };
146 146
147 #endif // XFA_FWL_BASEWIDGET_FWL_SCROLLBARIMP_H_ 147 #endif // XFA_FWL_BASEWIDGET_FWL_SCROLLBARIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_caretimp.cpp ('k') | xfa/fwl/basewidget/fwl_scrollbarimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698