| OLD | NEW |
| 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_SCROLLBAR_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_SCROLLBAR_H_ |
| 8 #define XFA_FWL_CORE_CFWL_SCROLLBAR_H_ | 8 #define XFA_FWL_CORE_CFWL_SCROLLBAR_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 class CFWL_ScrollBar : public CFWL_Widget { | 23 class CFWL_ScrollBar : public CFWL_Widget { |
| 24 public: | 24 public: |
| 25 CFWL_ScrollBar(const CFWL_App* app, | 25 CFWL_ScrollBar(const CFWL_App* app, |
| 26 std::unique_ptr<CFWL_WidgetProperties> properties, | 26 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 27 CFWL_Widget* pOuter); | 27 CFWL_Widget* pOuter); |
| 28 ~CFWL_ScrollBar() override; | 28 ~CFWL_ScrollBar() override; |
| 29 | 29 |
| 30 // CFWL_Widget | 30 // CFWL_Widget |
| 31 FWL_Type GetClassID() const override; | 31 FWL_Type GetClassID() const override; |
| 32 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override; | |
| 33 void Update() override; | 32 void Update() override; |
| 34 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; | 33 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; |
| 35 void OnProcessMessage(CFWL_Message* pMessage) override; | 34 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 36 void OnDrawWidget(CFX_Graphics* pGraphics, | 35 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 37 const CFX_Matrix* pMatrix) override; | 36 const CFX_Matrix* pMatrix) override; |
| 38 | 37 |
| 39 void GetRange(FX_FLOAT* fMin, FX_FLOAT* fMax) const { | 38 void GetRange(FX_FLOAT* fMin, FX_FLOAT* fMax) const { |
| 40 ASSERT(fMin); | 39 ASSERT(fMin); |
| 41 ASSERT(fMax); | 40 ASSERT(fMax); |
| 42 *fMin = m_fRangeMin; | 41 *fMin = m_fRangeMin; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 CFX_RectF m_rtThumb; | 139 CFX_RectF m_rtThumb; |
| 141 CFX_RectF m_rtMinBtn; | 140 CFX_RectF m_rtMinBtn; |
| 142 CFX_RectF m_rtMaxBtn; | 141 CFX_RectF m_rtMaxBtn; |
| 143 CFX_RectF m_rtMinTrack; | 142 CFX_RectF m_rtMinTrack; |
| 144 CFX_RectF m_rtMaxTrack; | 143 CFX_RectF m_rtMaxTrack; |
| 145 FX_FLOAT m_fMinThumb; | 144 FX_FLOAT m_fMinThumb; |
| 146 CFWL_ScrollBar::Timer m_Timer; | 145 CFWL_ScrollBar::Timer m_Timer; |
| 147 }; | 146 }; |
| 148 | 147 |
| 149 #endif // XFA_FWL_CORE_CFWL_SCROLLBAR_H_ | 148 #endif // XFA_FWL_CORE_CFWL_SCROLLBAR_H_ |
| OLD | NEW |