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

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

Issue 1948583002: Remove FWL_WGTHITTEST_* defines in favour of enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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/include/xfa_ffwidget.h ('k') | no next file » | 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_INCLUDE_XFA_FFWIDGETHANDLER_H_ 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFWIDGETHANDLER_H_
8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGETHANDLER_H_ 8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGETHANDLER_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "xfa/fxfa/include/fxfa.h" 12 #include "xfa/fxfa/include/fxfa.h"
13 #include "xfa/fxfa/parser/xfa_document.h" 13 #include "xfa/fxfa/parser/xfa_document.h"
14 14
15 class CXFA_FFDocView; 15 class CXFA_FFDocView;
16 enum class FWL_WidgetHit;
16 17
17 class CXFA_FFWidgetHandler { 18 class CXFA_FFWidgetHandler {
18 public: 19 public:
19 CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView); 20 CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView);
20 ~CXFA_FFWidgetHandler(); 21 ~CXFA_FFWidgetHandler();
21 22
22 CXFA_FFWidget* CreateWidget(CXFA_FFWidget* hParent, 23 CXFA_FFWidget* CreateWidget(CXFA_FFWidget* hParent,
23 XFA_WIDGETTYPE eType, 24 XFA_WIDGETTYPE eType,
24 CXFA_FFWidget* hBefore = NULL); 25 CXFA_FFWidget* hBefore = NULL);
25 26
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 FX_BOOL OnRButtonDblClk(CXFA_FFWidget* hWidget, 58 FX_BOOL OnRButtonDblClk(CXFA_FFWidget* hWidget,
58 uint32_t dwFlags, 59 uint32_t dwFlags,
59 FX_FLOAT fx, 60 FX_FLOAT fx,
60 FX_FLOAT fy); 61 FX_FLOAT fy);
61 62
62 FX_BOOL OnKeyDown(CXFA_FFWidget* hWidget, 63 FX_BOOL OnKeyDown(CXFA_FFWidget* hWidget,
63 uint32_t dwKeyCode, 64 uint32_t dwKeyCode,
64 uint32_t dwFlags); 65 uint32_t dwFlags);
65 FX_BOOL OnKeyUp(CXFA_FFWidget* hWidget, uint32_t dwKeyCode, uint32_t dwFlags); 66 FX_BOOL OnKeyUp(CXFA_FFWidget* hWidget, uint32_t dwKeyCode, uint32_t dwFlags);
66 FX_BOOL OnChar(CXFA_FFWidget* hWidget, uint32_t dwChar, uint32_t dwFlags); 67 FX_BOOL OnChar(CXFA_FFWidget* hWidget, uint32_t dwChar, uint32_t dwFlags);
67 uint32_t OnHitTest(CXFA_FFWidget* hWidget, FX_FLOAT fx, FX_FLOAT fy); 68 FWL_WidgetHit OnHitTest(CXFA_FFWidget* hWidget, FX_FLOAT fx, FX_FLOAT fy);
68 FX_BOOL OnSetCursor(CXFA_FFWidget* hWidget, FX_FLOAT fx, FX_FLOAT fy); 69 FX_BOOL OnSetCursor(CXFA_FFWidget* hWidget, FX_FLOAT fx, FX_FLOAT fy);
69 void RenderWidget(CXFA_FFWidget* hWidget, 70 void RenderWidget(CXFA_FFWidget* hWidget,
70 CFX_Graphics* pGS, 71 CFX_Graphics* pGS,
71 CFX_Matrix* pMatrix = NULL, 72 CFX_Matrix* pMatrix = NULL,
72 FX_BOOL bHighlight = FALSE); 73 FX_BOOL bHighlight = FALSE);
73 FX_BOOL HasEvent(CXFA_WidgetAcc* pWidgetAcc, XFA_EVENTTYPE eEventType); 74 FX_BOOL HasEvent(CXFA_WidgetAcc* pWidgetAcc, XFA_EVENTTYPE eEventType);
74 int32_t ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, CXFA_EventParam* pParam); 75 int32_t ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, CXFA_EventParam* pParam);
75 76
76 protected: 77 protected:
77 CXFA_Node* CreateWidgetFormItem(XFA_WIDGETTYPE eType, 78 CXFA_Node* CreateWidgetFormItem(XFA_WIDGETTYPE eType,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 uint32_t dwFlags, 119 uint32_t dwFlags,
119 FX_FLOAT fInsets[4]) const; 120 FX_FLOAT fInsets[4]) const;
120 CXFA_Node* CreateValueNode(XFA_ELEMENT eValue, CXFA_Node* pParent) const; 121 CXFA_Node* CreateValueNode(XFA_ELEMENT eValue, CXFA_Node* pParent) const;
121 CXFA_Document* GetObjFactory() const; 122 CXFA_Document* GetObjFactory() const;
122 CXFA_Document* GetXFADoc() const; 123 CXFA_Document* GetXFADoc() const;
123 124
124 CXFA_FFDocView* m_pDocView; 125 CXFA_FFDocView* m_pDocView;
125 }; 126 };
126 127
127 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGETHANDLER_H_ 128 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGETHANDLER_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/xfa_ffwidget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698