Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: fpdfsdk/include/cpdfsdk_baannothandler.h

Issue 2273893002: Display content of the annotation when mouse hover. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Display content of the annotation when mouse hover. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/cpdfsdk_baannot.h ('k') | fpdfsdk/include/fsdk_mgr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_XFAANNOTHANDLER_H_ 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_BAANNOTHANDLER_H_
8 #define FPDFSDK_INCLUDE_CPDFSDK_XFAANNOTHANDLER_H_ 8 #define FPDFSDK_INCLUDE_CPDFSDK_BAANNOTHANDLER_H_
9 9
10 #include "core/fxcrt/include/fx_basic.h" 10 #include "core/fxcrt/include/fx_basic.h"
11 #include "core/fxcrt/include/fx_coordinates.h" 11 #include "core/fxcrt/include/fx_coordinates.h"
12 #include "fpdfsdk/include/ipdfsdk_annothandler.h" 12 #include "fpdfsdk/include/ipdfsdk_annothandler.h"
13 13
14 class CFFL_IFormFiller;
14 class CFX_Matrix; 15 class CFX_Matrix;
15 class CFX_RenderDevice; 16 class CFX_RenderDevice;
16 class CPDF_Annot; 17 class CPDF_Annot;
17 class CPDFDoc_Environment; 18 class CPDFDoc_Environment;
18 class CPDFSDK_Annot; 19 class CPDFSDK_Annot;
19 class CPDFSDK_PageView; 20 class CPDFSDK_PageView;
21
22 #ifdef PDF_ENABLE_XFA
20 class CXFA_FFWidget; 23 class CXFA_FFWidget;
21 class CXFA_FFWidgetHandler; 24 #endif // PDF_ENABLE_XFA
22 25
23 class CPDFSDK_XFAAnnotHandler : public IPDFSDK_AnnotHandler { 26 class CPDFSDK_BAAnnotHandler : public IPDFSDK_AnnotHandler {
24 public: 27 public:
25 explicit CPDFSDK_XFAAnnotHandler(CPDFDoc_Environment* pApp); 28 CPDFSDK_BAAnnotHandler();
26 ~CPDFSDK_XFAAnnotHandler() override; 29 ~CPDFSDK_BAAnnotHandler() override;
27 30
28 CFX_ByteString GetType() override; 31 CFX_ByteString GetType() override;
29 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override; 32 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override;
30 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override; 33 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override;
31 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* pAnnot, 34 #ifdef PDF_ENABLE_XFA
35 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* hWidget,
32 CPDFSDK_PageView* pPage) override; 36 CPDFSDK_PageView* pPage) override;
37 #endif // PDF_ENABLE_XFA
33 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; 38 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override;
34 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override; 39 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override;
35 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView, 40 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView,
36 CPDFSDK_Annot* pAnnot) override; 41 CPDFSDK_Annot* pAnnot) override;
37 FX_BOOL HitTest(CPDFSDK_PageView* pPageView, 42 FX_BOOL HitTest(CPDFSDK_PageView* pPageView,
38 CPDFSDK_Annot* pAnnot, 43 CPDFSDK_Annot* pAnnot,
39 const CFX_FloatPoint& point) override; 44 const CFX_FloatPoint& point) override;
40 void OnDraw(CPDFSDK_PageView* pPageView, 45 void OnDraw(CPDFSDK_PageView* pPageView,
41 CPDFSDK_Annot* pAnnot, 46 CPDFSDK_Annot* pAnnot,
42 CFX_RenderDevice* pDevice, 47 CFX_RenderDevice* pDevice,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 const CFX_FloatPoint& point) override; 98 const CFX_FloatPoint& point) override;
94 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, 99 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot,
95 uint32_t nChar, 100 uint32_t nChar,
96 uint32_t nFlags) override; 101 uint32_t nFlags) override;
97 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override; 102 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
98 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override; 103 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
99 void OnDeSelected(CPDFSDK_Annot* pAnnot) override; 104 void OnDeSelected(CPDFSDK_Annot* pAnnot) override;
100 void OnSelected(CPDFSDK_Annot* pAnnot) override; 105 void OnSelected(CPDFSDK_Annot* pAnnot) override;
101 FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override; 106 FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override;
102 FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override; 107 FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override;
108 #ifdef PDF_ENABLE_XFA
103 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot, 109 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot,
104 CPDFSDK_Annot* pNewAnnot) override; 110 CPDFSDK_Annot* pNewAnnot) override;
105 111 #endif // PDF_ENABLE_XFA
106 private:
107 CXFA_FFWidgetHandler* GetXFAWidgetHandler(CPDFSDK_Annot* pAnnot);
108 uint32_t GetFWLFlags(uint32_t dwFlag);
109
110 CPDFDoc_Environment* m_pApp;
111 }; 112 };
112 113
113 #endif // FPDFSDK_INCLUDE_CPDFSDK_XFAANNOTHANDLER_H_ 114 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOTHANDLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/cpdfsdk_baannot.h ('k') | fpdfsdk/include/fsdk_mgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698