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 "xfa/src/foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
8 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" | 8 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" |
9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" | 9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" |
10 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" | 10 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" |
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 break; | 967 break; |
968 } | 968 } |
969 } | 969 } |
970 CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); | 970 CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); |
971 return iRet; | 971 return iRet; |
972 } | 972 } |
973 FWL_ERR CFWL_MonthCalendarImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, | 973 FWL_ERR CFWL_MonthCalendarImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, |
974 const CFX_Matrix* pMatrix) { | 974 const CFX_Matrix* pMatrix) { |
975 return m_pOwner->DrawWidget(pGraphics, pMatrix); | 975 return m_pOwner->DrawWidget(pGraphics, pMatrix); |
976 } | 976 } |
| 977 |
977 void CFWL_MonthCalendarImpDelegate::OnActivate(CFWL_Message* pMsg) { | 978 void CFWL_MonthCalendarImpDelegate::OnActivate(CFWL_Message* pMsg) { |
978 return; | |
979 } | 979 } |
| 980 |
980 void CFWL_MonthCalendarImpDelegate::OnFocusChanged(CFWL_Message* pMsg, | 981 void CFWL_MonthCalendarImpDelegate::OnFocusChanged(CFWL_Message* pMsg, |
981 FX_BOOL bSet) { | 982 FX_BOOL bSet) { |
982 if (bSet) { | 983 if (bSet) { |
983 m_pOwner->m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused; | 984 m_pOwner->m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused; |
984 } else { | 985 } else { |
985 m_pOwner->m_pProperties->m_dwStates &= ~FWL_WGTSTATE_Focused; | 986 m_pOwner->m_pProperties->m_dwStates &= ~FWL_WGTSTATE_Focused; |
986 } | 987 } |
987 m_pOwner->Repaint(&m_pOwner->m_rtClient); | 988 m_pOwner->Repaint(&m_pOwner->m_rtClient); |
988 } | 989 } |
989 void CFWL_MonthCalendarImpDelegate::OnLButtonDown(CFWL_MsgMouse* pMsg) { | 990 void CFWL_MonthCalendarImpDelegate::OnLButtonDown(CFWL_MsgMouse* pMsg) { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 if (m_pOwner->m_iHovered > 0) { | 1091 if (m_pOwner->m_iHovered > 0) { |
1091 CFX_RectF rtInvalidate; | 1092 CFX_RectF rtInvalidate; |
1092 rtInvalidate.Set(0, 0, 0, 0); | 1093 rtInvalidate.Set(0, 0, 0, 0); |
1093 m_pOwner->GetDayRect(m_pOwner->m_iHovered, rtInvalidate); | 1094 m_pOwner->GetDayRect(m_pOwner->m_iHovered, rtInvalidate); |
1094 m_pOwner->m_iHovered = -1; | 1095 m_pOwner->m_iHovered = -1; |
1095 if (!rtInvalidate.IsEmpty()) { | 1096 if (!rtInvalidate.IsEmpty()) { |
1096 m_pOwner->Repaint(&rtInvalidate); | 1097 m_pOwner->Repaint(&rtInvalidate); |
1097 } | 1098 } |
1098 } | 1099 } |
1099 } | 1100 } |
OLD | NEW |