| 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_ffchoicelist.h" | 7 #include "xfa/fxfa/app/xfa_ffchoicelist.h" |
| 8 | 8 |
| 9 #include "xfa/fwl/basewidget/ifwl_edit.h" | 9 #include "xfa/fwl/basewidget/ifwl_edit.h" |
| 10 #include "xfa/fwl/core/fwl_noteimp.h" | 10 #include "xfa/fwl/core/fwl_noteimp.h" |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 dwEditStyles |= FWL_STYLEEXT_EDT_AutoHScroll; | 280 dwEditStyles |= FWL_STYLEEXT_EDT_AutoHScroll; |
| 281 } | 281 } |
| 282 pComboBox->EditModifyStylesEx(dwEditStyles, 0xFFFFFFFF); | 282 pComboBox->EditModifyStylesEx(dwEditStyles, 0xFFFFFFFF); |
| 283 } | 283 } |
| 284 FX_BOOL CXFA_FFComboBox::OnRButtonUp(uint32_t dwFlags, | 284 FX_BOOL CXFA_FFComboBox::OnRButtonUp(uint32_t dwFlags, |
| 285 FX_FLOAT fx, | 285 FX_FLOAT fx, |
| 286 FX_FLOAT fy) { | 286 FX_FLOAT fy) { |
| 287 if (!CXFA_FFField::OnRButtonUp(dwFlags, fx, fy)) | 287 if (!CXFA_FFField::OnRButtonUp(dwFlags, fx, fy)) |
| 288 return FALSE; | 288 return FALSE; |
| 289 | 289 |
| 290 GetDoc()->GetDocProvider()->PopupMenu(this, CFX_PointF(fx, fy)); | 290 GetDoc()->GetDocEnvironment()->PopupMenu(this, CFX_PointF(fx, fy)); |
| 291 return TRUE; | 291 return TRUE; |
| 292 } | 292 } |
| 293 FX_BOOL CXFA_FFComboBox::OnKillFocus(CXFA_FFWidget* pNewWidget) { | 293 FX_BOOL CXFA_FFComboBox::OnKillFocus(CXFA_FFWidget* pNewWidget) { |
| 294 FX_BOOL flag = ProcessCommittedData(); | 294 FX_BOOL flag = ProcessCommittedData(); |
| 295 if (!flag) { | 295 if (!flag) { |
| 296 UpdateFWLData(); | 296 UpdateFWLData(); |
| 297 } | 297 } |
| 298 CXFA_FFField::OnKillFocus(pNewWidget); | 298 CXFA_FFField::OnKillFocus(pNewWidget); |
| 299 return TRUE; | 299 return TRUE; |
| 300 } | 300 } |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 default: | 524 default: |
| 525 break; | 525 break; |
| 526 } | 526 } |
| 527 m_pOldDelegate->OnProcessEvent(pEvent); | 527 m_pOldDelegate->OnProcessEvent(pEvent); |
| 528 } | 528 } |
| 529 | 529 |
| 530 void CXFA_FFComboBox::OnDrawWidget(CFX_Graphics* pGraphics, | 530 void CXFA_FFComboBox::OnDrawWidget(CFX_Graphics* pGraphics, |
| 531 const CFX_Matrix* pMatrix) { | 531 const CFX_Matrix* pMatrix) { |
| 532 m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); | 532 m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); |
| 533 } | 533 } |
| OLD | NEW |