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

Side by Side Diff: fpdfsdk/src/formfiller/FFL_ComboBox.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_ComboBox.h" 8 #include "fpdfsdk/include/formfiller/FFL_ComboBox.h"
9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" 9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h"
10 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h" 10 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h"
(...skipping 16 matching lines...) Expand all
27 PWL_CREATEPARAM CFFL_ComboBox::GetCreateParam() { 27 PWL_CREATEPARAM CFFL_ComboBox::GetCreateParam() {
28 PWL_CREATEPARAM cp = CFFL_FormFiller::GetCreateParam(); 28 PWL_CREATEPARAM cp = CFFL_FormFiller::GetCreateParam();
29 29
30 int nFlags = m_pWidget->GetFieldFlags(); 30 int nFlags = m_pWidget->GetFieldFlags();
31 if (nFlags & FIELDFLAG_EDIT) { 31 if (nFlags & FIELDFLAG_EDIT) {
32 cp.dwFlags |= PCBS_ALLOWCUSTOMTEXT; 32 cp.dwFlags |= PCBS_ALLOWCUSTOMTEXT;
33 } 33 }
34 34
35 if (!m_pFontMap) { 35 if (!m_pFontMap) {
36 m_pFontMap = new CBA_FontMap(m_pWidget, GetSystemHandler()); 36 m_pFontMap = new CBA_FontMap(m_pWidget, GetSystemHandler());
37 m_pFontMap->Initial(); 37 m_pFontMap->Initialize();
38 } 38 }
39 39
40 cp.pFontMap = m_pFontMap; 40 cp.pFontMap = m_pFontMap;
41 cp.pFocusHandler = this; 41 cp.pFocusHandler = this;
42 42
43 return cp; 43 return cp;
44 } 44 }
45 45
46 CPWL_Wnd* CFFL_ComboBox::NewPDFWindow(const PWL_CREATEPARAM& cp, 46 CPWL_Wnd* CFFL_ComboBox::NewPDFWindow(const PWL_CREATEPARAM& cp,
47 CPDFSDK_PageView* pPageView) { 47 CPDFSDK_PageView* pPageView) {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 if (nExport >= 0) { 291 if (nExport >= 0) {
292 if (CPDF_FormField* pFormField = m_pWidget->GetFormField()) { 292 if (CPDF_FormField* pFormField = m_pWidget->GetFormField()) {
293 swRet = pFormField->GetOptionValue(nExport); 293 swRet = pFormField->GetOptionValue(nExport);
294 if (swRet.IsEmpty()) 294 if (swRet.IsEmpty())
295 swRet = pFormField->GetOptionLabel(nExport); 295 swRet = pFormField->GetOptionLabel(nExport);
296 } 296 }
297 } 297 }
298 298
299 return swRet; 299 return swRet;
300 } 300 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698