| 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" |
| 11 #include "xfa/fde/tto/fde_textout.h" | 11 #include "xfa/fde/tto/fde_textout.h" |
| 12 #include "xfa/fwl/core/cfwl_evteditchanged.h" | 12 #include "xfa/fwl/core/cfwl_evteditchanged.h" |
| 13 #include "xfa/fwl/core/cfwl_evtpostdropdown.h" | 13 #include "xfa/fwl/core/cfwl_evtpostdropdown.h" |
| 14 #include "xfa/fwl/core/cfwl_evtpredropdown.h" | 14 #include "xfa/fwl/core/cfwl_evtpredropdown.h" |
| 15 #include "xfa/fwl/core/cfwl_evtselectchanged.h" | 15 #include "xfa/fwl/core/cfwl_evtselectchanged.h" |
| 16 #include "xfa/fwl/core/cfwl_evttextchanged.h" | 16 #include "xfa/fwl/core/cfwl_evttextchanged.h" |
| 17 #include "xfa/fwl/core/cfwl_msgkey.h" | 17 #include "xfa/fwl/core/cfwl_msgkey.h" |
| 18 #include "xfa/fwl/core/cfwl_msgkillfocus.h" | 18 #include "xfa/fwl/core/cfwl_msgkillfocus.h" |
| 19 #include "xfa/fwl/core/cfwl_msgmouse.h" | 19 #include "xfa/fwl/core/cfwl_msgmouse.h" |
| 20 #include "xfa/fwl/core/cfwl_msgsetfocus.h" | 20 #include "xfa/fwl/core/cfwl_msgsetfocus.h" |
| 21 #include "xfa/fwl/core/cfwl_themebackground.h" | 21 #include "xfa/fwl/core/cfwl_themebackground.h" |
| 22 #include "xfa/fwl/core/cfwl_themepart.h" | 22 #include "xfa/fwl/core/cfwl_themepart.h" |
| 23 #include "xfa/fwl/core/cfwl_themetext.h" | 23 #include "xfa/fwl/core/cfwl_themetext.h" |
| 24 #include "xfa/fwl/core/cfwl_widgetmgr.h" | 24 #include "xfa/fwl/core/cfwl_widgetmgr.h" |
| 25 #include "xfa/fwl/core/fwl_noteimp.h" | 25 #include "xfa/fwl/core/fwl_noteimp.h" |
| 26 #include "xfa/fwl/core/ifwl_app.h" | 26 #include "xfa/fwl/core/ifwl_app.h" |
| 27 #include "xfa/fwl/core/ifwl_comboboxdp.h" |
| 27 #include "xfa/fwl/core/ifwl_formproxy.h" | 28 #include "xfa/fwl/core/ifwl_formproxy.h" |
| 29 #include "xfa/fwl/core/ifwl_listboxdp.h" |
| 28 #include "xfa/fwl/core/ifwl_themeprovider.h" | 30 #include "xfa/fwl/core/ifwl_themeprovider.h" |
| 29 | 31 |
| 30 IFWL_ComboBox::IFWL_ComboBox(const IFWL_App* app, | 32 IFWL_ComboBox::IFWL_ComboBox(const IFWL_App* app, |
| 31 std::unique_ptr<CFWL_WidgetProperties> properties) | 33 std::unique_ptr<CFWL_WidgetProperties> properties) |
| 32 : IFWL_Widget(app, std::move(properties), nullptr), | 34 : IFWL_Widget(app, std::move(properties), nullptr), |
| 33 m_pComboBoxProxy(nullptr), | 35 m_pComboBoxProxy(nullptr), |
| 34 m_bLButtonDown(false), | 36 m_bLButtonDown(false), |
| 35 m_iCurSel(-1), | 37 m_iCurSel(-1), |
| 36 m_iBtnState(CFWL_PartState_Normal), | 38 m_iBtnState(CFWL_PartState_Normal), |
| 37 m_fComboFormHandler(0) { | 39 m_fComboFormHandler(0) { |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 else | 1130 else |
| 1129 iCurSel++; | 1131 iCurSel++; |
| 1130 } | 1132 } |
| 1131 m_iCurSel = iCurSel; | 1133 m_iCurSel = iCurSel; |
| 1132 SyncEditText(m_iCurSel); | 1134 SyncEditText(m_iCurSel); |
| 1133 return; | 1135 return; |
| 1134 } | 1136 } |
| 1135 if (m_pEdit) | 1137 if (m_pEdit) |
| 1136 m_pEdit->GetDelegate()->OnProcessMessage(pMsg); | 1138 m_pEdit->GetDelegate()->OnProcessMessage(pMsg); |
| 1137 } | 1139 } |
| OLD | NEW |