| 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" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 FWL_SCBCODE_StepForward, | 32 FWL_SCBCODE_StepForward, |
| 33 FWL_SCBCODE_Pos, | 33 FWL_SCBCODE_Pos, |
| 34 FWL_SCBCODE_TrackPos, | 34 FWL_SCBCODE_TrackPos, |
| 35 FWL_SCBCODE_EndScroll, | 35 FWL_SCBCODE_EndScroll, |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; | 38 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; |
| 39 | 39 |
| 40 class IFWL_ScrollBar : public IFWL_Widget, public IFWL_Timer { | 40 class IFWL_ScrollBar : public IFWL_Widget, public IFWL_Timer { |
| 41 public: | 41 public: |
| 42 static IFWL_ScrollBar* Create(const CFWL_WidgetImpProperties& properties, | |
| 43 IFWL_Widget* pOuter); | |
| 44 | |
| 45 IFWL_ScrollBar(const CFWL_WidgetImpProperties& properties, | 42 IFWL_ScrollBar(const CFWL_WidgetImpProperties& properties, |
| 46 IFWL_Widget* pOuter); | 43 IFWL_Widget* pOuter); |
| 47 ~IFWL_ScrollBar() override; | 44 ~IFWL_ScrollBar() override; |
| 48 | 45 |
| 49 // IFWL_Widget | 46 // IFWL_Widget |
| 50 FWL_Error GetClassName(CFX_WideString& wsClass) const override; | 47 FWL_Error GetClassName(CFX_WideString& wsClass) const override; |
| 51 FWL_Type GetClassID() const override; | 48 FWL_Type GetClassID() const override; |
| 52 FWL_Error Initialize() override; | 49 FWL_Error Initialize() override; |
| 53 FWL_Error Finalize() override; | 50 FWL_Error Finalize() override; |
| 54 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 51 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 int32_t& iState, | 163 int32_t& iState, |
| 167 FX_FLOAT fx, | 164 FX_FLOAT fx, |
| 168 FX_FLOAT fy); | 165 FX_FLOAT fy); |
| 169 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); | 166 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); |
| 170 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); | 167 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); |
| 171 | 168 |
| 172 IFWL_ScrollBar* m_pOwner; | 169 IFWL_ScrollBar* m_pOwner; |
| 173 }; | 170 }; |
| 174 | 171 |
| 175 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ | 172 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ |
| OLD | NEW |