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

Side by Side Diff: fpdfsdk/src/formfiller/FFL_ListBox.cpp

Issue 1542373002: Fix a bad virtual keyword removal from commit 0f6b51c. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 12 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/include/formfiller/FFL_CBA_Fontmap.h" 7 #include "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h"
8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" 8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h"
9 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h" 9 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h"
10 #include "fpdfsdk/include/formfiller/FFL_ListBox.h" 10 #include "fpdfsdk/include/formfiller/FFL_ListBox.h"
(...skipping 20 matching lines...) Expand all
31 cp.dwFlags |= PLBS_MULTIPLESEL; 31 cp.dwFlags |= PLBS_MULTIPLESEL;
32 } 32 }
33 33
34 cp.dwFlags |= PWS_VSCROLL; 34 cp.dwFlags |= PWS_VSCROLL;
35 35
36 if (cp.dwFlags & PWS_AUTOFONTSIZE) 36 if (cp.dwFlags & PWS_AUTOFONTSIZE)
37 cp.fFontSize = FFL_DEFAULTLISTBOXFONTSIZE; 37 cp.fFontSize = FFL_DEFAULTLISTBOXFONTSIZE;
38 38
39 if (!m_pFontMap) { 39 if (!m_pFontMap) {
40 m_pFontMap = new CBA_FontMap(m_pWidget, m_pApp->GetSysHandler()); 40 m_pFontMap = new CBA_FontMap(m_pWidget, m_pApp->GetSysHandler());
41 m_pFontMap->Initial(); 41 m_pFontMap->Initialize();
42 } 42 }
43 cp.pFontMap = m_pFontMap; 43 cp.pFontMap = m_pFontMap;
44 44
45 return cp; 45 return cp;
46 } 46 }
47 47
48 CPWL_Wnd* CFFL_ListBox::NewPDFWindow(const PWL_CREATEPARAM& cp, 48 CPWL_Wnd* CFFL_ListBox::NewPDFWindow(const PWL_CREATEPARAM& cp,
49 CPDFSDK_PageView* pPageView) { 49 CPDFSDK_PageView* pPageView) {
50 CPWL_ListBox* pWnd = new CPWL_ListBox(); 50 CPWL_ListBox* pWnd = new CPWL_ListBox();
51 pWnd->AttachFFLData(this); 51 pWnd->AttachFFLData(this);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 if (bRestoreValue) { 215 if (bRestoreValue) {
216 RestoreState(pPageView); 216 RestoreState(pPageView);
217 pRet = GetPDFWindow(pPageView, FALSE); 217 pRet = GetPDFWindow(pPageView, FALSE);
218 } else 218 } else
219 pRet = GetPDFWindow(pPageView, TRUE); 219 pRet = GetPDFWindow(pPageView, TRUE);
220 220
221 m_pWidget->UpdateField(); 221 m_pWidget->UpdateField();
222 222
223 return pRet; 223 return pRet;
224 } 224 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698