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

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

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 delete pFormFiller; 715 delete pFormFiller;
716 m_Maps.RemoveKey(pAnnot); 716 m_Maps.RemoveKey(pAnnot);
717 } 717 }
718 } 718 }
719 719
720 void CFFL_IFormFiller::SetFocusAnnotTab(CPDFSDK_Annot* pWidget, FX_BOOL bSameFie ld, FX_BOOL bNext) 720 void CFFL_IFormFiller::SetFocusAnnotTab(CPDFSDK_Annot* pWidget, FX_BOOL bSameFie ld, FX_BOOL bNext)
721 { 721 {
722 722
723 } 723 }
724 724
725 void CFFL_IFormFiller::QueryWherePopup(void* pPrivateData, FX_FLOAT fPopupMin,FX _FLOAT fPopupMax, FX_INT32 & nRet, FX_FLOAT & fPopupRet) 725 void CFFL_IFormFiller::QueryWherePopup(void* pPrivateData, FX_FLOAT fPopupMin,FX _FLOAT fPopupMax, int32_t & nRet, FX_FLOAT & fPopupRet)
726 { 726 {
727 ASSERT(pPrivateData != NULL); 727 ASSERT(pPrivateData != NULL);
728 728
729 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 729 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
730 730
731 731
732 732
733 733
734 CPDF_Rect rcPageView(0,0,0,0); 734 CPDF_Rect rcPageView(0,0,0,0);
735 rcPageView.right = pData->pWidget->GetPDFPage()->GetPageWidth(); 735 rcPageView.right = pData->pWidget->GetPDFPage()->GetPageWidth();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 unRect.Union(rcNew); 830 unRect.Union(rcNew);
831 //FX_RECT rcRect = unRect.GetOutterRect(); 831 //FX_RECT rcRect = unRect.GetOutterRect();
832 unRect.left = (FX_FLOAT)(unRect.left - 0.5); 832 unRect.left = (FX_FLOAT)(unRect.left - 0.5);
833 unRect.right = (FX_FLOAT)(unRect.right + 0.5); 833 unRect.right = (FX_FLOAT)(unRect.right + 0.5);
834 unRect.top = (FX_FLOAT)(unRect.top + 0.5); 834 unRect.top = (FX_FLOAT)(unRect.top + 0.5);
835 unRect.bottom = (FX_FLOAT)(unRect.bottom -0.5); 835 unRect.bottom = (FX_FLOAT)(unRect.bottom -0.5);
836 m_pApp->FFI_Invalidate(pData->pWidget->GetPDFXFAPage(), unRect.l eft, unRect.top, unRect.right, unRect.bottom); 836 m_pApp->FFI_Invalidate(pData->pWidget->GetPDFXFAPage(), unRect.l eft, unRect.top, unRect.right, unRect.bottom);
837 } 837 }
838 } 838 }
839 839
840 void CFFL_IFormFiller::OnKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, FX_I NT32 nKeyCode, CFX_WideString& strChange, 840 void CFFL_IFormFiller::OnKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, int3 2_t nKeyCode, CFX_WideString& strChange,
841 const CFX_Wid eString& strChangeEx, FX_BOOL bKeyDown, 841 const CFX_Wid eString& strChangeEx, FX_BOOL bKeyDown,
842 FX_BOOL & bRC , FX_BOOL & bExit) 842 FX_BOOL & bRC , FX_BOOL & bExit)
843 { 843 {
844 ASSERT(pPrivateData != NULL); 844 ASSERT(pPrivateData != NULL);
845 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 845 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
846 ASSERT(pData->pWidget != NULL); 846 ASSERT(pData->pWidget != NULL);
847 847
848 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); 848 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
849 ASSERT(pFormFiller != NULL); 849 ASSERT(pFormFiller != NULL);
850 850
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 } 1277 }
1278 1278
1279 void CFFL_IFormFiller::DoCut(CPDFSDK_Document* pDocument) 1279 void CFFL_IFormFiller::DoCut(CPDFSDK_Document* pDocument)
1280 { 1280 {
1281 } 1281 }
1282 1282
1283 void CFFL_IFormFiller::DoPaste(CPDFSDK_Document* pDocument) 1283 void CFFL_IFormFiller::DoPaste(CPDFSDK_Document* pDocument)
1284 { 1284 {
1285 1285
1286 } 1286 }
1287 void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData , FX_INT32 nKeyCode, 1287 void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData , int32_t nKeyCode,
1288 CFX_WideString & strChange, const CFX_WideString& strChangeEx, 1288 CFX_WideString & strChange, const CFX_WideString& strChangeEx,
1289 int nSelStart, int nSelEnd, 1289 int nSelStart, int nSelEnd,
1290 FX_BOOL bKeyDown, FX_BOOL & bRC, FX_BOOL & bExit, FX_DWORD nFlag) 1290 FX_BOOL bKeyDown, FX_BOOL & bRC, FX_BOOL & bExit, FX_DWORD nFlag)
1291 { 1291 {
1292 ASSERT(pPrivateData != NULL); 1292 ASSERT(pPrivateData != NULL);
1293 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 1293 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
1294 ASSERT(pData->pWidget != NULL); 1294 ASSERT(pData->pWidget != NULL);
1295 1295
1296 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); 1296 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
1297 ASSERT(pFormFiller != NULL); 1297 ASSERT(pFormFiller != NULL);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 ASSERT(pPrivateData != NULL); 1388 ASSERT(pPrivateData != NULL);
1389 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 1389 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
1390 ASSERT(pData->pWidget != NULL); 1390 ASSERT(pData->pWidget != NULL);
1391 1391
1392 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); 1392 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
1393 ASSERT(pFormFiller != NULL); 1393 ASSERT(pFormFiller != NULL);
1394 1394
1395 if (!bEditOrList) 1395 if (!bEditOrList)
1396 pFormFiller->OnKeyStroke(bExit); 1396 pFormFiller->OnKeyStroke(bExit);
1397 } 1397 }
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