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

Side by Side Diff: xfa/fxfa/app/xfa_ffwidgethandler.h

Issue 1835703002: Remove FX_DWORD from XFA, part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « xfa/fxfa/app/xfa_ffwidget.h ('k') | xfa/fxfa/app/xfa_fontmgr.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 XFA_FXFA_APP_XFA_FFWIDGETHANDLER_H_ 7 #ifndef XFA_FXFA_APP_XFA_FFWIDGETHANDLER_H_
8 #define XFA_FXFA_APP_XFA_FFWIDGETHANDLER_H_ 8 #define XFA_FXFA_APP_XFA_FFWIDGETHANDLER_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "xfa/fxfa/parser/xfa_document.h" 12 #include "xfa/fxfa/parser/xfa_document.h"
13 #include "xfa/include/fxfa/fxfa.h" 13 #include "xfa/include/fxfa/fxfa.h"
14 14
15 class CXFA_FFDocView; 15 class CXFA_FFDocView;
16 16
17 class CXFA_FFWidgetHandler : public IXFA_WidgetHandler { 17 class CXFA_FFWidgetHandler : public IXFA_WidgetHandler {
18 public: 18 public:
19 CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView); 19 CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView);
20 ~CXFA_FFWidgetHandler(); 20 ~CXFA_FFWidgetHandler();
21 virtual IXFA_Widget* CreateWidget(IXFA_Widget* hParent, 21 virtual IXFA_Widget* CreateWidget(IXFA_Widget* hParent,
22 XFA_WIDGETTYPE eType, 22 XFA_WIDGETTYPE eType,
23 IXFA_Widget* hBefore = NULL); 23 IXFA_Widget* hBefore = NULL);
24 virtual IXFA_PageView* GetPageView(IXFA_Widget* hWidget); 24 virtual IXFA_PageView* GetPageView(IXFA_Widget* hWidget);
25 virtual void GetRect(IXFA_Widget* hWidget, CFX_RectF& rt); 25 virtual void GetRect(IXFA_Widget* hWidget, CFX_RectF& rt);
26 virtual FX_DWORD GetStatus(IXFA_Widget* hWidget); 26 virtual uint32_t GetStatus(IXFA_Widget* hWidget);
27 virtual FX_BOOL GetBBox(IXFA_Widget* hWidget, 27 virtual FX_BOOL GetBBox(IXFA_Widget* hWidget,
28 CFX_RectF& rtBox, 28 CFX_RectF& rtBox,
29 FX_DWORD dwStatus, 29 uint32_t dwStatus,
30 FX_BOOL bDrawFocus = FALSE); 30 FX_BOOL bDrawFocus = FALSE);
31 virtual CXFA_WidgetAcc* GetDataAcc(IXFA_Widget* hWidget); 31 virtual CXFA_WidgetAcc* GetDataAcc(IXFA_Widget* hWidget);
32 virtual void GetName(IXFA_Widget* hWidget, 32 virtual void GetName(IXFA_Widget* hWidget,
33 CFX_WideString& wsName, 33 CFX_WideString& wsName,
34 int32_t iNameType = 0); 34 int32_t iNameType = 0);
35 virtual FX_BOOL GetToolTip(IXFA_Widget* hWidget, CFX_WideString& wsToolTip); 35 virtual FX_BOOL GetToolTip(IXFA_Widget* hWidget, CFX_WideString& wsToolTip);
36 virtual void SetPrivateData(IXFA_Widget* hWidget, 36 virtual void SetPrivateData(IXFA_Widget* hWidget,
37 void* module_id, 37 void* module_id,
38 void* pData, 38 void* pData,
39 PD_CALLBACK_FREEDATA callback); 39 PD_CALLBACK_FREEDATA callback);
40 virtual void* GetPrivateData(IXFA_Widget* hWidget, void* module_id); 40 virtual void* GetPrivateData(IXFA_Widget* hWidget, void* module_id);
41 virtual FX_BOOL OnMouseEnter(IXFA_Widget* hWidget); 41 virtual FX_BOOL OnMouseEnter(IXFA_Widget* hWidget);
42 virtual FX_BOOL OnMouseExit(IXFA_Widget* hWidget); 42 virtual FX_BOOL OnMouseExit(IXFA_Widget* hWidget);
43 virtual FX_BOOL OnLButtonDown(IXFA_Widget* hWidget, 43 virtual FX_BOOL OnLButtonDown(IXFA_Widget* hWidget,
44 FX_DWORD dwFlags, 44 uint32_t dwFlags,
45 FX_FLOAT fx, 45 FX_FLOAT fx,
46 FX_FLOAT fy); 46 FX_FLOAT fy);
47 virtual FX_BOOL OnLButtonUp(IXFA_Widget* hWidget, 47 virtual FX_BOOL OnLButtonUp(IXFA_Widget* hWidget,
48 FX_DWORD dwFlags, 48 uint32_t dwFlags,
49 FX_FLOAT fx, 49 FX_FLOAT fx,
50 FX_FLOAT fy); 50 FX_FLOAT fy);
51 virtual FX_BOOL OnLButtonDblClk(IXFA_Widget* hWidget, 51 virtual FX_BOOL OnLButtonDblClk(IXFA_Widget* hWidget,
52 FX_DWORD dwFlags, 52 uint32_t dwFlags,
53 FX_FLOAT fx, 53 FX_FLOAT fx,
54 FX_FLOAT fy); 54 FX_FLOAT fy);
55 virtual FX_BOOL OnMouseMove(IXFA_Widget* hWidget, 55 virtual FX_BOOL OnMouseMove(IXFA_Widget* hWidget,
56 FX_DWORD dwFlags, 56 uint32_t dwFlags,
57 FX_FLOAT fx, 57 FX_FLOAT fx,
58 FX_FLOAT fy); 58 FX_FLOAT fy);
59 virtual FX_BOOL OnMouseWheel(IXFA_Widget* hWidget, 59 virtual FX_BOOL OnMouseWheel(IXFA_Widget* hWidget,
60 FX_DWORD dwFlags, 60 uint32_t dwFlags,
61 int16_t zDelta, 61 int16_t zDelta,
62 FX_FLOAT fx, 62 FX_FLOAT fx,
63 FX_FLOAT fy); 63 FX_FLOAT fy);
64 virtual FX_BOOL OnRButtonDown(IXFA_Widget* hWidget, 64 virtual FX_BOOL OnRButtonDown(IXFA_Widget* hWidget,
65 FX_DWORD dwFlags, 65 uint32_t dwFlags,
66 FX_FLOAT fx, 66 FX_FLOAT fx,
67 FX_FLOAT fy); 67 FX_FLOAT fy);
68 virtual FX_BOOL OnRButtonUp(IXFA_Widget* hWidget, 68 virtual FX_BOOL OnRButtonUp(IXFA_Widget* hWidget,
69 FX_DWORD dwFlags, 69 uint32_t dwFlags,
70 FX_FLOAT fx, 70 FX_FLOAT fx,
71 FX_FLOAT fy); 71 FX_FLOAT fy);
72 virtual FX_BOOL OnRButtonDblClk(IXFA_Widget* hWidget, 72 virtual FX_BOOL OnRButtonDblClk(IXFA_Widget* hWidget,
73 FX_DWORD dwFlags, 73 uint32_t dwFlags,
74 FX_FLOAT fx, 74 FX_FLOAT fx,
75 FX_FLOAT fy); 75 FX_FLOAT fy);
76 76
77 virtual FX_BOOL OnKeyDown(IXFA_Widget* hWidget, 77 virtual FX_BOOL OnKeyDown(IXFA_Widget* hWidget,
78 FX_DWORD dwKeyCode, 78 uint32_t dwKeyCode,
79 FX_DWORD dwFlags); 79 uint32_t dwFlags);
80 virtual FX_BOOL OnKeyUp(IXFA_Widget* hWidget, 80 virtual FX_BOOL OnKeyUp(IXFA_Widget* hWidget,
81 FX_DWORD dwKeyCode, 81 uint32_t dwKeyCode,
82 FX_DWORD dwFlags); 82 uint32_t dwFlags);
83 virtual FX_BOOL OnChar(IXFA_Widget* hWidget, 83 virtual FX_BOOL OnChar(IXFA_Widget* hWidget,
84 FX_DWORD dwChar, 84 uint32_t dwChar,
85 FX_DWORD dwFlags); 85 uint32_t dwFlags);
86 virtual FX_DWORD OnHitTest(IXFA_Widget* hWidget, FX_FLOAT fx, FX_FLOAT fy); 86 virtual uint32_t OnHitTest(IXFA_Widget* hWidget, FX_FLOAT fx, FX_FLOAT fy);
87 virtual FX_BOOL OnSetCursor(IXFA_Widget* hWidget, FX_FLOAT fx, FX_FLOAT fy); 87 virtual FX_BOOL OnSetCursor(IXFA_Widget* hWidget, FX_FLOAT fx, FX_FLOAT fy);
88 virtual void RenderWidget(IXFA_Widget* hWidget, 88 virtual void RenderWidget(IXFA_Widget* hWidget,
89 CFX_Graphics* pGS, 89 CFX_Graphics* pGS,
90 CFX_Matrix* pMatrix = NULL, 90 CFX_Matrix* pMatrix = NULL,
91 FX_BOOL bHighlight = FALSE); 91 FX_BOOL bHighlight = FALSE);
92 virtual FX_BOOL HasEvent(CXFA_WidgetAcc* pWidgetAcc, 92 virtual FX_BOOL HasEvent(CXFA_WidgetAcc* pWidgetAcc,
93 XFA_EVENTTYPE eEventType); 93 XFA_EVENTTYPE eEventType);
94 virtual int32_t ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, 94 virtual int32_t ProcessEvent(CXFA_WidgetAcc* pWidgetAcc,
95 CXFA_EventParam* pParam); 95 CXFA_EventParam* pParam);
96 96
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 CXFA_Node* pParent, 129 CXFA_Node* pParent,
130 CXFA_Node* pBefore) const; 130 CXFA_Node* pBefore) const;
131 CXFA_Node* CreateCopyNode(XFA_ELEMENT eElement, 131 CXFA_Node* CreateCopyNode(XFA_ELEMENT eElement,
132 CXFA_Node* pParent, 132 CXFA_Node* pParent,
133 CXFA_Node* pBefore = NULL) const; 133 CXFA_Node* pBefore = NULL) const;
134 CXFA_Node* CreateTemplateNode(XFA_ELEMENT eElement, 134 CXFA_Node* CreateTemplateNode(XFA_ELEMENT eElement,
135 CXFA_Node* pParent, 135 CXFA_Node* pParent,
136 CXFA_Node* pBefore) const; 136 CXFA_Node* pBefore) const;
137 CXFA_Node* CreateFontNode(CXFA_Node* pParent) const; 137 CXFA_Node* CreateFontNode(CXFA_Node* pParent) const;
138 CXFA_Node* CreateMarginNode(CXFA_Node* pParent, 138 CXFA_Node* CreateMarginNode(CXFA_Node* pParent,
139 FX_DWORD dwFlags, 139 uint32_t dwFlags,
140 FX_FLOAT fInsets[4]) const; 140 FX_FLOAT fInsets[4]) const;
141 CXFA_Node* CreateValueNode(XFA_ELEMENT eValue, CXFA_Node* pParent) const; 141 CXFA_Node* CreateValueNode(XFA_ELEMENT eValue, CXFA_Node* pParent) const;
142 IXFA_ObjFactory* GetObjFactory() const; 142 IXFA_ObjFactory* GetObjFactory() const;
143 CXFA_Document* GetXFADoc() const; 143 CXFA_Document* GetXFADoc() const;
144 144
145 CXFA_FFDocView* m_pDocView; 145 CXFA_FFDocView* m_pDocView;
146 }; 146 };
147 147
148 class CXFA_FFMenuHandler : public IXFA_MenuHandler { 148 class CXFA_FFMenuHandler : public IXFA_MenuHandler {
149 public: 149 public:
(...skipping 17 matching lines...) Expand all
167 virtual FX_BOOL Redo(IXFA_Widget* hWidget); 167 virtual FX_BOOL Redo(IXFA_Widget* hWidget);
168 virtual FX_BOOL GetSuggestWords(IXFA_Widget* hWidget, 168 virtual FX_BOOL GetSuggestWords(IXFA_Widget* hWidget,
169 CFX_PointF pointf, 169 CFX_PointF pointf,
170 std::vector<CFX_ByteString>& sSuggest); 170 std::vector<CFX_ByteString>& sSuggest);
171 virtual FX_BOOL ReplaceSpellCheckWord(IXFA_Widget* hWidget, 171 virtual FX_BOOL ReplaceSpellCheckWord(IXFA_Widget* hWidget,
172 CFX_PointF pointf, 172 CFX_PointF pointf,
173 const CFX_ByteStringC& bsReplace); 173 const CFX_ByteStringC& bsReplace);
174 }; 174 };
175 175
176 #endif // XFA_FXFA_APP_XFA_FFWIDGETHANDLER_H_ 176 #endif // XFA_FXFA_APP_XFA_FFWIDGETHANDLER_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffwidget.h ('k') | xfa/fxfa/app/xfa_fontmgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698