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

Side by Side Diff: fpdfsdk/cpdfsdk_widgethandler.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_baannothandler.cpp ('k') | fpdfsdk/cpdfsdk_widgethandler.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_WIDGETHANDLER_H_ 7 #ifndef FPDFSDK_CPDFSDK_WIDGETHANDLER_H_
8 #define FPDFSDK_CPDFSDK_WIDGETHANDLER_H_ 8 #define FPDFSDK_CPDFSDK_WIDGETHANDLER_H_
9 9
10 #include "core/fxcrt/fx_basic.h" 10 #include "core/fxcrt/fx_basic.h"
(...skipping 17 matching lines...) Expand all
28 explicit CPDFSDK_WidgetHandler(CPDFSDK_FormFillEnvironment* pApp); 28 explicit CPDFSDK_WidgetHandler(CPDFSDK_FormFillEnvironment* pApp);
29 ~CPDFSDK_WidgetHandler() override; 29 ~CPDFSDK_WidgetHandler() override;
30 30
31 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override; 31 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override;
32 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override; 32 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override;
33 #ifdef PDF_ENABLE_XFA 33 #ifdef PDF_ENABLE_XFA
34 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* hWidget, 34 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* hWidget,
35 CPDFSDK_PageView* pPage) override; 35 CPDFSDK_PageView* pPage) override;
36 #endif // PDF_ENABLE_XFA 36 #endif // PDF_ENABLE_XFA
37 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; 37 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override;
38 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override;
39 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView, 38 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView,
40 CPDFSDK_Annot* pAnnot) override; 39 CPDFSDK_Annot* pAnnot) override;
41 FX_BOOL HitTest(CPDFSDK_PageView* pPageView, 40 FX_BOOL HitTest(CPDFSDK_PageView* pPageView,
42 CPDFSDK_Annot* pAnnot, 41 CPDFSDK_Annot* pAnnot,
43 const CFX_FloatPoint& point) override; 42 const CFX_FloatPoint& point) override;
44 void OnDraw(CPDFSDK_PageView* pPageView, 43 void OnDraw(CPDFSDK_PageView* pPageView,
45 CPDFSDK_Annot* pAnnot, 44 CPDFSDK_Annot* pAnnot,
46 CFX_RenderDevice* pDevice, 45 CFX_RenderDevice* pDevice,
47 CFX_Matrix* pUser2Device, 46 CFX_Matrix* pUser2Device,
48 bool bDrawAnnots) override; 47 bool bDrawAnnots) override;
49 void OnCreate(CPDFSDK_Annot* pAnnot) override;
50 void OnLoad(CPDFSDK_Annot* pAnnot) override; 48 void OnLoad(CPDFSDK_Annot* pAnnot) override;
51 void OnDelete(CPDFSDK_Annot* pAnnot) override;
52 void OnRelease(CPDFSDK_Annot* pAnnot) override;
53 49
54 void OnMouseEnter(CPDFSDK_PageView* pPageView, 50 void OnMouseEnter(CPDFSDK_PageView* pPageView,
55 CPDFSDK_Annot::ObservedPtr* pAnnot, 51 CPDFSDK_Annot::ObservedPtr* pAnnot,
56 uint32_t nFlag) override; 52 uint32_t nFlag) override;
57 void OnMouseExit(CPDFSDK_PageView* pPageView, 53 void OnMouseExit(CPDFSDK_PageView* pPageView,
58 CPDFSDK_Annot::ObservedPtr* pAnnot, 54 CPDFSDK_Annot::ObservedPtr* pAnnot,
59 uint32_t nFlag) override; 55 uint32_t nFlag) override;
60 FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, 56 FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView,
61 CPDFSDK_Annot::ObservedPtr* pAnnot, 57 CPDFSDK_Annot::ObservedPtr* pAnnot,
62 uint32_t nFlags, 58 uint32_t nFlags,
(...skipping 25 matching lines...) Expand all
88 const CFX_FloatPoint& point) override; 84 const CFX_FloatPoint& point) override;
89 FX_BOOL OnRButtonDblClk(CPDFSDK_PageView* pPageView, 85 FX_BOOL OnRButtonDblClk(CPDFSDK_PageView* pPageView,
90 CPDFSDK_Annot::ObservedPtr* pAnnot, 86 CPDFSDK_Annot::ObservedPtr* pAnnot,
91 uint32_t nFlags, 87 uint32_t nFlags,
92 const CFX_FloatPoint& point) override; 88 const CFX_FloatPoint& point) override;
93 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, 89 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot,
94 uint32_t nChar, 90 uint32_t nChar,
95 uint32_t nFlags) override; 91 uint32_t nFlags) override;
96 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override; 92 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
97 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override; 93 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
98 void OnDeSelected(CPDFSDK_Annot* pAnnot) override {}
99 void OnSelected(CPDFSDK_Annot* pAnnot) override {}
100 FX_BOOL OnSetFocus(CPDFSDK_Annot::ObservedPtr* pAnnot, 94 FX_BOOL OnSetFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
101 uint32_t nFlag) override; 95 uint32_t nFlag) override;
102 FX_BOOL OnKillFocus(CPDFSDK_Annot::ObservedPtr* pAnnot, 96 FX_BOOL OnKillFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
103 uint32_t nFlag) override; 97 uint32_t nFlag) override;
104 #ifdef PDF_ENABLE_XFA 98 #ifdef PDF_ENABLE_XFA
105 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot::ObservedPtr* pOldAnnot, 99 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot::ObservedPtr* pOldAnnot,
106 CPDFSDK_Annot::ObservedPtr* pNewAnnot) override; 100 CPDFSDK_Annot::ObservedPtr* pNewAnnot) override;
107 #endif // PDF_ENABLE_XFA 101 #endif // PDF_ENABLE_XFA
108 102
109 void SetFormFiller(CFFL_InteractiveFormFiller* pFiller) { 103 void SetFormFiller(CFFL_InteractiveFormFiller* pFiller) {
110 m_pFormFiller = pFiller; 104 m_pFormFiller = pFiller;
111 } 105 }
112 CFFL_InteractiveFormFiller* GetFormFiller() { return m_pFormFiller; } 106 CFFL_InteractiveFormFiller* GetFormFiller() { return m_pFormFiller; }
113 107
114 private: 108 private:
115 CPDFSDK_FormFillEnvironment* m_pEnv; 109 CPDFSDK_FormFillEnvironment* m_pEnv;
116 CFFL_InteractiveFormFiller* m_pFormFiller; 110 CFFL_InteractiveFormFiller* m_pFormFiller;
117 }; 111 };
118 112
119 #endif // FPDFSDK_CPDFSDK_WIDGETHANDLER_H_ 113 #endif // FPDFSDK_CPDFSDK_WIDGETHANDLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_baannothandler.cpp ('k') | fpdfsdk/cpdfsdk_widgethandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698