Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: xfa/fwl/core/ifwl_combobox.cpp

Issue 2509733006: Remove events which are not processed (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/ifwl_combobox.h ('k') | xfa/fwl/core/ifwl_combolist.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_combobox.h ('k') | xfa/fwl/core/ifwl_combolist.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698