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

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

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 5 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') | xfa/fxfa/include/xfa_rendercontext.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_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/cxfa_eventparam.h" 12 #include "xfa/fxfa/include/cxfa_eventparam.h"
13 #include "xfa/fxfa/include/fxfa.h" 13 #include "xfa/fxfa/include/fxfa.h"
14 #include "xfa/fxfa/parser/xfa_document.h" 14 #include "xfa/fxfa/parser/xfa_document.h"
15 15
16 class CXFA_FFDocView; 16 class CXFA_FFDocView;
17 enum class FWL_WidgetHit; 17 enum class FWL_WidgetHit;
18 18
19 class CXFA_FFWidgetHandler { 19 class CXFA_FFWidgetHandler {
20 public: 20 public:
21 CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView); 21 CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView);
22 ~CXFA_FFWidgetHandler(); 22 ~CXFA_FFWidgetHandler();
23 23
24 CXFA_FFWidget* CreateWidget(CXFA_FFWidget* hParent, 24 CXFA_FFWidget* CreateWidget(CXFA_FFWidget* hParent,
25 XFA_WIDGETTYPE eType, 25 XFA_WIDGETTYPE eType,
26 CXFA_FFWidget* hBefore = NULL); 26 CXFA_FFWidget* hBefore = nullptr);
27 27
28 FX_BOOL OnMouseEnter(CXFA_FFWidget* hWidget); 28 FX_BOOL OnMouseEnter(CXFA_FFWidget* hWidget);
29 FX_BOOL OnMouseExit(CXFA_FFWidget* hWidget); 29 FX_BOOL OnMouseExit(CXFA_FFWidget* hWidget);
30 FX_BOOL OnLButtonDown(CXFA_FFWidget* hWidget, 30 FX_BOOL OnLButtonDown(CXFA_FFWidget* hWidget,
31 uint32_t dwFlags, 31 uint32_t dwFlags,
32 FX_FLOAT fx, 32 FX_FLOAT fx,
33 FX_FLOAT fy); 33 FX_FLOAT fy);
34 FX_BOOL OnLButtonUp(CXFA_FFWidget* hWidget, 34 FX_BOOL OnLButtonUp(CXFA_FFWidget* hWidget,
35 uint32_t dwFlags, 35 uint32_t dwFlags,
36 FX_FLOAT fx, 36 FX_FLOAT fx,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 CXFA_Node* CreateDraw(XFA_Element eElement, 104 CXFA_Node* CreateDraw(XFA_Element eElement,
105 CXFA_Node* pParent, 105 CXFA_Node* pParent,
106 CXFA_Node* pBefore) const; 106 CXFA_Node* pBefore) const;
107 107
108 CXFA_Node* CreateSubform(CXFA_Node* pParent, CXFA_Node* pBefore) const; 108 CXFA_Node* CreateSubform(CXFA_Node* pParent, CXFA_Node* pBefore) const;
109 CXFA_Node* CreateFormItem(XFA_Element eElement, 109 CXFA_Node* CreateFormItem(XFA_Element eElement,
110 CXFA_Node* pParent, 110 CXFA_Node* pParent,
111 CXFA_Node* pBefore) const; 111 CXFA_Node* pBefore) const;
112 CXFA_Node* CreateCopyNode(XFA_Element eElement, 112 CXFA_Node* CreateCopyNode(XFA_Element eElement,
113 CXFA_Node* pParent, 113 CXFA_Node* pParent,
114 CXFA_Node* pBefore = NULL) const; 114 CXFA_Node* pBefore = nullptr) const;
115 CXFA_Node* CreateTemplateNode(XFA_Element eElement, 115 CXFA_Node* CreateTemplateNode(XFA_Element eElement,
116 CXFA_Node* pParent, 116 CXFA_Node* pParent,
117 CXFA_Node* pBefore) const; 117 CXFA_Node* pBefore) const;
118 CXFA_Node* CreateFontNode(CXFA_Node* pParent) const; 118 CXFA_Node* CreateFontNode(CXFA_Node* pParent) const;
119 CXFA_Node* CreateMarginNode(CXFA_Node* pParent, 119 CXFA_Node* CreateMarginNode(CXFA_Node* pParent,
120 uint32_t dwFlags, 120 uint32_t dwFlags,
121 FX_FLOAT fInsets[4]) const; 121 FX_FLOAT fInsets[4]) const;
122 CXFA_Node* CreateValueNode(XFA_Element eValue, CXFA_Node* pParent) const; 122 CXFA_Node* CreateValueNode(XFA_Element eValue, CXFA_Node* pParent) const;
123 CXFA_Document* GetObjFactory() const; 123 CXFA_Document* GetObjFactory() const;
124 CXFA_Document* GetXFADoc() const; 124 CXFA_Document* GetXFADoc() const;
125 125
126 CXFA_FFDocView* m_pDocView; 126 CXFA_FFDocView* m_pDocView;
127 }; 127 };
128 128
129 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGETHANDLER_H_ 129 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGETHANDLER_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/xfa_ffwidget.h ('k') | xfa/fxfa/include/xfa_rendercontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698