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

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

Issue 1409743004: Remove dead code that was reactivated when fixing overrides. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 5 years, 2 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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 } 793 }
794 794
795 FX_BOOL CFFL_IFormFiller::IsValidAnnot(CPDFSDK_PageView* pPageView, 795 FX_BOOL CFFL_IFormFiller::IsValidAnnot(CPDFSDK_PageView* pPageView,
796 CPDFSDK_Annot* pAnnot) { 796 CPDFSDK_Annot* pAnnot) {
797 if (pPageView) 797 if (pPageView)
798 return pPageView->IsValidAnnot(pAnnot->GetPDFAnnot()); 798 return pPageView->IsValidAnnot(pAnnot->GetPDFAnnot());
799 799
800 return FALSE; 800 return FALSE;
801 } 801 }
802 802
803 void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, 803 void CFFL_IFormFiller::OnBeforeKeyStroke(void* pPrivateData,
804 void* pPrivateData,
805 int32_t nKeyCode,
806 CFX_WideString& strChange, 804 CFX_WideString& strChange,
807 const CFX_WideString& strChangeEx, 805 const CFX_WideString& strChangeEx,
808 int nSelStart, 806 int nSelStart,
809 int nSelEnd, 807 int nSelEnd,
810 FX_BOOL bKeyDown, 808 FX_BOOL bKeyDown,
811 FX_BOOL& bRC, 809 FX_BOOL& bRC,
812 FX_BOOL& bExit, 810 FX_BOOL& bExit,
813 FX_DWORD nFlag) { 811 FX_DWORD nFlag) {
814 ASSERT(pPrivateData != NULL); 812 ASSERT(pPrivateData != NULL);
815 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 813 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 bExit = TRUE; 872 bExit = TRUE;
875 m_bNotifying = FALSE; 873 m_bNotifying = FALSE;
876 return; 874 return;
877 } 875 }
878 } 876 }
879 877
880 m_bNotifying = FALSE; 878 m_bNotifying = FALSE;
881 } 879 }
882 } 880 }
883 } 881 }
884
885 void CFFL_IFormFiller::OnAfterKeyStroke(FX_BOOL bEditOrList,
886 void* pPrivateData,
887 FX_BOOL& bExit,
888 FX_DWORD nFlag) {
889 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
890 ASSERT(pData->pWidget);
891
892 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
893
894 if (!bEditOrList)
895 pFormFiller->OnKeyStroke(bExit, nFlag);
896 }
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