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 <memory> | 7 #include <memory> |
8 | 8 |
9 #include "../../../foxitlib.h" | 9 #include "xfa/src/foxitlib.h" |
10 | 10 |
11 CFWL_ComboBox* CFWL_ComboBox::Create() { | 11 CFWL_ComboBox* CFWL_ComboBox::Create() { |
12 return new CFWL_ComboBox; | 12 return new CFWL_ComboBox; |
13 } | 13 } |
14 FWL_ERR CFWL_ComboBox::Initialize(const CFWL_WidgetProperties* pProperties) { | 14 FWL_ERR CFWL_ComboBox::Initialize(const CFWL_WidgetProperties* pProperties) { |
15 if (m_pIface) | 15 if (m_pIface) |
16 return FWL_ERR_Indefinite; | 16 return FWL_ERR_Indefinite; |
17 if (pProperties) { | 17 if (pProperties) { |
18 *m_pProperties = *pProperties; | 18 *m_pProperties = *pProperties; |
19 } | 19 } |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 IFWL_Widget* pWidget, | 350 IFWL_Widget* pWidget, |
351 FWL_HLISTITEM hItem, | 351 FWL_HLISTITEM hItem, |
352 FX_DWORD dwCheckState) { | 352 FX_DWORD dwCheckState) { |
353 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem); | 353 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem); |
354 pItem->m_dwCheckState = dwCheckState; | 354 pItem->m_dwCheckState = dwCheckState; |
355 return FWL_ERR_Succeeded; | 355 return FWL_ERR_Succeeded; |
356 } | 356 } |
357 FX_FLOAT CFWL_ComboBox::CFWL_ComboBoxDP::GetListHeight(IFWL_Widget* pWidget) { | 357 FX_FLOAT CFWL_ComboBox::CFWL_ComboBoxDP::GetListHeight(IFWL_Widget* pWidget) { |
358 return m_fMaxListHeight; | 358 return m_fMaxListHeight; |
359 } | 359 } |
OLD | NEW |