From 625ad667d0c0c17d5bc11d505f04861d90b45078 Mon Sep 17 00:00:00 2001 From: weili Date: Wed, 15 Jun 2016 11:21:33 -0700 Subject: Make code compile with clang_use_chrome_plugin (part IV) This change mainly contains files in fpdfsdk/ directory. This is part of the efforts to make PDFium code compilable by Clang chromium style plugins. The changes are mainly the following: -- move inline constructor/destructor of complex class/struct out-of-line; -- add constructor/destructor of complex class/struct if not explicitly defined; -- add explicit out-of-line copy constructor when needed; -- move inline virtual functions out-of-line; -- Properly mark virtual functions with 'override'; -- some minor cleanups plus removing an unused file and splitting cxfa_eventparam out from fxfa.h BUG=pdfium:469 Review-Url: https://codereview.chromium.org/2062313002 --- fpdfsdk/fxedit/fxet_list.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'fpdfsdk/fxedit/fxet_list.cpp') diff --git a/fpdfsdk/fxedit/fxet_list.cpp b/fpdfsdk/fxedit/fxet_list.cpp index 1385d57680..662a64b00a 100644 --- a/fpdfsdk/fxedit/fxet_list.cpp +++ b/fpdfsdk/fxedit/fxet_list.cpp @@ -73,6 +73,14 @@ CFX_WideString CFX_ListItem::GetText() const { return m_pEdit->GetText(); } +CFX_ListContainer::CFX_ListContainer() {} + +CFX_ListContainer::~CFX_ListContainer() {} + +void CFX_ListContainer::SetPlateRect(const CFX_FloatRect& rect) { + m_rcPlate = rect; +} + CFX_List::CFX_List() : m_fFontSize(0.0f), m_pFontMap(nullptr), m_bMultiple(FALSE) {} @@ -561,6 +569,14 @@ CFX_FloatRect CFX_ListCtrl::GetItemRect(int32_t nIndex) const { return InToOut(CFX_List::GetItemRect(nIndex)); } +int32_t CFX_ListCtrl::GetCaret() const { + return m_nCaretIndex; +} + +int32_t CFX_ListCtrl::GetSelect() const { + return m_nSelItem; +} + void CFX_ListCtrl::AddString(const FX_WCHAR* str) { AddItem(str); ReArrange(GetCount() - 1); -- cgit v1.2.3