| 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_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" |
| 11 #include "xfa/fwl/core/cfwl_evtscroll.h" | 11 #include "xfa/fwl/core/cfwl_evtscroll.h" |
| 12 #include "xfa/fwl/core/cfwl_widgetproperties.h" | 12 #include "xfa/fwl/core/cfwl_widgetproperties.h" |
| 13 #include "xfa/fwl/core/ifwl_dataprovider.h" | |
| 14 #include "xfa/fwl/core/ifwl_timer.h" | 13 #include "xfa/fwl/core/ifwl_timer.h" |
| 15 #include "xfa/fwl/core/ifwl_widget.h" | 14 #include "xfa/fwl/core/ifwl_widget.h" |
| 16 | 15 |
| 17 class IFWL_Widget; | 16 class IFWL_Widget; |
| 18 | 17 |
| 19 #define FWL_STYLEEXT_SCB_Horz (0L << 0) | 18 #define FWL_STYLEEXT_SCB_Horz (0L << 0) |
| 20 #define FWL_STYLEEXT_SCB_Vert (1L << 0) | 19 #define FWL_STYLEEXT_SCB_Vert (1L << 0) |
| 21 | 20 |
| 22 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; | |
| 23 | |
| 24 class IFWL_ScrollBar : public IFWL_Widget { | 21 class IFWL_ScrollBar : public IFWL_Widget { |
| 25 public: | 22 public: |
| 26 IFWL_ScrollBar(const IFWL_App* app, | 23 IFWL_ScrollBar(const IFWL_App* app, |
| 27 std::unique_ptr<CFWL_WidgetProperties> properties, | 24 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 28 IFWL_Widget* pOuter); | 25 IFWL_Widget* pOuter); |
| 29 ~IFWL_ScrollBar() override; | 26 ~IFWL_ScrollBar() override; |
| 30 | 27 |
| 31 // IFWL_Widget | 28 // IFWL_Widget |
| 32 FWL_Type GetClassID() const override; | 29 FWL_Type GetClassID() const override; |
| 33 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 30 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 CFX_RectF m_rtMinBtn; | 140 CFX_RectF m_rtMinBtn; |
| 144 CFX_RectF m_rtMaxBtn; | 141 CFX_RectF m_rtMaxBtn; |
| 145 CFX_RectF m_rtMinTrack; | 142 CFX_RectF m_rtMinTrack; |
| 146 CFX_RectF m_rtMaxTrack; | 143 CFX_RectF m_rtMaxTrack; |
| 147 bool m_bCustomLayout; | 144 bool m_bCustomLayout; |
| 148 FX_FLOAT m_fMinThumb; | 145 FX_FLOAT m_fMinThumb; |
| 149 IFWL_ScrollBar::Timer m_Timer; | 146 IFWL_ScrollBar::Timer m_Timer; |
| 150 }; | 147 }; |
| 151 | 148 |
| 152 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ | 149 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ |
| OLD | NEW |