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 "xfa/fwl/core/ifwl_combobox.h" | 9 #include "xfa/fwl/core/ifwl_combobox.h" |
10 #include "xfa/fwl/core/ifwl_comboedit.h" | 10 #include "xfa/fwl/core/ifwl_comboedit.h" |
11 | 11 |
12 // static | |
13 IFWL_ComboList* IFWL_ComboList::Create( | |
14 const CFWL_WidgetImpProperties& properties, | |
15 IFWL_Widget* pOuter) { | |
16 return new IFWL_ComboList(properties, pOuter); | |
17 } | |
18 | |
19 IFWL_ComboList::IFWL_ComboList(const CFWL_WidgetImpProperties& properties, | 12 IFWL_ComboList::IFWL_ComboList(const CFWL_WidgetImpProperties& properties, |
20 IFWL_Widget* pOuter) | 13 IFWL_Widget* pOuter) |
21 : IFWL_ListBox(properties, pOuter), m_bNotifyOwner(TRUE) { | 14 : IFWL_ListBox(properties, pOuter), m_bNotifyOwner(TRUE) { |
22 ASSERT(pOuter); | 15 ASSERT(pOuter); |
23 } | 16 } |
24 | 17 |
25 FWL_Error IFWL_ComboList::Initialize() { | 18 FWL_Error IFWL_ComboList::Initialize() { |
26 if (IFWL_ListBox::Initialize() != FWL_Error::Succeeded) | 19 if (IFWL_ListBox::Initialize() != FWL_Error::Succeeded) |
27 return FWL_Error::Indefinite; | 20 return FWL_Error::Indefinite; |
28 delete m_pDelegate; | 21 delete m_pDelegate; |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 CFX_RectF rtInvalidate; | 282 CFX_RectF rtInvalidate; |
290 rtInvalidate.Set(0, 0, m_pOwner->m_pProperties->m_rtWidget.width, | 283 rtInvalidate.Set(0, 0, m_pOwner->m_pProperties->m_rtWidget.width, |
291 m_pOwner->m_pProperties->m_rtWidget.height); | 284 m_pOwner->m_pProperties->m_rtWidget.height); |
292 m_pOwner->Repaint(&rtInvalidate); | 285 m_pOwner->Repaint(&rtInvalidate); |
293 break; | 286 break; |
294 } | 287 } |
295 default: | 288 default: |
296 break; | 289 break; |
297 } | 290 } |
298 } | 291 } |
OLD | NEW |