| 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/fwl/lightwidget/cfwl_listbox.h" | 7 #include "xfa/fwl/lightwidget/cfwl_listbox.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 return static_cast<CFWL_ListItem*>(pItem)->m_dwCheckState; | 334 return static_cast<CFWL_ListItem*>(pItem)->m_dwCheckState; |
| 335 } | 335 } |
| 336 | 336 |
| 337 FWL_Error CFWL_ListBox::CFWL_ListBoxDP::SetItemCheckState( | 337 FWL_Error CFWL_ListBox::CFWL_ListBoxDP::SetItemCheckState( |
| 338 IFWL_Widget* pWidget, | 338 IFWL_Widget* pWidget, |
| 339 IFWL_ListItem* pItem, | 339 IFWL_ListItem* pItem, |
| 340 uint32_t dwCheckState) { | 340 uint32_t dwCheckState) { |
| 341 static_cast<CFWL_ListItem*>(pItem)->m_dwCheckState = dwCheckState; | 341 static_cast<CFWL_ListItem*>(pItem)->m_dwCheckState = dwCheckState; |
| 342 return FWL_Error::Succeeded; | 342 return FWL_Error::Succeeded; |
| 343 } | 343 } |
| 344 |
| 345 CFWL_ListItem::CFWL_ListItem() { |
| 346 m_rtItem.Reset(); |
| 347 m_dwStates = 0; |
| 348 m_wsText = L""; |
| 349 m_pDIB = NULL; |
| 350 m_pData = NULL; |
| 351 m_dwCheckState = 0; |
| 352 m_rtCheckBox.Reset(); |
| 353 } |
| 354 |
| 355 CFWL_ListItem::~CFWL_ListItem() {} |
| OLD | NEW |