| 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/formfiller/cffl_iformfiller.h" | 7 #include "fpdfsdk/formfiller/cffl_iformfiller.h" |
| 8 | 8 |
| 9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" |
| 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 return; | 92 return; |
| 93 } | 93 } |
| 94 } | 94 } |
| 95 | 95 |
| 96 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { | 96 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { |
| 97 pFormFiller->OnDrawDeactive(pPageView, pAnnot, pDevice, pUser2Device, | 97 pFormFiller->OnDrawDeactive(pPageView, pAnnot, pDevice, pUser2Device, |
| 98 dwFlags); | 98 dwFlags); |
| 99 } else { | 99 } else { |
| 100 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); | 100 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); |
| 101 } | 101 } |
| 102 | 102 |
| 103 if (!IsReadOnly(pWidget) && IsFillingAllowed(pWidget)) | 103 if (!IsReadOnly(pWidget) && IsFillingAllowed(pWidget)) |
| 104 pWidget->DrawShadow(pDevice, pPageView); | 104 pWidget->DrawShadow(pDevice, pPageView); |
| 105 } | 105 } |
| 106 | 106 |
| 107 void CFFL_IFormFiller::OnCreate(CPDFSDK_Annot* pAnnot) { | 107 void CFFL_IFormFiller::OnCreate(CPDFSDK_Annot* pAnnot) { |
| 108 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { | 108 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { |
| 109 pFormFiller->OnCreate(pAnnot); | 109 pFormFiller->OnCreate(pAnnot); |
| 110 } | 110 } |
| (...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 bExit = TRUE; | 1008 bExit = TRUE; |
| 1009 m_bNotifying = FALSE; | 1009 m_bNotifying = FALSE; |
| 1010 return; | 1010 return; |
| 1011 } | 1011 } |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 m_bNotifying = FALSE; | 1014 m_bNotifying = FALSE; |
| 1015 } | 1015 } |
| 1016 } | 1016 } |
| 1017 } | 1017 } |
| OLD | NEW |