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

Side by Side Diff: fpdfsdk/cpdfsdk_xfawidgethandler.h

Issue 2410193005: Remove unused widget handler overrides (Closed)
Patch Set: Created 4 years, 2 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/cpdfsdk_widgethandler.cpp ('k') | fpdfsdk/cpdfsdk_xfawidgethandler.cpp » ('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_CPDFSDK_XFAWIDGETHANDLER_H_ 7 #ifndef FPDFSDK_CPDFSDK_XFAWIDGETHANDLER_H_
8 #define FPDFSDK_CPDFSDK_XFAWIDGETHANDLER_H_ 8 #define FPDFSDK_CPDFSDK_XFAWIDGETHANDLER_H_
9 9
10 #include "core/fxcrt/fx_basic.h" 10 #include "core/fxcrt/fx_basic.h"
(...skipping 12 matching lines...) Expand all
23 class CPDFSDK_XFAWidgetHandler : public IPDFSDK_AnnotHandler { 23 class CPDFSDK_XFAWidgetHandler : public IPDFSDK_AnnotHandler {
24 public: 24 public:
25 explicit CPDFSDK_XFAWidgetHandler(CPDFSDK_FormFillEnvironment* pApp); 25 explicit CPDFSDK_XFAWidgetHandler(CPDFSDK_FormFillEnvironment* pApp);
26 ~CPDFSDK_XFAWidgetHandler() override; 26 ~CPDFSDK_XFAWidgetHandler() override;
27 27
28 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override; 28 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override;
29 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override; 29 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override;
30 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* pAnnot, 30 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* pAnnot,
31 CPDFSDK_PageView* pPage) override; 31 CPDFSDK_PageView* pPage) override;
32 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; 32 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override;
33 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override;
34 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView, 33 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView,
35 CPDFSDK_Annot* pAnnot) override; 34 CPDFSDK_Annot* pAnnot) override;
36 FX_BOOL HitTest(CPDFSDK_PageView* pPageView, 35 FX_BOOL HitTest(CPDFSDK_PageView* pPageView,
37 CPDFSDK_Annot* pAnnot, 36 CPDFSDK_Annot* pAnnot,
38 const CFX_FloatPoint& point) override; 37 const CFX_FloatPoint& point) override;
39 void OnDraw(CPDFSDK_PageView* pPageView, 38 void OnDraw(CPDFSDK_PageView* pPageView,
40 CPDFSDK_Annot* pAnnot, 39 CPDFSDK_Annot* pAnnot,
41 CFX_RenderDevice* pDevice, 40 CFX_RenderDevice* pDevice,
42 CFX_Matrix* pUser2Device, 41 CFX_Matrix* pUser2Device,
43 bool bDrawAnnots) override; 42 bool bDrawAnnots) override;
44 void OnCreate(CPDFSDK_Annot* pAnnot) override;
45 void OnLoad(CPDFSDK_Annot* pAnnot) override; 43 void OnLoad(CPDFSDK_Annot* pAnnot) override;
46 void OnDelete(CPDFSDK_Annot* pAnnot) override;
47 void OnRelease(CPDFSDK_Annot* pAnnot) override;
48 void OnMouseEnter(CPDFSDK_PageView* pPageView, 44 void OnMouseEnter(CPDFSDK_PageView* pPageView,
49 CPDFSDK_Annot::ObservedPtr* pAnnot, 45 CPDFSDK_Annot::ObservedPtr* pAnnot,
50 uint32_t nFlag) override; 46 uint32_t nFlag) override;
51 void OnMouseExit(CPDFSDK_PageView* pPageView, 47 void OnMouseExit(CPDFSDK_PageView* pPageView,
52 CPDFSDK_Annot::ObservedPtr* pAnnot, 48 CPDFSDK_Annot::ObservedPtr* pAnnot,
53 uint32_t nFlag) override; 49 uint32_t nFlag) override;
54 FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, 50 FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView,
55 CPDFSDK_Annot::ObservedPtr* pAnnot, 51 CPDFSDK_Annot::ObservedPtr* pAnnot,
56 uint32_t nFlags, 52 uint32_t nFlags,
57 const CFX_FloatPoint& point) override; 53 const CFX_FloatPoint& point) override;
(...skipping 24 matching lines...) Expand all
82 const CFX_FloatPoint& point) override; 78 const CFX_FloatPoint& point) override;
83 FX_BOOL OnRButtonDblClk(CPDFSDK_PageView* pPageView, 79 FX_BOOL OnRButtonDblClk(CPDFSDK_PageView* pPageView,
84 CPDFSDK_Annot::ObservedPtr* pAnnot, 80 CPDFSDK_Annot::ObservedPtr* pAnnot,
85 uint32_t nFlags, 81 uint32_t nFlags,
86 const CFX_FloatPoint& point) override; 82 const CFX_FloatPoint& point) override;
87 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, 83 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot,
88 uint32_t nChar, 84 uint32_t nChar,
89 uint32_t nFlags) override; 85 uint32_t nFlags) override;
90 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override; 86 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
91 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override; 87 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
92 void OnDeSelected(CPDFSDK_Annot* pAnnot) override;
93 void OnSelected(CPDFSDK_Annot* pAnnot) override;
94 FX_BOOL OnSetFocus(CPDFSDK_Annot::ObservedPtr* pAnnot, 88 FX_BOOL OnSetFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
95 uint32_t nFlag) override; 89 uint32_t nFlag) override;
96 FX_BOOL OnKillFocus(CPDFSDK_Annot::ObservedPtr* pAnnot, 90 FX_BOOL OnKillFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
97 uint32_t nFlag) override; 91 uint32_t nFlag) override;
98 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot::ObservedPtr* pOldAnnot, 92 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot::ObservedPtr* pOldAnnot,
99 CPDFSDK_Annot::ObservedPtr* pNewAnnot) override; 93 CPDFSDK_Annot::ObservedPtr* pNewAnnot) override;
100 94
101 private: 95 private:
102 CXFA_FFWidgetHandler* GetXFAWidgetHandler(CPDFSDK_Annot* pAnnot); 96 CXFA_FFWidgetHandler* GetXFAWidgetHandler(CPDFSDK_Annot* pAnnot);
103 uint32_t GetFWLFlags(uint32_t dwFlag); 97 uint32_t GetFWLFlags(uint32_t dwFlag);
104 98
105 CPDFSDK_FormFillEnvironment* m_pEnv; 99 CPDFSDK_FormFillEnvironment* m_pEnv;
106 }; 100 };
107 101
108 #endif // FPDFSDK_CPDFSDK_XFAWIDGETHANDLER_H_ 102 #endif // FPDFSDK_CPDFSDK_XFAWIDGETHANDLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_widgethandler.cpp ('k') | fpdfsdk/cpdfsdk_xfawidgethandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698