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

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

Issue 1177483002: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 6 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 "../../include/formfiller/FFL_FormFiller.h" 7 #include "../../include/formfiller/FFL_FormFiller.h"
8 #include "../../include/formfiller/FFL_IFormFiller.h" 8 #include "../../include/formfiller/FFL_IFormFiller.h"
9 #include "../../include/formfiller/FFL_CheckBox.h" 9 #include "../../include/formfiller/FFL_CheckBox.h"
10 #include "../../include/formfiller/FFL_ComboBox.h" 10 #include "../../include/formfiller/FFL_ComboBox.h"
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 delete pFormFiller; 712 delete pFormFiller;
713 m_Maps.RemoveKey(pAnnot); 713 m_Maps.RemoveKey(pAnnot);
714 } 714 }
715 } 715 }
716 716
717 void CFFL_IFormFiller::SetFocusAnnotTab(CPDFSDK_Annot* pWidget, FX_BOOL bSameFie ld, FX_BOOL bNext) 717 void CFFL_IFormFiller::SetFocusAnnotTab(CPDFSDK_Annot* pWidget, FX_BOOL bSameFie ld, FX_BOOL bNext)
718 { 718 {
719 719
720 } 720 }
721 721
722 void CFFL_IFormFiller::QueryWherePopup(void* pPrivateData, FX_FLOAT fPopupMin,FX _FLOAT fPopupMax, FX_INT32 & nRet, FX_FLOAT & fPopupRet) 722 void CFFL_IFormFiller::QueryWherePopup(void* pPrivateData, FX_FLOAT fPopupMin,FX _FLOAT fPopupMax, int32_t & nRet, FX_FLOAT & fPopupRet)
723 { 723 {
724 ASSERT(pPrivateData != NULL); 724 ASSERT(pPrivateData != NULL);
725 725
726 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 726 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
727 727
728 728
729 729
730 730
731 CPDF_Rect rcPageView(0,0,0,0); 731 CPDF_Rect rcPageView(0,0,0,0);
732 rcPageView.right = pData->pWidget->GetPDFPage()->GetPageWidth(); 732 rcPageView.right = pData->pWidget->GetPDFPage()->GetPageWidth();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 unRect.Union(rcNew); 827 unRect.Union(rcNew);
828 //FX_RECT rcRect = unRect.GetOutterRect(); 828 //FX_RECT rcRect = unRect.GetOutterRect();
829 unRect.left = (FX_FLOAT)(unRect.left - 0.5); 829 unRect.left = (FX_FLOAT)(unRect.left - 0.5);
830 unRect.right = (FX_FLOAT)(unRect.right + 0.5); 830 unRect.right = (FX_FLOAT)(unRect.right + 0.5);
831 unRect.top = (FX_FLOAT)(unRect.top + 0.5); 831 unRect.top = (FX_FLOAT)(unRect.top + 0.5);
832 unRect.bottom = (FX_FLOAT)(unRect.bottom -0.5); 832 unRect.bottom = (FX_FLOAT)(unRect.bottom -0.5);
833 m_pApp->FFI_Invalidate(pData->pWidget->GetPDFPage(), unRect.left , unRect.top, unRect.right, unRect.bottom); 833 m_pApp->FFI_Invalidate(pData->pWidget->GetPDFPage(), unRect.left , unRect.top, unRect.right, unRect.bottom);
834 } 834 }
835 } 835 }
836 836
837 void CFFL_IFormFiller::OnKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, FX_I NT32 nKeyCode, CFX_WideString& strChange, 837 void CFFL_IFormFiller::OnKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, int3 2_t nKeyCode, CFX_WideString& strChange,
838 const CFX_Wid eString& strChangeEx, FX_BOOL bKeyDown, 838 const CFX_Wid eString& strChangeEx, FX_BOOL bKeyDown,
839 FX_BOOL & bRC , FX_BOOL & bExit) 839 FX_BOOL & bRC , FX_BOOL & bExit)
840 { 840 {
841 ASSERT(pPrivateData != NULL); 841 ASSERT(pPrivateData != NULL);
842 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 842 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
843 ASSERT(pData->pWidget != NULL); 843 ASSERT(pData->pWidget != NULL);
844 844
845 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); 845 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
846 ASSERT(pFormFiller != NULL); 846 ASSERT(pFormFiller != NULL);
847 847
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 } 1090 }
1091 1091
1092 void CFFL_IFormFiller::DoCut(CPDFSDK_Document* pDocument) 1092 void CFFL_IFormFiller::DoCut(CPDFSDK_Document* pDocument)
1093 { 1093 {
1094 } 1094 }
1095 1095
1096 void CFFL_IFormFiller::DoPaste(CPDFSDK_Document* pDocument) 1096 void CFFL_IFormFiller::DoPaste(CPDFSDK_Document* pDocument)
1097 { 1097 {
1098 1098
1099 } 1099 }
1100 void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData , FX_INT32 nKeyCode, 1100 void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData , int32_t nKeyCode,
1101 CFX_WideString & strChange, const CFX_WideString& strChangeEx, 1101 CFX_WideString & strChange, const CFX_WideString& strChangeEx,
1102 int nSelStart, int nSelEnd, 1102 int nSelStart, int nSelEnd,
1103 FX_BOOL bKeyDown, FX_BOOL & bRC, FX_BOOL & bExit, FX_DWORD nFlag) 1103 FX_BOOL bKeyDown, FX_BOOL & bRC, FX_BOOL & bExit, FX_DWORD nFlag)
1104 { 1104 {
1105 ASSERT(pPrivateData != NULL); 1105 ASSERT(pPrivateData != NULL);
1106 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 1106 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
1107 ASSERT(pData->pWidget != NULL); 1107 ASSERT(pData->pWidget != NULL);
1108 1108
1109 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); 1109 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
1110 ASSERT(pFormFiller != NULL); 1110 ASSERT(pFormFiller != NULL);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 ASSERT(pPrivateData != NULL); 1188 ASSERT(pPrivateData != NULL);
1189 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 1189 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
1190 ASSERT(pData->pWidget != NULL); 1190 ASSERT(pData->pWidget != NULL);
1191 1191
1192 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); 1192 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
1193 ASSERT(pFormFiller != NULL); 1193 ASSERT(pFormFiller != NULL);
1194 1194
1195 if (!bEditOrList) 1195 if (!bEditOrList)
1196 pFormFiller->OnKeyStroke(bExit); 1196 pFormFiller->OnKeyStroke(bExit);
1197 } 1197 }
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