| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef FPDFSDK_INCLUDE_CPDFSDK_WIDGETHANDLER_H_ | 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_WIDGETHANDLER_H_ |
| 8 #define FPDFSDK_INCLUDE_CPDFSDK_WIDGETHANDLER_H_ | 8 #define FPDFSDK_INCLUDE_CPDFSDK_WIDGETHANDLER_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_basic.h" | 10 #include "core/fxcrt/include/fx_basic.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; | 37 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; |
| 38 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override; | 38 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override; |
| 39 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView, | 39 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView, |
| 40 CPDFSDK_Annot* pAnnot) override; | 40 CPDFSDK_Annot* pAnnot) override; |
| 41 FX_BOOL HitTest(CPDFSDK_PageView* pPageView, | 41 FX_BOOL HitTest(CPDFSDK_PageView* pPageView, |
| 42 CPDFSDK_Annot* pAnnot, | 42 CPDFSDK_Annot* pAnnot, |
| 43 const CFX_FloatPoint& point) override; | 43 const CFX_FloatPoint& point) override; |
| 44 void OnDraw(CPDFSDK_PageView* pPageView, | 44 void OnDraw(CPDFSDK_PageView* pPageView, |
| 45 CPDFSDK_Annot* pAnnot, | 45 CPDFSDK_Annot* pAnnot, |
| 46 CFX_RenderDevice* pDevice, | 46 CFX_RenderDevice* pDevice, |
| 47 CFX_Matrix* pUser2Device) override; | 47 CFX_Matrix* pUser2Device, |
| 48 bool bDrawAnnots) override; |
| 48 void OnCreate(CPDFSDK_Annot* pAnnot) override; | 49 void OnCreate(CPDFSDK_Annot* pAnnot) override; |
| 49 void OnLoad(CPDFSDK_Annot* pAnnot) override; | 50 void OnLoad(CPDFSDK_Annot* pAnnot) override; |
| 50 void OnDelete(CPDFSDK_Annot* pAnnot) override; | 51 void OnDelete(CPDFSDK_Annot* pAnnot) override; |
| 51 void OnRelease(CPDFSDK_Annot* pAnnot) override; | 52 void OnRelease(CPDFSDK_Annot* pAnnot) override; |
| 52 void OnMouseEnter(CPDFSDK_PageView* pPageView, | 53 void OnMouseEnter(CPDFSDK_PageView* pPageView, |
| 53 CPDFSDK_Annot* pAnnot, | 54 CPDFSDK_Annot* pAnnot, |
| 54 uint32_t nFlag) override; | 55 uint32_t nFlag) override; |
| 55 void OnMouseExit(CPDFSDK_PageView* pPageView, | 56 void OnMouseExit(CPDFSDK_PageView* pPageView, |
| 56 CPDFSDK_Annot* pAnnot, | 57 CPDFSDK_Annot* pAnnot, |
| 57 uint32_t nFlag) override; | 58 uint32_t nFlag) override; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 105 |
| 105 void SetFormFiller(CFFL_IFormFiller* pFiller) { m_pFormFiller = pFiller; } | 106 void SetFormFiller(CFFL_IFormFiller* pFiller) { m_pFormFiller = pFiller; } |
| 106 CFFL_IFormFiller* GetFormFiller() { return m_pFormFiller; } | 107 CFFL_IFormFiller* GetFormFiller() { return m_pFormFiller; } |
| 107 | 108 |
| 108 private: | 109 private: |
| 109 CPDFDoc_Environment* m_pApp; | 110 CPDFDoc_Environment* m_pApp; |
| 110 CFFL_IFormFiller* m_pFormFiller; | 111 CFFL_IFormFiller* m_pFormFiller; |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 #endif // FPDFSDK_INCLUDE_CPDFSDK_WIDGETHANDLER_H_ | 114 #endif // FPDFSDK_INCLUDE_CPDFSDK_WIDGETHANDLER_H_ |
| OLD | NEW |