| 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_formfiller.h" | 7 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
| 8 | 8 |
| 9 #include "core/fpdfapi/page/cpdf_page.h" | 9 #include "core/fpdfapi/page/cpdf_page.h" |
| 10 #include "core/fxge/cfx_renderdevice.h" | 10 #include "core/fxge/cfx_renderdevice.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 101 } |
| 102 | 102 |
| 103 void CFFL_FormFiller::OnDrawDeactive(CPDFSDK_PageView* pPageView, | 103 void CFFL_FormFiller::OnDrawDeactive(CPDFSDK_PageView* pPageView, |
| 104 CPDFSDK_Annot* pAnnot, | 104 CPDFSDK_Annot* pAnnot, |
| 105 CFX_RenderDevice* pDevice, | 105 CFX_RenderDevice* pDevice, |
| 106 CFX_Matrix* pUser2Device) { | 106 CFX_Matrix* pUser2Device) { |
| 107 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; | 107 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; |
| 108 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); | 108 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void CFFL_FormFiller::OnCreate(CPDFSDK_Annot* pAnnot) {} | |
| 112 | |
| 113 void CFFL_FormFiller::OnLoad(CPDFSDK_Annot* pAnnot) {} | |
| 114 | |
| 115 void CFFL_FormFiller::OnDelete(CPDFSDK_Annot* pAnnot) {} | |
| 116 | |
| 117 void CFFL_FormFiller::OnMouseEnter(CPDFSDK_PageView* pPageView, | 111 void CFFL_FormFiller::OnMouseEnter(CPDFSDK_PageView* pPageView, |
| 118 CPDFSDK_Annot* pAnnot) {} | 112 CPDFSDK_Annot* pAnnot) {} |
| 119 | 113 |
| 120 void CFFL_FormFiller::OnMouseExit(CPDFSDK_PageView* pPageView, | 114 void CFFL_FormFiller::OnMouseExit(CPDFSDK_PageView* pPageView, |
| 121 CPDFSDK_Annot* pAnnot) { | 115 CPDFSDK_Annot* pAnnot) { |
| 122 EndTimer(); | 116 EndTimer(); |
| 123 ASSERT(m_pWidget); | 117 ASSERT(m_pWidget); |
| 124 } | 118 } |
| 125 | 119 |
| 126 FX_BOOL CFFL_FormFiller::OnLButtonDown(CPDFSDK_PageView* pPageView, | 120 FX_BOOL CFFL_FormFiller::OnLButtonDown(CPDFSDK_PageView* pPageView, |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); | 705 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, nullptr); |
| 712 } | 706 } |
| 713 } | 707 } |
| 714 | 708 |
| 715 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, | 709 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, |
| 716 CPDFSDK_Annot* pAnnot, | 710 CPDFSDK_Annot* pAnnot, |
| 717 CFX_RenderDevice* pDevice, | 711 CFX_RenderDevice* pDevice, |
| 718 CFX_Matrix* pUser2Device) { | 712 CFX_Matrix* pUser2Device) { |
| 719 OnDraw(pPageView, pAnnot, pDevice, pUser2Device); | 713 OnDraw(pPageView, pAnnot, pDevice, pUser2Device); |
| 720 } | 714 } |
| OLD | NEW |