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

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

Issue 1542373002: Fix a bad virtual keyword removal from commit 0f6b51c. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: address comments 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
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_ListBox.cpp ('k') | fpdfsdk/src/fsdk_baseform.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TextField.h" 8 #include "fpdfsdk/include/formfiller/FFL_TextField.h"
9 9
10 /* ------------------------------- CFFL_TextField 10 /* ------------------------------- CFFL_TextField
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 cp.dwFlags |= PES_LEFT; 61 cp.dwFlags |= PES_LEFT;
62 break; 62 break;
63 case BF_ALIGN_MIDDLE: 63 case BF_ALIGN_MIDDLE:
64 cp.dwFlags |= PES_MIDDLE; 64 cp.dwFlags |= PES_MIDDLE;
65 break; 65 break;
66 case BF_ALIGN_RIGHT: 66 case BF_ALIGN_RIGHT:
67 cp.dwFlags |= PES_RIGHT; 67 cp.dwFlags |= PES_RIGHT;
68 break; 68 break;
69 } 69 }
70 70
71 if (!m_pFontMap) { 71 if (!m_pFontMap)
72 m_pFontMap = new CBA_FontMap(m_pWidget, m_pApp->GetSysHandler()); 72 m_pFontMap = new CBA_FontMap(m_pWidget, m_pApp->GetSysHandler());
73 m_pFontMap->Initial();
74 }
75 cp.pFontMap = m_pFontMap; 73 cp.pFontMap = m_pFontMap;
76 cp.pFocusHandler = this; 74 cp.pFocusHandler = this;
77 75
78 return cp; 76 return cp;
79 } 77 }
80 78
81 CPWL_Wnd* CFFL_TextField::NewPDFWindow(const PWL_CREATEPARAM& cp, 79 CPWL_Wnd* CFFL_TextField::NewPDFWindow(const PWL_CREATEPARAM& cp,
82 CPDFSDK_PageView* pPageView) { 80 CPDFSDK_PageView* pPageView) {
83 CPWL_Edit* pWnd = new CPWL_Edit(); 81 CPWL_Edit* pWnd = new CPWL_Edit();
84 pWnd->AttachFFLData(this); 82 pWnd->AttachFFLData(this);
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 m_pApp->FFI_OnSetFieldInputFocus(m_pWidget->GetFormField(), pBuffer, 270 m_pApp->FFI_OnSetFieldInputFocus(m_pWidget->GetFormField(), pBuffer,
273 nCharacters, TRUE); 271 nCharacters, TRUE);
274 272
275 pEdit->SetEditNotify(this); 273 pEdit->SetEditNotify(this);
276 } 274 }
277 } 275 }
278 276
279 void CFFL_TextField::OnKillFocus(CPWL_Wnd* pWnd) {} 277 void CFFL_TextField::OnKillFocus(CPWL_Wnd* pWnd) {}
280 278
281 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) {} 279 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) {}
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_ListBox.cpp ('k') | fpdfsdk/src/fsdk_baseform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698