Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: xfa/fwl/lightwidget/cfwl_listbox.cpp

Issue 2070583003: Make code compile with clang_use_chrome_plugin (part VI) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: better macros Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_listbox.h ('k') | xfa/fwl/lightwidget/cfwl_picturebox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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() {}
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_listbox.h ('k') | xfa/fwl/lightwidget/cfwl_picturebox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698