| 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_comboedit.h" | 7 #include "xfa/fwl/core/ifwl_comboedit.h" |
| 8 | 8 |
| 9 #include "xfa/fde/cfde_txtedtengine.h" | 9 #include "xfa/fde/cfde_txtedtengine.h" |
| 10 #include "xfa/fwl/core/ifwl_combobox.h" | 10 #include "xfa/fwl/core/ifwl_combobox.h" |
| 11 | 11 |
| 12 IFWL_ComboEdit::IFWL_ComboEdit(const CFWL_WidgetImpProperties& properties, | 12 IFWL_ComboEdit::IFWL_ComboEdit(const IFWL_App* app, |
| 13 const CFWL_WidgetImpProperties& properties, |
| 13 IFWL_Widget* pOuter) | 14 IFWL_Widget* pOuter) |
| 14 : IFWL_Edit(properties, pOuter) { | 15 : IFWL_Edit(app, properties, pOuter) { |
| 15 m_pOuter = static_cast<IFWL_ComboBox*>(pOuter); | 16 m_pOuter = static_cast<IFWL_ComboBox*>(pOuter); |
| 16 } | 17 } |
| 17 | 18 |
| 18 void IFWL_ComboEdit::ClearSelected() { | 19 void IFWL_ComboEdit::ClearSelected() { |
| 19 ClearSelections(); | 20 ClearSelections(); |
| 20 Repaint(&m_rtClient); | 21 Repaint(&m_rtClient); |
| 21 } | 22 } |
| 22 | 23 |
| 23 void IFWL_ComboEdit::SetSelected() { | 24 void IFWL_ComboEdit::SetSelected() { |
| 24 FlagFocus(TRUE); | 25 FlagFocus(TRUE); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 m_pOwner->SetComboBoxFocus(TRUE); | 71 m_pOwner->SetComboBoxFocus(TRUE); |
| 71 } | 72 } |
| 72 break; | 73 break; |
| 73 } | 74 } |
| 74 default: | 75 default: |
| 75 break; | 76 break; |
| 76 } | 77 } |
| 77 if (backDefault) | 78 if (backDefault) |
| 78 CFWL_EditImpDelegate::OnProcessMessage(pMessage); | 79 CFWL_EditImpDelegate::OnProcessMessage(pMessage); |
| 79 } | 80 } |
| OLD | NEW |