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

Side by Side Diff: fpdfsdk/fxedit/fxet_list.cpp

Issue 2152473002: Removing default params from CFX_Edit. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@ifx_cleanup_2
Patch Set: Rebase to master Created 4 years, 5 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
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 "fpdfsdk/fxedit/include/fxet_list.h" 7 #include "fpdfsdk/fxedit/include/fxet_list.h"
8 8
9 #include "core/fpdfdoc/include/cpvt_word.h" 9 #include "core/fpdfdoc/include/cpvt_word.h"
10 #include "fpdfsdk/fxedit/include/fxet_edit.h" 10 #include "fpdfsdk/fxedit/include/fxet_edit.h"
11 #include "fpdfsdk/pdfwindow/PWL_ListBox.h" 11 #include "fpdfsdk/pdfwindow/PWL_ListBox.h"
12 12
13 CFX_ListItem::CFX_ListItem() 13 CFX_ListItem::CFX_ListItem()
14 : m_pEdit(new CFX_Edit), 14 : m_pEdit(new CFX_Edit),
15 m_bSelected(FALSE), 15 m_bSelected(FALSE),
16 m_rcListItem(0.0f, 0.0f, 0.0f, 0.0f) { 16 m_rcListItem(0.0f, 0.0f, 0.0f, 0.0f) {
17 m_pEdit->SetAlignmentV(1); 17 m_pEdit->SetAlignmentV(1, TRUE);
18 m_pEdit->Initialize(); 18 m_pEdit->Initialize();
19 } 19 }
20 20
21 CFX_ListItem::~CFX_ListItem() { 21 CFX_ListItem::~CFX_ListItem() {
22 } 22 }
23 23
24 void CFX_ListItem::SetFontMap(IPVT_FontMap* pFontMap) { 24 void CFX_ListItem::SetFontMap(IPVT_FontMap* pFontMap) {
25 m_pEdit->SetFontMap(pFontMap); 25 m_pEdit->SetFontMap(pFontMap);
26 } 26 }
27 27
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 return nItemIndex >= 0 && nItemIndex < m_aListItems.GetSize(); 780 return nItemIndex >= 0 && nItemIndex < m_aListItems.GetSize();
781 } 781 }
782 782
783 CFX_WideString CFX_ListCtrl::GetItemText(int32_t nIndex) const { 783 CFX_WideString CFX_ListCtrl::GetItemText(int32_t nIndex) const {
784 if (CFX_ListItem* pListItem = m_aListItems.GetAt(nIndex)) { 784 if (CFX_ListItem* pListItem = m_aListItems.GetAt(nIndex)) {
785 return pListItem->GetText(); 785 return pListItem->GetText();
786 } 786 }
787 787
788 return L""; 788 return L"";
789 } 789 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698