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/fwl/core/ifwl_combobox.h" | 7 #include "xfa/fwl/core/ifwl_combobox.h" |
8 | 8 |
9 #include "third_party/base/ptr_util.h" | 9 #include "third_party/base/ptr_util.h" |
10 #include "xfa/fde/cfde_txtedtengine.h" | 10 #include "xfa/fde/cfde_txtedtengine.h" |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 return DisForm_ShowDropList(bActivate); | 338 return DisForm_ShowDropList(bActivate); |
339 if (IsDropListVisible() == bActivate) | 339 if (IsDropListVisible() == bActivate) |
340 return; | 340 return; |
341 if (!m_pComboBoxProxy) | 341 if (!m_pComboBoxProxy) |
342 InitProxyForm(); | 342 InitProxyForm(); |
343 | 343 |
344 m_pComboBoxProxy->Reset(); | 344 m_pComboBoxProxy->Reset(); |
345 if (!bActivate) { | 345 if (!bActivate) { |
346 m_pComboBoxProxy->EndDoModal(); | 346 m_pComboBoxProxy->EndDoModal(); |
347 | 347 |
348 CFWL_EvtCmbCloseUp ev; | |
349 ev.m_pSrcTarget = this; | |
350 DispatchEvent(&ev); | |
351 | |
352 m_bLButtonDown = false; | 348 m_bLButtonDown = false; |
353 m_pListBox->SetNotifyOwner(true); | 349 m_pListBox->SetNotifyOwner(true); |
354 SetFocus(true); | 350 SetFocus(true); |
355 return; | 351 return; |
356 } | 352 } |
357 | 353 |
358 m_pListBox->ChangeSelected(m_iCurSel); | 354 m_pListBox->ChangeSelected(m_iCurSel); |
359 ResetListItemAlignment(); | 355 ResetListItemAlignment(); |
360 | 356 |
361 uint32_t dwStyleAdd = m_pProperties->m_dwStyleExes & | 357 uint32_t dwStyleAdd = m_pProperties->m_dwStyleExes & |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 else | 1139 else |
1144 iCurSel++; | 1140 iCurSel++; |
1145 } | 1141 } |
1146 m_iCurSel = iCurSel; | 1142 m_iCurSel = iCurSel; |
1147 SyncEditText(m_iCurSel); | 1143 SyncEditText(m_iCurSel); |
1148 return; | 1144 return; |
1149 } | 1145 } |
1150 if (m_pEdit) | 1146 if (m_pEdit) |
1151 m_pEdit->GetDelegate()->OnProcessMessage(pMsg); | 1147 m_pEdit->GetDelegate()->OnProcessMessage(pMsg); |
1152 } | 1148 } |
OLD | NEW |