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

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: Removing useless comments. 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
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 CFX_ByteString GetName() override; 32 CFX_ByteString GetName() override;
30 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override; 33 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override;
31 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override; 34 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override;
32 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* pAnnot, 35 #ifdef PDF_ENABLE_XFA
36 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* hWidget,
33 CPDFSDK_PageView* pPage) override; 37 CPDFSDK_PageView* pPage) override;
38 #endif // PDF_ENABLE_XFA
34 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; 39 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override;
35 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override; 40 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override;
36 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView, 41 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView,
37 CPDFSDK_Annot* pAnnot) override; 42 CPDFSDK_Annot* pAnnot) override;
38 FX_BOOL HitTest(CPDFSDK_PageView* pPageView, 43 FX_BOOL HitTest(CPDFSDK_PageView* pPageView,
39 CPDFSDK_Annot* pAnnot, 44 CPDFSDK_Annot* pAnnot,
40 const CFX_FloatPoint& point) override; 45 const CFX_FloatPoint& point) override;
41 void OnDraw(CPDFSDK_PageView* pPageView, 46 void OnDraw(CPDFSDK_PageView* pPageView,
42 CPDFSDK_Annot* pAnnot, 47 CPDFSDK_Annot* pAnnot,
43 CFX_RenderDevice* pDevice, 48 CFX_RenderDevice* pDevice,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const CFX_FloatPoint& point) override; 99 const CFX_FloatPoint& point) override;
95 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, 100 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot,
96 uint32_t nChar, 101 uint32_t nChar,
97 uint32_t nFlags) override; 102 uint32_t nFlags) override;
98 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override; 103 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
99 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override; 104 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
100 void OnDeSelected(CPDFSDK_Annot* pAnnot) override; 105 void OnDeSelected(CPDFSDK_Annot* pAnnot) override;
101 void OnSelected(CPDFSDK_Annot* pAnnot) override; 106 void OnSelected(CPDFSDK_Annot* pAnnot) override;
102 FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override; 107 FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override;
103 FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override; 108 FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override;
109 #ifdef PDF_ENABLE_XFA
104 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot, 110 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot,
105 CPDFSDK_Annot* pNewAnnot) override; 111 CPDFSDK_Annot* pNewAnnot) override;
106 112 #endif // PDF_ENABLE_XFA
107 private:
108 CXFA_FFWidgetHandler* GetXFAWidgetHandler(CPDFSDK_Annot* pAnnot);
109 uint32_t GetFWLFlags(uint32_t dwFlag);
110
111 CPDFDoc_Environment* m_pApp;
112 }; 113 };
113 114
114 #endif // FPDFSDK_INCLUDE_CPDFSDK_XFAANNOTHANDLER_H_ 115 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOTHANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698