| 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 "../../include/formfiller/FFL_FormFiller.h" | 7 #include "../../include/formfiller/FFL_FormFiller.h" |
| 8 #include "../../include/formfiller/FFL_Notify.h" | 8 #include "../../include/formfiller/FFL_Notify.h" |
| 9 #include "../../include/formfiller/FFL_CBA_Fontmap.h" | 9 #include "../../include/formfiller/FFL_CBA_Fontmap.h" |
| 10 | 10 |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 FX_BOOL bRestoreValue) { | 595 FX_BOOL bRestoreValue) { |
| 596 return GetPDFWindow(pPageView, FALSE); | 596 return GetPDFWindow(pPageView, FALSE); |
| 597 } | 597 } |
| 598 | 598 |
| 599 void CFFL_FormFiller::TimerProc() {} | 599 void CFFL_FormFiller::TimerProc() {} |
| 600 | 600 |
| 601 IFX_SystemHandler* CFFL_FormFiller::GetSystemHandler() const { | 601 IFX_SystemHandler* CFFL_FormFiller::GetSystemHandler() const { |
| 602 return m_pApp->GetSysHandler(); | 602 return m_pApp->GetSysHandler(); |
| 603 } | 603 } |
| 604 | 604 |
| 605 void CFFL_FormFiller::OnKeyStroke(FX_BOOL bKeyDown, FX_DWORD nFlag) {} | |
| 606 | |
| 607 void CFFL_FormFiller::EscapeFiller(CPDFSDK_PageView* pPageView, | 605 void CFFL_FormFiller::EscapeFiller(CPDFSDK_PageView* pPageView, |
| 608 FX_BOOL bDestroyPDFWindow) { | 606 FX_BOOL bDestroyPDFWindow) { |
| 609 m_bValid = FALSE; | 607 m_bValid = FALSE; |
| 610 | 608 |
| 611 FX_RECT rcRect = GetViewBBox(pPageView, m_pWidget); | 609 FX_RECT rcRect = GetViewBBox(pPageView, m_pWidget); |
| 612 InvalidateRect(rcRect.left, rcRect.top, rcRect.right, rcRect.bottom); | 610 InvalidateRect(rcRect.left, rcRect.top, rcRect.right, rcRect.bottom); |
| 613 | 611 |
| 614 if (bDestroyPDFWindow) | 612 if (bDestroyPDFWindow) |
| 615 DestroyPDFWindow(pPageView); | 613 DestroyPDFWindow(pPageView); |
| 616 } | 614 } |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); | 716 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); |
| 719 } | 717 } |
| 720 | 718 |
| 721 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, | 719 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, |
| 722 CPDFSDK_Annot* pAnnot, | 720 CPDFSDK_Annot* pAnnot, |
| 723 CFX_RenderDevice* pDevice, | 721 CFX_RenderDevice* pDevice, |
| 724 CPDF_Matrix* pUser2Device, | 722 CPDF_Matrix* pUser2Device, |
| 725 FX_DWORD dwFlags) { | 723 FX_DWORD dwFlags) { |
| 726 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); | 724 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); |
| 727 } | 725 } |
| OLD | NEW |