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

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

Issue 2298443002: Rename CPDFSDK_BFAnnotHandler and CPDFSDK_XFAAnnotHandler. (Closed)
Patch Set: 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_widgethandler.h ('k') | fpdfsdk/include/cpdfsdk_xfawidgethandler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_XFAANNOTHANDLER_H_
8 #define FPDFSDK_INCLUDE_CPDFSDK_XFAANNOTHANDLER_H_
9
10 #include "core/fxcrt/include/fx_basic.h"
11 #include "core/fxcrt/include/fx_coordinates.h"
12 #include "fpdfsdk/include/ipdfsdk_annothandler.h"
13
14 class CFX_Matrix;
15 class CFX_RenderDevice;
16 class CPDF_Annot;
17 class CPDFDoc_Environment;
18 class CPDFSDK_Annot;
19 class CPDFSDK_PageView;
20 class CXFA_FFWidget;
21 class CXFA_FFWidgetHandler;
22
23 class CPDFSDK_XFAAnnotHandler : public IPDFSDK_AnnotHandler {
24 public:
25 explicit CPDFSDK_XFAAnnotHandler(CPDFDoc_Environment* pApp);
26 ~CPDFSDK_XFAAnnotHandler() override;
27
28 CFX_ByteString GetType() override;
29 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override;
30 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override;
31 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* pAnnot,
32 CPDFSDK_PageView* pPage) override;
33 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override;
34 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override;
35 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView,
36 CPDFSDK_Annot* pAnnot) override;
37 FX_BOOL HitTest(CPDFSDK_PageView* pPageView,
38 CPDFSDK_Annot* pAnnot,
39 const CFX_FloatPoint& point) override;
40 void OnDraw(CPDFSDK_PageView* pPageView,
41 CPDFSDK_Annot* pAnnot,
42 CFX_RenderDevice* pDevice,
43 CFX_Matrix* pUser2Device,
44 uint32_t dwFlags) override;
45 void OnDrawSleep(CPDFSDK_PageView* pPageView,
46 CPDFSDK_Annot* pAnnot,
47 CFX_RenderDevice* pDevice,
48 CFX_Matrix* pUser2Device,
49 const CFX_FloatRect& rcWindow,
50 uint32_t dwFlags) override;
51 void OnCreate(CPDFSDK_Annot* pAnnot) override;
52 void OnLoad(CPDFSDK_Annot* pAnnot) override;
53 void OnDelete(CPDFSDK_Annot* pAnnot) override;
54 void OnRelease(CPDFSDK_Annot* pAnnot) override;
55 void OnMouseEnter(CPDFSDK_PageView* pPageView,
56 CPDFSDK_Annot* pAnnot,
57 uint32_t nFlag) override;
58 void OnMouseExit(CPDFSDK_PageView* pPageView,
59 CPDFSDK_Annot* pAnnot,
60 uint32_t nFlag) override;
61 FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView,
62 CPDFSDK_Annot* pAnnot,
63 uint32_t nFlags,
64 const CFX_FloatPoint& point) override;
65 FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView,
66 CPDFSDK_Annot* pAnnot,
67 uint32_t nFlags,
68 const CFX_FloatPoint& point) override;
69 FX_BOOL OnLButtonDblClk(CPDFSDK_PageView* pPageView,
70 CPDFSDK_Annot* pAnnot,
71 uint32_t nFlags,
72 const CFX_FloatPoint& point) override;
73 FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView,
74 CPDFSDK_Annot* pAnnot,
75 uint32_t nFlags,
76 const CFX_FloatPoint& point) override;
77 FX_BOOL OnMouseWheel(CPDFSDK_PageView* pPageView,
78 CPDFSDK_Annot* pAnnot,
79 uint32_t nFlags,
80 short zDelta,
81 const CFX_FloatPoint& point) override;
82 FX_BOOL OnRButtonDown(CPDFSDK_PageView* pPageView,
83 CPDFSDK_Annot* pAnnot,
84 uint32_t nFlags,
85 const CFX_FloatPoint& point) override;
86 FX_BOOL OnRButtonUp(CPDFSDK_PageView* pPageView,
87 CPDFSDK_Annot* pAnnot,
88 uint32_t nFlags,
89 const CFX_FloatPoint& point) override;
90 FX_BOOL OnRButtonDblClk(CPDFSDK_PageView* pPageView,
91 CPDFSDK_Annot* pAnnot,
92 uint32_t nFlags,
93 const CFX_FloatPoint& point) override;
94 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot,
95 uint32_t nChar,
96 uint32_t nFlags) override;
97 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
98 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
99 void OnDeSelected(CPDFSDK_Annot* pAnnot) override;
100 void OnSelected(CPDFSDK_Annot* pAnnot) override;
101 FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override;
102 FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override;
103 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot,
104 CPDFSDK_Annot* pNewAnnot) override;
105
106 private:
107 CXFA_FFWidgetHandler* GetXFAWidgetHandler(CPDFSDK_Annot* pAnnot);
108 uint32_t GetFWLFlags(uint32_t dwFlag);
109
110 CPDFDoc_Environment* m_pApp;
111 };
112
113 #endif // FPDFSDK_INCLUDE_CPDFSDK_XFAANNOTHANDLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/cpdfsdk_widgethandler.h ('k') | fpdfsdk/include/cpdfsdk_xfawidgethandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698