diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-05 16:41:04 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-05 16:41:04 -0800 |
commit | d794d34b5deb6ad691c19af758090f9ce46015a3 (patch) | |
tree | 2cf3a108d472bf8ef6989e6883aa553dd6ba0afe /fpdfsdk/src/fxedit/fxet_list.cpp | |
parent | dbfaa8d11404a53b4807b3dbd0185047367bbff6 (diff) | |
download | pdfium-d794d34b5deb6ad691c19af758090f9ce46015a3.tar.xz |
Remove header files that only have includes.
Also do some cleanups in affected files.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1552583002 .
Diffstat (limited to 'fpdfsdk/src/fxedit/fxet_list.cpp')
-rw-r--r-- | fpdfsdk/src/fxedit/fxet_list.cpp | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/fpdfsdk/src/fxedit/fxet_list.cpp b/fpdfsdk/src/fxedit/fxet_list.cpp index 1ece0ef11a..4e8ae0cb8e 100644 --- a/fpdfsdk/src/fxedit/fxet_list.cpp +++ b/fpdfsdk/src/fxedit/fxet_list.cpp @@ -6,10 +6,6 @@ #include "fpdfsdk/include/fxedit/fxet_edit.h" #include "fpdfsdk/include/fxedit/fxet_list.h" -#include "fpdfsdk/include/fxedit/fxet_stub.h" - -/* ------------------------------- CFX_ListItem - * ---------------------------------- */ CFX_ListItem::CFX_ListItem() : m_pEdit(NULL), @@ -100,9 +96,6 @@ CFX_WideString CFX_ListItem::GetText() const { return L""; } -/* ------------------------------------ CFX_List - * --------------------------------- */ - CFX_List::CFX_List() : m_fFontSize(0.0f), m_pFontMap(NULL), m_bMultiple(FALSE) {} @@ -308,9 +301,6 @@ CFX_WideString CFX_List::GetItemText(int32_t nIndex) const { return L""; } -/* ------------------------------------ CPLST_Select - * ---------------------------------- */ - CPLST_Select::CPLST_Select() {} CPLST_Select::~CPLST_Select() { @@ -323,9 +313,9 @@ CPLST_Select::~CPLST_Select() { void CPLST_Select::Add(int32_t nItemIndex) { int32_t nIndex = Find(nItemIndex); - if (nIndex < 0) + if (nIndex < 0) { m_aItems.Add(new CPLST_Select_Item(nItemIndex, 1)); - else { + } else { if (CPLST_Select_Item* pItem = m_aItems.GetAt(nIndex)) { pItem->nState = 1; } @@ -418,9 +408,6 @@ void CPLST_Select::Done() { } } -/* ------------------------------------ CFX_ListCtrl - * --------------------------------- */ - CFX_ListCtrl::CFX_ListCtrl() : m_pNotify(NULL), m_bNotifyFlag(FALSE), @@ -591,8 +578,6 @@ FX_BOOL CFX_ListCtrl::OnChar(FX_WORD nChar, FX_BOOL bShift, FX_BOOL bCtrl) { return FALSE; } -/* -------- inner methods ------- */ - void CFX_ListCtrl::SetPlateRect(const CPDF_Rect& rect) { CFX_ListContainer::SetPlateRect(rect); m_ptScrollPos.x = rect.left; @@ -710,8 +695,9 @@ void CFX_ListCtrl::Select(int32_t nItemIndex) { if (IsMultipleSel()) { m_aSelItems.Add(nItemIndex); SelectItems(); - } else + } else { SetSingleSelect(nItemIndex); + } } FX_BOOL CFX_ListCtrl::IsItemVisible(int32_t nItemIndex) const { |