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

Side by Side Diff: xfa/fxfa/include/xfa_ffwidget.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_ffdoc.h ('k') | xfa/fxfa/include/xfa_ffwidgethandler.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_FFWIDGET_H_ 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ 8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved); 107 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved);
108 108
109 CXFA_WidgetAcc* GetDataAcc(); 109 CXFA_WidgetAcc* GetDataAcc();
110 FX_BOOL GetToolTip(CFX_WideString& wsToolTip); 110 FX_BOOL GetToolTip(CFX_WideString& wsToolTip);
111 111
112 CXFA_FFDocView* GetDocView(); 112 CXFA_FFDocView* GetDocView();
113 void SetDocView(CXFA_FFDocView* pDocView); 113 void SetDocView(CXFA_FFDocView* pDocView);
114 CXFA_FFDoc* GetDoc(); 114 CXFA_FFDoc* GetDoc();
115 CXFA_FFApp* GetApp(); 115 CXFA_FFApp* GetApp();
116 IXFA_AppProvider* GetAppProvider(); 116 IXFA_AppProvider* GetAppProvider();
117 void InvalidateWidget(const CFX_RectF* pRect = NULL); 117 void InvalidateWidget(const CFX_RectF* pRect = nullptr);
118 void AddInvalidateRect(const CFX_RectF* pRect = NULL); 118 void AddInvalidateRect(const CFX_RectF* pRect = nullptr);
119 FX_BOOL GetCaptionText(CFX_WideString& wsCap); 119 FX_BOOL GetCaptionText(CFX_WideString& wsCap);
120 bool IsFocused(); 120 bool IsFocused();
121 void Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy); 121 void Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy);
122 void GetRotateMatrix(CFX_Matrix& mt); 122 void GetRotateMatrix(CFX_Matrix& mt);
123 FX_BOOL IsLayoutRectEmpty(); 123 FX_BOOL IsLayoutRectEmpty();
124 CXFA_FFWidget* GetParent(); 124 CXFA_FFWidget* GetParent();
125 FX_BOOL IsAncestorOf(CXFA_FFWidget* pWidget); 125 FX_BOOL IsAncestorOf(CXFA_FFWidget* pWidget);
126 126
127 protected: 127 protected:
128 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy); 128 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 FX_BOOL XFA_IsCreateWidget(XFA_Element iType); 177 FX_BOOL XFA_IsCreateWidget(XFA_Element iType);
178 #define XFA_DRAWBOX_ForceRound 1 178 #define XFA_DRAWBOX_ForceRound 1
179 #define XFA_DRAWBOX_Lowered3D 2 179 #define XFA_DRAWBOX_Lowered3D 2
180 void XFA_DrawBox(CXFA_Box box, 180 void XFA_DrawBox(CXFA_Box box,
181 CFX_Graphics* pGS, 181 CFX_Graphics* pGS,
182 const CFX_RectF& rtWidget, 182 const CFX_RectF& rtWidget,
183 CFX_Matrix* pMatrix, 183 CFX_Matrix* pMatrix,
184 uint32_t dwFlags = 0); 184 uint32_t dwFlags = 0);
185 185
186 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ 186 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/xfa_ffdoc.h ('k') | xfa/fxfa/include/xfa_ffwidgethandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698