| 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_CHECKBOXIMP_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_FWL_CHECKBOXIMP_H_ |
| 8 #define XFA_FWL_BASEWIDGET_FWL_CHECKBOXIMP_H_ | 8 #define XFA_FWL_BASEWIDGET_FWL_CHECKBOXIMP_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/fwl_widgetimp.h" | 10 #include "xfa/fwl/core/fwl_widgetimp.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 int32_t m_iTTOAlign; | 49 int32_t m_iTTOAlign; |
| 50 FX_BOOL m_bBtnDown; | 50 FX_BOOL m_bBtnDown; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 class CFWL_CheckBoxImpDelegate : public CFWL_WidgetImpDelegate { | 53 class CFWL_CheckBoxImpDelegate : public CFWL_WidgetImpDelegate { |
| 54 public: | 54 public: |
| 55 CFWL_CheckBoxImpDelegate(CFWL_CheckBoxImp* pOwner); | 55 CFWL_CheckBoxImpDelegate(CFWL_CheckBoxImp* pOwner); |
| 56 | 56 |
| 57 void OnProcessMessage(CFWL_Message* pMessage) override; | 57 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 58 void OnDrawWidget(CFX_Graphics* pGraphics, | 58 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 59 const CFX_Matrix* pMatrix = NULL) override; | 59 const CFX_Matrix* pMatrix = nullptr) override; |
| 60 | 60 |
| 61 protected: | 61 protected: |
| 62 void OnActivate(CFWL_Message* pMsg); | 62 void OnActivate(CFWL_Message* pMsg); |
| 63 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); | 63 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); |
| 64 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 64 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
| 65 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 65 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
| 66 void OnMouseMove(CFWL_MsgMouse* pMsg); | 66 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 67 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 67 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 68 void OnKeyDown(CFWL_MsgKey* pMsg); | 68 void OnKeyDown(CFWL_MsgKey* pMsg); |
| 69 | 69 |
| 70 CFWL_CheckBoxImp* m_pOwner; | 70 CFWL_CheckBoxImp* m_pOwner; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 #endif // XFA_FWL_BASEWIDGET_FWL_CHECKBOXIMP_H_ | 73 #endif // XFA_FWL_BASEWIDGET_FWL_CHECKBOXIMP_H_ |
| OLD | NEW |