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

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

Issue 2368403002: Watch destruction of widgets around OnAAction() method (Closed)
Patch Set: blown merge 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/include/cpdfsdk_widgethandler.h ('k') | fpdfsdk/include/ipdfsdk_annothandler.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_XFAWIDGETHANDLER_H_ 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGETHANDLER_H_
8 #define FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGETHANDLER_H_ 8 #define FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGETHANDLER_H_
9 9
10 #include "core/fxcrt/include/fx_basic.h" 10 #include "core/fxcrt/include/fx_basic.h"
(...skipping 28 matching lines...) Expand all
39 void OnDraw(CPDFSDK_PageView* pPageView, 39 void OnDraw(CPDFSDK_PageView* pPageView,
40 CPDFSDK_Annot* pAnnot, 40 CPDFSDK_Annot* pAnnot,
41 CFX_RenderDevice* pDevice, 41 CFX_RenderDevice* pDevice,
42 CFX_Matrix* pUser2Device, 42 CFX_Matrix* pUser2Device,
43 bool bDrawAnnots) override; 43 bool bDrawAnnots) override;
44 void OnCreate(CPDFSDK_Annot* pAnnot) override; 44 void OnCreate(CPDFSDK_Annot* pAnnot) override;
45 void OnLoad(CPDFSDK_Annot* pAnnot) override; 45 void OnLoad(CPDFSDK_Annot* pAnnot) override;
46 void OnDelete(CPDFSDK_Annot* pAnnot) override; 46 void OnDelete(CPDFSDK_Annot* pAnnot) override;
47 void OnRelease(CPDFSDK_Annot* pAnnot) override; 47 void OnRelease(CPDFSDK_Annot* pAnnot) override;
48 void OnMouseEnter(CPDFSDK_PageView* pPageView, 48 void OnMouseEnter(CPDFSDK_PageView* pPageView,
49 CPDFSDK_Annot* pAnnot, 49 CPDFSDK_Annot::ObservedPtr* pAnnot,
50 uint32_t nFlag) override; 50 uint32_t nFlag) override;
51 void OnMouseExit(CPDFSDK_PageView* pPageView, 51 void OnMouseExit(CPDFSDK_PageView* pPageView,
52 CPDFSDK_Annot* pAnnot, 52 CPDFSDK_Annot::ObservedPtr* pAnnot,
53 uint32_t nFlag) override; 53 uint32_t nFlag) override;
54 FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, 54 FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView,
55 CPDFSDK_Annot* pAnnot, 55 CPDFSDK_Annot::ObservedPtr* pAnnot,
56 uint32_t nFlags, 56 uint32_t nFlags,
57 const CFX_FloatPoint& point) override; 57 const CFX_FloatPoint& point) override;
58 FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, 58 FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView,
59 CPDFSDK_Annot* pAnnot, 59 CPDFSDK_Annot::ObservedPtr* pAnnot,
60 uint32_t nFlags, 60 uint32_t nFlags,
61 const CFX_FloatPoint& point) override; 61 const CFX_FloatPoint& point) override;
62 FX_BOOL OnLButtonDblClk(CPDFSDK_PageView* pPageView, 62 FX_BOOL OnLButtonDblClk(CPDFSDK_PageView* pPageView,
63 CPDFSDK_Annot* pAnnot, 63 CPDFSDK_Annot::ObservedPtr* pAnnot,
64 uint32_t nFlags, 64 uint32_t nFlags,
65 const CFX_FloatPoint& point) override; 65 const CFX_FloatPoint& point) override;
66 FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView, 66 FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView,
67 CPDFSDK_Annot* pAnnot, 67 CPDFSDK_Annot::ObservedPtr* pAnnot,
68 uint32_t nFlags, 68 uint32_t nFlags,
69 const CFX_FloatPoint& point) override; 69 const CFX_FloatPoint& point) override;
70 FX_BOOL OnMouseWheel(CPDFSDK_PageView* pPageView, 70 FX_BOOL OnMouseWheel(CPDFSDK_PageView* pPageView,
71 CPDFSDK_Annot* pAnnot, 71 CPDFSDK_Annot::ObservedPtr* pAnnot,
72 uint32_t nFlags, 72 uint32_t nFlags,
73 short zDelta, 73 short zDelta,
74 const CFX_FloatPoint& point) override; 74 const CFX_FloatPoint& point) override;
75 FX_BOOL OnRButtonDown(CPDFSDK_PageView* pPageView, 75 FX_BOOL OnRButtonDown(CPDFSDK_PageView* pPageView,
76 CPDFSDK_Annot* pAnnot, 76 CPDFSDK_Annot::ObservedPtr* pAnnot,
77 uint32_t nFlags, 77 uint32_t nFlags,
78 const CFX_FloatPoint& point) override; 78 const CFX_FloatPoint& point) override;
79 FX_BOOL OnRButtonUp(CPDFSDK_PageView* pPageView, 79 FX_BOOL OnRButtonUp(CPDFSDK_PageView* pPageView,
80 CPDFSDK_Annot* pAnnot, 80 CPDFSDK_Annot::ObservedPtr* pAnnot,
81 uint32_t nFlags, 81 uint32_t nFlags,
82 const CFX_FloatPoint& point) override; 82 const CFX_FloatPoint& point) override;
83 FX_BOOL OnRButtonDblClk(CPDFSDK_PageView* pPageView, 83 FX_BOOL OnRButtonDblClk(CPDFSDK_PageView* pPageView,
84 CPDFSDK_Annot* pAnnot, 84 CPDFSDK_Annot::ObservedPtr* pAnnot,
85 uint32_t nFlags, 85 uint32_t nFlags,
86 const CFX_FloatPoint& point) override; 86 const CFX_FloatPoint& point) override;
87 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, 87 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot,
88 uint32_t nChar, 88 uint32_t nChar,
89 uint32_t nFlags) override; 89 uint32_t nFlags) override;
90 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override; 90 FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
91 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override; 91 FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) override;
92 void OnDeSelected(CPDFSDK_Annot* pAnnot) override; 92 void OnDeSelected(CPDFSDK_Annot* pAnnot) override;
93 void OnSelected(CPDFSDK_Annot* pAnnot) override; 93 void OnSelected(CPDFSDK_Annot* pAnnot) override;
94 FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override; 94 FX_BOOL OnSetFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
95 FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override; 95 uint32_t nFlag) override;
96 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot, 96 FX_BOOL OnKillFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
97 CPDFSDK_Annot* pNewAnnot) override; 97 uint32_t nFlag) override;
98 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot::ObservedPtr* pOldAnnot,
99 CPDFSDK_Annot::ObservedPtr* pNewAnnot) override;
98 100
99 private: 101 private:
100 CXFA_FFWidgetHandler* GetXFAWidgetHandler(CPDFSDK_Annot* pAnnot); 102 CXFA_FFWidgetHandler* GetXFAWidgetHandler(CPDFSDK_Annot* pAnnot);
101 uint32_t GetFWLFlags(uint32_t dwFlag); 103 uint32_t GetFWLFlags(uint32_t dwFlag);
102 104
103 CPDFSDK_Environment* m_pEnv; 105 CPDFSDK_Environment* m_pEnv;
104 }; 106 };
105 107
106 #endif // FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGETHANDLER_H_ 108 #endif // FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGETHANDLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/cpdfsdk_widgethandler.h ('k') | fpdfsdk/include/ipdfsdk_annothandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698