| OLD | NEW |
| 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" | 7 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h" |
| 8 | 8 |
| 9 #include "fpdfsdk/include/formfiller/FFL_CheckBox.h" | 9 #include "fpdfsdk/include/formfiller/FFL_CheckBox.h" |
| 10 #include "fpdfsdk/include/formfiller/FFL_ComboBox.h" | 10 #include "fpdfsdk/include/formfiller/FFL_ComboBox.h" |
| (...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 | 814 |
| 815 void CFFL_IFormFiller::OnPopupPreOpen(void* pPrivateData, | 815 void CFFL_IFormFiller::OnPopupPreOpen(void* pPrivateData, |
| 816 FX_BOOL& bExit, | 816 FX_BOOL& bExit, |
| 817 FX_DWORD nFlag) { | 817 FX_DWORD nFlag) { |
| 818 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; | 818 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; |
| 819 ASSERT(pData); | 819 ASSERT(pData); |
| 820 ASSERT(pData->pWidget); | 820 ASSERT(pData->pWidget); |
| 821 | 821 |
| 822 FX_BOOL bTempReset = FALSE; | 822 FX_BOOL bTempReset = FALSE; |
| 823 FX_BOOL bTempExit = FALSE; | 823 FX_BOOL bTempExit = FALSE; |
| 824 this->OnPreOpen(pData->pWidget, pData->pPageView, bTempReset, bTempExit, | 824 OnPreOpen(pData->pWidget, pData->pPageView, bTempReset, bTempExit, nFlag); |
| 825 nFlag); | |
| 826 | 825 |
| 827 if (bTempReset || bTempExit) { | 826 if (bTempReset || bTempExit) { |
| 828 bExit = TRUE; | 827 bExit = TRUE; |
| 829 } | 828 } |
| 830 } | 829 } |
| 831 | 830 |
| 832 void CFFL_IFormFiller::OnPopupPostOpen(void* pPrivateData, | 831 void CFFL_IFormFiller::OnPopupPostOpen(void* pPrivateData, |
| 833 FX_BOOL& bExit, | 832 FX_BOOL& bExit, |
| 834 FX_DWORD nFlag) { | 833 FX_DWORD nFlag) { |
| 835 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; | 834 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; |
| 836 ASSERT(pData); | 835 ASSERT(pData); |
| 837 ASSERT(pData->pWidget); | 836 ASSERT(pData->pWidget); |
| 838 | 837 |
| 839 FX_BOOL bTempReset = FALSE; | 838 FX_BOOL bTempReset = FALSE; |
| 840 FX_BOOL bTempExit = FALSE; | 839 FX_BOOL bTempExit = FALSE; |
| 841 this->OnPostOpen(pData->pWidget, pData->pPageView, bTempReset, bTempExit, | 840 OnPostOpen(pData->pWidget, pData->pPageView, bTempReset, bTempExit, nFlag); |
| 842 nFlag); | |
| 843 | 841 |
| 844 if (bTempReset || bTempExit) { | 842 if (bTempReset || bTempExit) { |
| 845 bExit = TRUE; | 843 bExit = TRUE; |
| 846 } | 844 } |
| 847 } | 845 } |
| 848 | 846 |
| 849 void CFFL_IFormFiller::OnPreOpen(CPDFSDK_Widget* pWidget, | 847 void CFFL_IFormFiller::OnPreOpen(CPDFSDK_Widget* pWidget, |
| 850 CPDFSDK_PageView* pPageView, | 848 CPDFSDK_PageView* pPageView, |
| 851 FX_BOOL& bReset, | 849 FX_BOOL& bReset, |
| 852 FX_BOOL& bExit, | 850 FX_BOOL& bExit, |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 bExit = TRUE; | 1005 bExit = TRUE; |
| 1008 m_bNotifying = FALSE; | 1006 m_bNotifying = FALSE; |
| 1009 return; | 1007 return; |
| 1010 } | 1008 } |
| 1011 } | 1009 } |
| 1012 | 1010 |
| 1013 m_bNotifying = FALSE; | 1011 m_bNotifying = FALSE; |
| 1014 } | 1012 } |
| 1015 } | 1013 } |
| 1016 } | 1014 } |
| OLD | NEW |