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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
443 ms.m_fy = fy; | 443 ms.m_fy = fy; |
444 FWLToClient(ms.m_fx, ms.m_fy); | 444 FWLToClient(ms.m_fx, ms.m_fy); |
445 ms.m_pDstTarget = m_pNormalWidget->m_pIface; | 445 ms.m_pDstTarget = m_pNormalWidget->m_pIface; |
446 TranslateFWLMessage(&ms); | 446 TranslateFWLMessage(&ms); |
447 return TRUE; | 447 return TRUE; |
448 } | 448 } |
449 FX_BOOL CXFA_FFField::OnMouseWheel(uint32_t dwFlags, | 449 FX_BOOL CXFA_FFField::OnMouseWheel(uint32_t dwFlags, |
450 int16_t zDelta, | 450 int16_t zDelta, |
451 FX_FLOAT fx, | 451 FX_FLOAT fx, |
452 FX_FLOAT fy) { | 452 FX_FLOAT fy) { |
453 return FALSE; | |
Tom Sepez
2016/05/23 16:57:54
hahahaha
| |
454 if (!m_pNormalWidget) { | 453 if (!m_pNormalWidget) { |
455 return FALSE; | 454 return FALSE; |
456 } | 455 } |
457 CFWL_MsgMouseWheel ms; | 456 CFWL_MsgMouseWheel ms; |
458 ms.m_dwFlags = dwFlags; | 457 ms.m_dwFlags = dwFlags; |
459 ms.m_fx = fx; | 458 ms.m_fx = fx; |
460 ms.m_fy = fy; | 459 ms.m_fy = fy; |
461 FWLToClient(ms.m_fx, ms.m_fy); | 460 FWLToClient(ms.m_fx, ms.m_fy); |
462 ms.m_fDeltaX = zDelta; | 461 ms.m_fDeltaX = zDelta; |
463 ms.m_fDeltaY = 0; | 462 ms.m_fDeltaY = 0; |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
820 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam); | 819 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam); |
821 break; | 820 break; |
822 } | 821 } |
823 default: | 822 default: |
824 break; | 823 break; |
825 } | 824 } |
826 } | 825 } |
827 | 826 |
828 void CXFA_FFField::OnDrawWidget(CFX_Graphics* pGraphics, | 827 void CXFA_FFField::OnDrawWidget(CFX_Graphics* pGraphics, |
829 const CFX_Matrix* pMatrix) {} | 828 const CFX_Matrix* pMatrix) {} |
OLD | NEW |