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

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

Issue 1552583002: Remove header files that only have includes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: address comments Created 4 years, 11 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_IFormFiller.cpp ('k') | fpdfsdk/src/formfiller/FFL_PushButton.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_ListBox.h"
8
7 #include "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h" 9 #include "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h"
8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" 10 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h"
9 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h" 11 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h"
10 #include "fpdfsdk/include/formfiller/FFL_ListBox.h" 12 #include "fpdfsdk/include/fsdk_common.h"
11 #include "fpdfsdk/include/formfiller/FormFiller.h" 13 #include "fpdfsdk/include/fsdk_mgr.h"
14 #include "fpdfsdk/include/pdfwindow/PWL_ListBox.h"
12 15
13 #define FFL_DEFAULTLISTBOXFONTSIZE 12.0f 16 #define FFL_DEFAULTLISTBOXFONTSIZE 12.0f
14 17
15 /* ------------------------------- CFFL_ListBox -------------------------------
16 */
17
18 CFFL_ListBox::CFFL_ListBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget) 18 CFFL_ListBox::CFFL_ListBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget)
19 : CFFL_FormFiller(pApp, pWidget), m_pFontMap(NULL) {} 19 : CFFL_FormFiller(pApp, pWidget), m_pFontMap(NULL) {}
20 20
21 CFFL_ListBox::~CFFL_ListBox() { 21 CFFL_ListBox::~CFFL_ListBox() {
22 delete m_pFontMap; 22 delete m_pFontMap;
23 } 23 }
24 24
25 PWL_CREATEPARAM CFFL_ListBox::GetCreateParam() { 25 PWL_CREATEPARAM CFFL_ListBox::GetCreateParam() {
26 PWL_CREATEPARAM cp = CFFL_FormFiller::GetCreateParam(); 26 PWL_CREATEPARAM cp = CFFL_FormFiller::GetCreateParam();
27 27
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 if (bRestoreValue) 206 if (bRestoreValue)
207 SaveState(pPageView); 207 SaveState(pPageView);
208 208
209 DestroyPDFWindow(pPageView); 209 DestroyPDFWindow(pPageView);
210 210
211 CPWL_Wnd* pRet = NULL; 211 CPWL_Wnd* pRet = NULL;
212 212
213 if (bRestoreValue) { 213 if (bRestoreValue) {
214 RestoreState(pPageView); 214 RestoreState(pPageView);
215 pRet = GetPDFWindow(pPageView, FALSE); 215 pRet = GetPDFWindow(pPageView, FALSE);
216 } else 216 } else {
217 pRet = GetPDFWindow(pPageView, TRUE); 217 pRet = GetPDFWindow(pPageView, TRUE);
218 }
218 219
219 m_pWidget->UpdateField(); 220 m_pWidget->UpdateField();
220 221
221 return pRet; 222 return pRet;
222 } 223 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_IFormFiller.cpp ('k') | fpdfsdk/src/formfiller/FFL_PushButton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698