| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_comboboxproxy.h" | 7 #include "xfa/fwl/core/ifwl_comboboxproxy.h" |
| 8 | 8 |
| 9 #include "xfa/fwl/core/fwl_noteimp.h" | 9 #include "xfa/fwl/core/fwl_noteimp.h" |
| 10 #include "xfa/fwl/core/ifwl_app.h" | 10 #include "xfa/fwl/core/ifwl_app.h" |
| 11 #include "xfa/fwl/core/ifwl_combobox.h" | 11 #include "xfa/fwl/core/ifwl_combobox.h" |
| 12 | 12 |
| 13 IFWL_ComboBoxProxy::IFWL_ComboBoxProxy( | 13 IFWL_ComboBoxProxy::IFWL_ComboBoxProxy( |
| 14 IFWL_ComboBox* pComboBox, | 14 IFWL_ComboBox* pComboBox, |
| 15 const IFWL_App* app, | 15 const IFWL_App* app, |
| 16 const CFWL_WidgetImpProperties& properties, | 16 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 17 IFWL_Widget* pOuter) | 17 IFWL_Widget* pOuter) |
| 18 : IFWL_FormProxy(app, properties, pOuter), | 18 : IFWL_FormProxy(app, std::move(properties), pOuter), |
| 19 m_bLButtonDown(false), | 19 m_bLButtonDown(false), |
| 20 m_bLButtonUpSelf(false), | 20 m_bLButtonUpSelf(false), |
| 21 m_pComboBox(pComboBox) {} | 21 m_pComboBox(pComboBox) {} |
| 22 | 22 |
| 23 IFWL_ComboBoxProxy::~IFWL_ComboBoxProxy() {} | 23 IFWL_ComboBoxProxy::~IFWL_ComboBoxProxy() {} |
| 24 | 24 |
| 25 void IFWL_ComboBoxProxy::OnProcessMessage(CFWL_Message* pMessage) { | 25 void IFWL_ComboBoxProxy::OnProcessMessage(CFWL_Message* pMessage) { |
| 26 if (!pMessage) | 26 if (!pMessage) |
| 27 return; | 27 return; |
| 28 | 28 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 m_pComboBox->ShowDropList(false); | 109 m_pComboBox->ShowDropList(false); |
| 110 } | 110 } |
| 111 | 111 |
| 112 void IFWL_ComboBoxProxy::OnFocusChanged(CFWL_MsgKillFocus* pMsg, bool bSet) { | 112 void IFWL_ComboBoxProxy::OnFocusChanged(CFWL_MsgKillFocus* pMsg, bool bSet) { |
| 113 if (bSet) | 113 if (bSet) |
| 114 return; | 114 return; |
| 115 | 115 |
| 116 if (!pMsg->m_pSetFocus) | 116 if (!pMsg->m_pSetFocus) |
| 117 m_pComboBox->ShowDropList(false); | 117 m_pComboBox->ShowDropList(false); |
| 118 } | 118 } |
| OLD | NEW |