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_ffimageedit.h" | 7 #include "xfa/fxfa/app/xfa_ffimageedit.h" |
8 | 8 |
9 #include "xfa/fwl/core/cfwl_message.h" | 9 #include "xfa/fwl/core/cfwl_message.h" |
10 #include "xfa/fwl/core/fwl_noteimp.h" | 10 #include "xfa/fwl/core/fwl_noteimp.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 FX_FLOAT fx, | 87 FX_FLOAT fx, |
88 FX_FLOAT fy) { | 88 FX_FLOAT fy) { |
89 if (m_pDataAcc->GetAccess() != XFA_ATTRIBUTEENUM_Open) | 89 if (m_pDataAcc->GetAccess() != XFA_ATTRIBUTEENUM_Open) |
90 return FALSE; | 90 return FALSE; |
91 | 91 |
92 if (!PtInActiveRect(fx, fy)) | 92 if (!PtInActiveRect(fx, fy)) |
93 return FALSE; | 93 return FALSE; |
94 | 94 |
95 SetButtonDown(TRUE); | 95 SetButtonDown(TRUE); |
96 CFWL_MsgMouse ms; | 96 CFWL_MsgMouse ms; |
97 ms.m_dwCmd = FWL_MSGMOUSECMD_LButtonDown; | 97 ms.m_dwCmd = FWL_MouseCommand::LeftButtonDown; |
98 ms.m_dwFlags = dwFlags; | 98 ms.m_dwFlags = dwFlags; |
99 ms.m_fx = fx; | 99 ms.m_fx = fx; |
100 ms.m_fy = fy; | 100 ms.m_fy = fy; |
101 ms.m_pDstTarget = m_pNormalWidget->m_pIface; | 101 ms.m_pDstTarget = m_pNormalWidget->m_pIface; |
102 FWLToClient(ms.m_fx, ms.m_fy); | 102 FWLToClient(ms.m_fx, ms.m_fy); |
103 TranslateFWLMessage(&ms); | 103 TranslateFWLMessage(&ms); |
104 return TRUE; | 104 return TRUE; |
105 } | 105 } |
106 | 106 |
107 void CXFA_FFImageEdit::SetFWLRect() { | 107 void CXFA_FFImageEdit::SetFWLRect() { |
(...skipping 19 matching lines...) Expand all Loading... |
127 return m_pOldDelegate->OnProcessMessage(pMessage); | 127 return m_pOldDelegate->OnProcessMessage(pMessage); |
128 } | 128 } |
129 FWL_ERR CXFA_FFImageEdit::OnProcessEvent(CFWL_Event* pEvent) { | 129 FWL_ERR CXFA_FFImageEdit::OnProcessEvent(CFWL_Event* pEvent) { |
130 CXFA_FFField::OnProcessEvent(pEvent); | 130 CXFA_FFField::OnProcessEvent(pEvent); |
131 return m_pOldDelegate->OnProcessEvent(pEvent); | 131 return m_pOldDelegate->OnProcessEvent(pEvent); |
132 } | 132 } |
133 FWL_ERR CXFA_FFImageEdit::OnDrawWidget(CFX_Graphics* pGraphics, | 133 FWL_ERR CXFA_FFImageEdit::OnDrawWidget(CFX_Graphics* pGraphics, |
134 const CFX_Matrix* pMatrix) { | 134 const CFX_Matrix* pMatrix) { |
135 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); | 135 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); |
136 } | 136 } |
OLD | NEW |