| 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 #include "../../../foxitlib.h" | 7 #include "../../../foxitlib.h" |
| 8 #include "../core/include/fwl_targetimp.h" | 8 #include "../core/include/fwl_targetimp.h" |
| 9 #include "../core/include/fwl_noteimp.h" | 9 #include "../core/include/fwl_noteimp.h" |
| 10 #include "../core/include/fwl_widgetimp.h" | 10 #include "../core/include/fwl_widgetimp.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 m_hTimer(NULL), | 75 m_hTimer(NULL), |
| 76 m_fRangeMin(0), | 76 m_fRangeMin(0), |
| 77 m_fRangeMax(-1), | 77 m_fRangeMax(-1), |
| 78 m_fPageSize(0), | 78 m_fPageSize(0), |
| 79 m_fStepSize(0), | 79 m_fStepSize(0), |
| 80 m_fPos(0), | 80 m_fPos(0), |
| 81 m_fTrackPos(0), | 81 m_fTrackPos(0), |
| 82 m_iMinButtonState(FWL_PARTSTATE_SCB_Normal), | 82 m_iMinButtonState(FWL_PARTSTATE_SCB_Normal), |
| 83 m_iMaxButtonState(FWL_PARTSTATE_SCB_Normal), | 83 m_iMaxButtonState(FWL_PARTSTATE_SCB_Normal), |
| 84 m_iThumbButtonState(FWL_PARTSTATE_SCB_Normal), | 84 m_iThumbButtonState(FWL_PARTSTATE_SCB_Normal), |
| 85 m_iMinTrackState(FWL_PARTSTATE_SCB_Normal), |
| 86 m_iMaxTrackState(FWL_PARTSTATE_SCB_Normal), |
| 85 m_fLastTrackPos(0), | 87 m_fLastTrackPos(0), |
| 86 m_cpTrackPointX(0), | 88 m_cpTrackPointX(0), |
| 87 m_cpTrackPointY(0), | 89 m_cpTrackPointY(0), |
| 88 m_iMinTrackState(FWL_PARTSTATE_SCB_Normal), | |
| 89 m_iMaxTrackState(FWL_PARTSTATE_SCB_Normal), | |
| 90 m_iMouseWheel(0), | 90 m_iMouseWheel(0), |
| 91 m_bTrackMouseLeave(FALSE), | 91 m_bTrackMouseLeave(FALSE), |
| 92 m_bMouseHover(FALSE), | 92 m_bMouseHover(FALSE), |
| 93 m_bMouseDown(FALSE), |
| 93 m_bRepaintThumb(FALSE), | 94 m_bRepaintThumb(FALSE), |
| 94 m_bMouseDown(FALSE), | |
| 95 m_fButtonLen(0), | 95 m_fButtonLen(0), |
| 96 m_bMinSize(FALSE), | 96 m_bMinSize(FALSE), |
| 97 m_bCustomLayout(FALSE), | 97 m_bCustomLayout(FALSE), |
| 98 m_fMinThumb(FWL_SCROLLBAR_MinThumb) { | 98 m_fMinThumb(FWL_SCROLLBAR_MinThumb) { |
| 99 m_rtClient.Reset(); | 99 m_rtClient.Reset(); |
| 100 m_rtThumb.Reset(); | 100 m_rtThumb.Reset(); |
| 101 m_rtMinBtn.Reset(); | 101 m_rtMinBtn.Reset(); |
| 102 m_rtMaxBtn.Reset(); | 102 m_rtMaxBtn.Reset(); |
| 103 m_rtMinTrack.Reset(); | 103 m_rtMinTrack.Reset(); |
| 104 m_rtMaxTrack.Reset(); | 104 m_rtMaxTrack.Reset(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 117 m_iMaxButtonState(FWL_PARTSTATE_SCB_Normal), | 117 m_iMaxButtonState(FWL_PARTSTATE_SCB_Normal), |
| 118 m_iThumbButtonState(FWL_PARTSTATE_SCB_Normal), | 118 m_iThumbButtonState(FWL_PARTSTATE_SCB_Normal), |
| 119 m_fLastTrackPos(0), | 119 m_fLastTrackPos(0), |
| 120 m_cpTrackPointX(0), | 120 m_cpTrackPointX(0), |
| 121 m_cpTrackPointY(0), | 121 m_cpTrackPointY(0), |
| 122 m_iMinTrackState(FWL_PARTSTATE_SCB_Normal), | 122 m_iMinTrackState(FWL_PARTSTATE_SCB_Normal), |
| 123 m_iMaxTrackState(FWL_PARTSTATE_SCB_Normal), | 123 m_iMaxTrackState(FWL_PARTSTATE_SCB_Normal), |
| 124 m_iMouseWheel(0), | 124 m_iMouseWheel(0), |
| 125 m_bTrackMouseLeave(FALSE), | 125 m_bTrackMouseLeave(FALSE), |
| 126 m_bMouseHover(FALSE), | 126 m_bMouseHover(FALSE), |
| 127 m_bMouseDown(FALSE), |
| 127 m_bRepaintThumb(FALSE), | 128 m_bRepaintThumb(FALSE), |
| 128 m_bMouseDown(FALSE), | |
| 129 m_fButtonLen(0), | 129 m_fButtonLen(0), |
| 130 m_bMinSize(FALSE), | 130 m_bMinSize(FALSE), |
| 131 m_bCustomLayout(FALSE), | 131 m_bCustomLayout(FALSE), |
| 132 m_fMinThumb(FWL_SCROLLBAR_MinThumb) { | 132 m_fMinThumb(FWL_SCROLLBAR_MinThumb) { |
| 133 m_rtClient.Reset(); | 133 m_rtClient.Reset(); |
| 134 m_rtThumb.Reset(); | 134 m_rtThumb.Reset(); |
| 135 m_rtMinBtn.Reset(); | 135 m_rtMinBtn.Reset(); |
| 136 m_rtMaxBtn.Reset(); | 136 m_rtMaxBtn.Reset(); |
| 137 m_rtMinTrack.Reset(); | 137 m_rtMinTrack.Reset(); |
| 138 m_rtMaxTrack.Reset(); | 138 m_rtMaxTrack.Reset(); |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 } | 834 } |
| 835 void CFWL_ScrollBarImpDelegate::DoMouseHover(int32_t iItem, | 835 void CFWL_ScrollBarImpDelegate::DoMouseHover(int32_t iItem, |
| 836 const CFX_RectF& rtItem, | 836 const CFX_RectF& rtItem, |
| 837 int32_t& iState) { | 837 int32_t& iState) { |
| 838 if (iState == FWL_PARTSTATE_SCB_Hovered) { | 838 if (iState == FWL_PARTSTATE_SCB_Hovered) { |
| 839 return; | 839 return; |
| 840 } | 840 } |
| 841 iState = FWL_PARTSTATE_SCB_Hovered; | 841 iState = FWL_PARTSTATE_SCB_Hovered; |
| 842 m_pOwner->Repaint(&rtItem); | 842 m_pOwner->Repaint(&rtItem); |
| 843 } | 843 } |
| OLD | NEW |