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_combolist.h" | 7 #include "xfa/fwl/core/ifwl_combolist.h" |
8 | 8 |
9 #include "third_party/base/ptr_util.h" | 9 #include "third_party/base/ptr_util.h" |
10 #include "xfa/fwl/core/cfwl_msgkey.h" | 10 #include "xfa/fwl/core/cfwl_msgkey.h" |
11 #include "xfa/fwl/core/cfwl_msgkillfocus.h" | 11 #include "xfa/fwl/core/cfwl_msgkillfocus.h" |
12 #include "xfa/fwl/core/cfwl_msgmouse.h" | 12 #include "xfa/fwl/core/cfwl_msgmouse.h" |
13 #include "xfa/fwl/core/ifwl_combobox.h" | 13 #include "xfa/fwl/core/ifwl_combobox.h" |
14 #include "xfa/fwl/core/ifwl_comboedit.h" | 14 #include "xfa/fwl/core/ifwl_comboedit.h" |
| 15 #include "xfa/fwl/core/ifwl_listboxdp.h" |
15 | 16 |
16 IFWL_ComboList::IFWL_ComboList( | 17 IFWL_ComboList::IFWL_ComboList( |
17 const IFWL_App* app, | 18 const IFWL_App* app, |
18 std::unique_ptr<CFWL_WidgetProperties> properties, | 19 std::unique_ptr<CFWL_WidgetProperties> properties, |
19 IFWL_Widget* pOuter) | 20 IFWL_Widget* pOuter) |
20 : IFWL_ListBox(app, std::move(properties), pOuter), m_bNotifyOwner(true) { | 21 : IFWL_ListBox(app, std::move(properties), pOuter), m_bNotifyOwner(true) { |
21 ASSERT(pOuter); | 22 ASSERT(pOuter); |
22 } | 23 } |
23 | 24 |
24 int32_t IFWL_ComboList::MatchItem(const CFX_WideString& wsMatch) { | 25 int32_t IFWL_ComboList::MatchItem(const CFX_WideString& wsMatch) { |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 CFX_RectF rtInvalidate; | 264 CFX_RectF rtInvalidate; |
264 rtInvalidate.Set(0, 0, m_pProperties->m_rtWidget.width, | 265 rtInvalidate.Set(0, 0, m_pProperties->m_rtWidget.width, |
265 m_pProperties->m_rtWidget.height); | 266 m_pProperties->m_rtWidget.height); |
266 Repaint(&rtInvalidate); | 267 Repaint(&rtInvalidate); |
267 break; | 268 break; |
268 } | 269 } |
269 default: | 270 default: |
270 break; | 271 break; |
271 } | 272 } |
272 } | 273 } |
OLD | NEW |