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

Side by Side Diff: fpdfsdk/src/formfiller/FFL_IFormFiller.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_FormFiller.cpp ('k') | fpdfsdk/src/formfiller/FFL_ListBox.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_IFormFiller.h"
8
7 #include "fpdfsdk/include/formfiller/FFL_CheckBox.h" 9 #include "fpdfsdk/include/formfiller/FFL_CheckBox.h"
8 #include "fpdfsdk/include/formfiller/FFL_ComboBox.h" 10 #include "fpdfsdk/include/formfiller/FFL_ComboBox.h"
9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" 11 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h"
10 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h"
11 #include "fpdfsdk/include/formfiller/FFL_ListBox.h" 12 #include "fpdfsdk/include/formfiller/FFL_ListBox.h"
12 #include "fpdfsdk/include/formfiller/FFL_PushButton.h" 13 #include "fpdfsdk/include/formfiller/FFL_PushButton.h"
13 #include "fpdfsdk/include/formfiller/FFL_RadioButton.h" 14 #include "fpdfsdk/include/formfiller/FFL_RadioButton.h"
14 #include "fpdfsdk/include/formfiller/FFL_TextField.h" 15 #include "fpdfsdk/include/formfiller/FFL_TextField.h"
16 #include "fpdfsdk/include/fsdk_mgr.h"
17 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h"
15 18
16 #define FFL_MAXLISTBOXHEIGHT 140.0f 19 #define FFL_MAXLISTBOXHEIGHT 140.0f
17 20
18 CFFL_IFormFiller::CFFL_IFormFiller(CPDFDoc_Environment* pApp) 21 CFFL_IFormFiller::CFFL_IFormFiller(CPDFDoc_Environment* pApp)
19 : m_pApp(pApp), m_bNotifying(FALSE) {} 22 : m_pApp(pApp), m_bNotifying(FALSE) {}
20 23
21 CFFL_IFormFiller::~CFFL_IFormFiller() { 24 CFFL_IFormFiller::~CFFL_IFormFiller() {
22 for (auto& it : m_Maps) 25 for (auto& it : m_Maps)
23 delete it.second; 26 delete it.second;
24 m_Maps.clear(); 27 m_Maps.clear();
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 598
596 FX_FLOAT fFactHeight = 0; 599 FX_FLOAT fFactHeight = 0;
597 FX_BOOL bBottom = TRUE; 600 FX_BOOL bBottom = TRUE;
598 FX_FLOAT fMaxListBoxHeight = 0; 601 FX_FLOAT fMaxListBoxHeight = 0;
599 if (fPopupMax > FFL_MAXLISTBOXHEIGHT) { 602 if (fPopupMax > FFL_MAXLISTBOXHEIGHT) {
600 if (fPopupMin > FFL_MAXLISTBOXHEIGHT) { 603 if (fPopupMin > FFL_MAXLISTBOXHEIGHT) {
601 fMaxListBoxHeight = fPopupMin; 604 fMaxListBoxHeight = fPopupMin;
602 } else { 605 } else {
603 fMaxListBoxHeight = FFL_MAXLISTBOXHEIGHT; 606 fMaxListBoxHeight = FFL_MAXLISTBOXHEIGHT;
604 } 607 }
605 } else 608 } else {
606 fMaxListBoxHeight = fPopupMax; 609 fMaxListBoxHeight = fPopupMax;
610 }
607 611
608 if (fBottom > fMaxListBoxHeight) { 612 if (fBottom > fMaxListBoxHeight) {
609 fFactHeight = fMaxListBoxHeight; 613 fFactHeight = fMaxListBoxHeight;
610 bBottom = TRUE; 614 bBottom = TRUE;
611 } else { 615 } else {
612 if (fTop > fMaxListBoxHeight) { 616 if (fTop > fMaxListBoxHeight) {
613 fFactHeight = fMaxListBoxHeight; 617 fFactHeight = fMaxListBoxHeight;
614 bBottom = FALSE; 618 bBottom = FALSE;
615 } else { 619 } else {
616 if (fTop > fBottom) { 620 if (fTop > fBottom) {
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 bExit = TRUE; 812 bExit = TRUE;
809 m_bNotifying = FALSE; 813 m_bNotifying = FALSE;
810 return; 814 return;
811 } 815 }
812 } 816 }
813 817
814 m_bNotifying = FALSE; 818 m_bNotifying = FALSE;
815 } 819 }
816 } 820 }
817 } 821 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_FormFiller.cpp ('k') | fpdfsdk/src/formfiller/FFL_ListBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698