| 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_ffcheckbutton.h" | 7 #include "xfa/fxfa/app/xfa_ffcheckbutton.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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 FX_FLOAT fx, | 243 FX_FLOAT fx, |
| 244 FX_FLOAT fy) { | 244 FX_FLOAT fy) { |
| 245 if (!m_pNormalWidget) { | 245 if (!m_pNormalWidget) { |
| 246 return FALSE; | 246 return FALSE; |
| 247 } | 247 } |
| 248 if (!IsButtonDown()) { | 248 if (!IsButtonDown()) { |
| 249 return FALSE; | 249 return FALSE; |
| 250 } | 250 } |
| 251 SetButtonDown(FALSE); | 251 SetButtonDown(FALSE); |
| 252 CFWL_MsgMouse ms; | 252 CFWL_MsgMouse ms; |
| 253 ms.m_dwCmd = FWL_MSGMOUSECMD_LButtonUp; | 253 ms.m_dwCmd = FWL_MouseCommand::LeftButtonUp; |
| 254 ms.m_dwFlags = dwFlags; | 254 ms.m_dwFlags = dwFlags; |
| 255 ms.m_fx = fx; | 255 ms.m_fx = fx; |
| 256 ms.m_fy = fy; | 256 ms.m_fy = fy; |
| 257 FWLToClient(ms.m_fx, ms.m_fy); | 257 FWLToClient(ms.m_fx, ms.m_fy); |
| 258 ms.m_pDstTarget = m_pNormalWidget->m_pIface; | 258 ms.m_pDstTarget = m_pNormalWidget->m_pIface; |
| 259 TranslateFWLMessage(&ms); | 259 TranslateFWLMessage(&ms); |
| 260 return TRUE; | 260 return TRUE; |
| 261 } | 261 } |
| 262 XFA_CHECKSTATE CXFA_FFCheckButton::FWLState2XFAState() { | 262 XFA_CHECKSTATE CXFA_FFCheckButton::FWLState2XFAState() { |
| 263 XFA_CHECKSTATE eCheckState = XFA_CHECKSTATE_Off; | 263 XFA_CHECKSTATE eCheckState = XFA_CHECKSTATE_Off; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 default: | 330 default: |
| 331 break; | 331 break; |
| 332 } | 332 } |
| 333 return m_pOldDelegate->OnProcessEvent(pEvent); | 333 return m_pOldDelegate->OnProcessEvent(pEvent); |
| 334 } | 334 } |
| 335 | 335 |
| 336 FWL_ERR CXFA_FFCheckButton::OnDrawWidget(CFX_Graphics* pGraphics, | 336 FWL_ERR CXFA_FFCheckButton::OnDrawWidget(CFX_Graphics* pGraphics, |
| 337 const CFX_Matrix* pMatrix) { | 337 const CFX_Matrix* pMatrix) { |
| 338 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); | 338 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); |
| 339 } | 339 } |
| OLD | NEW |