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 "xfa/include/fwl/lightwidget/combobox.h" | 7 #include "xfa/include/fwl/lightwidget/combobox.h" |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "xfa/include/fwl/core/fwl_error.h" | 11 #include "xfa/fwl/core/fwl_error.h" |
12 #include "xfa/include/fwl/core/fwl_widget.h" | 12 #include "xfa/fwl/core/ifwl_widget.h" |
13 | 13 |
14 CFWL_ComboBox* CFWL_ComboBox::Create() { | 14 CFWL_ComboBox* CFWL_ComboBox::Create() { |
15 return new CFWL_ComboBox; | 15 return new CFWL_ComboBox; |
16 } | 16 } |
17 FWL_ERR CFWL_ComboBox::Initialize(const CFWL_WidgetProperties* pProperties) { | 17 FWL_ERR CFWL_ComboBox::Initialize(const CFWL_WidgetProperties* pProperties) { |
18 if (m_pIface) | 18 if (m_pIface) |
19 return FWL_ERR_Indefinite; | 19 return FWL_ERR_Indefinite; |
20 if (pProperties) { | 20 if (pProperties) { |
21 *m_pProperties = *pProperties; | 21 *m_pProperties = *pProperties; |
22 } | 22 } |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 IFWL_Widget* pWidget, | 361 IFWL_Widget* pWidget, |
362 FWL_HLISTITEM hItem, | 362 FWL_HLISTITEM hItem, |
363 FX_DWORD dwCheckState) { | 363 FX_DWORD dwCheckState) { |
364 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem); | 364 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem); |
365 pItem->m_dwCheckState = dwCheckState; | 365 pItem->m_dwCheckState = dwCheckState; |
366 return FWL_ERR_Succeeded; | 366 return FWL_ERR_Succeeded; |
367 } | 367 } |
368 FX_FLOAT CFWL_ComboBox::CFWL_ComboBoxDP::GetListHeight(IFWL_Widget* pWidget) { | 368 FX_FLOAT CFWL_ComboBox::CFWL_ComboBoxDP::GetListHeight(IFWL_Widget* pWidget) { |
369 return m_fMaxListHeight; | 369 return m_fMaxListHeight; |
370 } | 370 } |
OLD | NEW |