| 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/fxfa/app/xfa_fffield.h" | 7 #include "xfa/fxfa/app/xfa_fffield.h" |
| 8 | 8 |
| 9 #include "xfa/fwl/basewidget/ifwl_edit.h" | 9 #include "xfa/fwl/basewidget/ifwl_edit.h" |
| 10 #include "xfa/fwl/core/cfwl_message.h" | 10 #include "xfa/fwl/core/cfwl_message.h" |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 } | 778 } |
| 779 FX_BOOL CXFA_FFField::CommitData() { | 779 FX_BOOL CXFA_FFField::CommitData() { |
| 780 return FALSE; | 780 return FALSE; |
| 781 } | 781 } |
| 782 FX_BOOL CXFA_FFField::IsDataChanged() { | 782 FX_BOOL CXFA_FFField::IsDataChanged() { |
| 783 return FALSE; | 783 return FALSE; |
| 784 } | 784 } |
| 785 void CXFA_FFField::TranslateFWLMessage(CFWL_Message* pMessage) { | 785 void CXFA_FFField::TranslateFWLMessage(CFWL_Message* pMessage) { |
| 786 GetApp()->GetWidgetMgrDelegate()->OnProcessMessageToForm(pMessage); | 786 GetApp()->GetWidgetMgrDelegate()->OnProcessMessageToForm(pMessage); |
| 787 } | 787 } |
| 788 int32_t CXFA_FFField::OnProcessMessage(CFWL_Message* pMessage) { | 788 void CXFA_FFField::OnProcessMessage(CFWL_Message* pMessage) {} |
| 789 return FWL_ERR_Succeeded; | |
| 790 } | |
| 791 | 789 |
| 792 FWL_ERR CXFA_FFField::OnProcessEvent(CFWL_Event* pEvent) { | 790 void CXFA_FFField::OnProcessEvent(CFWL_Event* pEvent) { |
| 793 switch (pEvent->GetClassID()) { | 791 switch (pEvent->GetClassID()) { |
| 794 case CFWL_EventType::Mouse: { | 792 case CFWL_EventType::Mouse: { |
| 795 CFWL_EvtMouse* event = (CFWL_EvtMouse*)pEvent; | 793 CFWL_EvtMouse* event = (CFWL_EvtMouse*)pEvent; |
| 796 if (event->m_dwCmd == FWL_MouseCommand::Enter) { | 794 if (event->m_dwCmd == FWL_MouseCommand::Enter) { |
| 797 CXFA_EventParam eParam; | 795 CXFA_EventParam eParam; |
| 798 eParam.m_eType = XFA_EVENT_MouseEnter; | 796 eParam.m_eType = XFA_EVENT_MouseEnter; |
| 799 eParam.m_pTarget = m_pDataAcc; | 797 eParam.m_pTarget = m_pDataAcc; |
| 800 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_MouseEnter, &eParam); | 798 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_MouseEnter, &eParam); |
| 801 } else if (event->m_dwCmd == FWL_MouseCommand::Leave) { | 799 } else if (event->m_dwCmd == FWL_MouseCommand::Leave) { |
| 802 CXFA_EventParam eParam; | 800 CXFA_EventParam eParam; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 819 case CFWL_EventType::Click: { | 817 case CFWL_EventType::Click: { |
| 820 CXFA_EventParam eParam; | 818 CXFA_EventParam eParam; |
| 821 eParam.m_eType = XFA_EVENT_Click; | 819 eParam.m_eType = XFA_EVENT_Click; |
| 822 eParam.m_pTarget = m_pDataAcc; | 820 eParam.m_pTarget = m_pDataAcc; |
| 823 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam); | 821 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam); |
| 824 break; | 822 break; |
| 825 } | 823 } |
| 826 default: | 824 default: |
| 827 break; | 825 break; |
| 828 } | 826 } |
| 829 return FWL_ERR_Succeeded; | |
| 830 } | 827 } |
| 831 | 828 |
| 832 FWL_ERR CXFA_FFField::OnDrawWidget(CFX_Graphics* pGraphics, | 829 void CXFA_FFField::OnDrawWidget(CFX_Graphics* pGraphics, |
| 833 const CFX_Matrix* pMatrix) { | 830 const CFX_Matrix* pMatrix) {} |
| 834 return FWL_ERR_Succeeded; | |
| 835 } | |
| OLD | NEW |