| 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_BASEWIDGET_FWL_SPINBUTTONIMP_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_FWL_SPINBUTTONIMP_H_ |
| 8 #define XFA_FWL_BASEWIDGET_FWL_SPINBUTTONIMP_H_ | 8 #define XFA_FWL_BASEWIDGET_FWL_SPINBUTTONIMP_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/fwl_widgetimp.h" | 10 #include "xfa/fwl/core/fwl_widgetimp.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 FX_BOOL m_bLButtonDwn; | 57 FX_BOOL m_bLButtonDwn; |
| 58 IFWL_TimerInfo* m_pTimerInfo; | 58 IFWL_TimerInfo* m_pTimerInfo; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 class CFWL_SpinButtonImpDelegate : public CFWL_WidgetImpDelegate { | 61 class CFWL_SpinButtonImpDelegate : public CFWL_WidgetImpDelegate { |
| 62 public: | 62 public: |
| 63 CFWL_SpinButtonImpDelegate(CFWL_SpinButtonImp* pOwner); | 63 CFWL_SpinButtonImpDelegate(CFWL_SpinButtonImp* pOwner); |
| 64 void OnProcessMessage(CFWL_Message* pMessage) override; | 64 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 65 void OnProcessEvent(CFWL_Event* pEvent) override; | 65 void OnProcessEvent(CFWL_Event* pEvent) override; |
| 66 void OnDrawWidget(CFX_Graphics* pGraphics, | 66 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 67 const CFX_Matrix* pMatrix = NULL) override; | 67 const CFX_Matrix* pMatrix = nullptr) override; |
| 68 | 68 |
| 69 protected: | 69 protected: |
| 70 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); | 70 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); |
| 71 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 71 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
| 72 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 72 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
| 73 void OnMouseMove(CFWL_MsgMouse* pMsg); | 73 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 74 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 74 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 75 void OnKeyDown(CFWL_MsgKey* pMsg); | 75 void OnKeyDown(CFWL_MsgKey* pMsg); |
| 76 CFWL_SpinButtonImp* m_pOwner; | 76 CFWL_SpinButtonImp* m_pOwner; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 #endif // XFA_FWL_BASEWIDGET_FWL_SPINBUTTONIMP_H_ | 79 #endif // XFA_FWL_BASEWIDGET_FWL_SPINBUTTONIMP_H_ |
| OLD | NEW |