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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_Wnd.h

Issue 2031653003: Get rid of NULLs in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_core
Patch Set: rebase Created 4 years, 6 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/pdfwindow/PWL_Utils.cpp ('k') | fpdfsdk/pdfwindow/PWL_Wnd.cpp » ('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 FPDFSDK_PDFWINDOW_PWL_WND_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_WND_H_
8 #define FPDFSDK_PDFWINDOW_PWL_WND_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_WND_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 public: 181 public:
182 virtual ~IPWL_FocusHandler() {} 182 virtual ~IPWL_FocusHandler() {}
183 virtual void OnSetFocus(CPWL_Wnd* pWnd) = 0; 183 virtual void OnSetFocus(CPWL_Wnd* pWnd) = 0;
184 virtual void OnKillFocus(CPWL_Wnd* pWnd) = 0; 184 virtual void OnKillFocus(CPWL_Wnd* pWnd) = 0;
185 }; 185 };
186 186
187 struct PWL_CREATEPARAM { 187 struct PWL_CREATEPARAM {
188 public: 188 public:
189 PWL_CREATEPARAM() 189 PWL_CREATEPARAM()
190 : rcRectWnd(0, 0, 0, 0), 190 : rcRectWnd(0, 0, 0, 0),
191 pSystemHandler(NULL), 191 pSystemHandler(nullptr),
192 pFontMap(NULL), 192 pFontMap(nullptr),
193 pProvider(NULL), 193 pProvider(nullptr),
194 pFocusHandler(NULL), 194 pFocusHandler(nullptr),
195 dwFlags(0), 195 dwFlags(0),
196 sBackgroundColor(), 196 sBackgroundColor(),
197 hAttachedWnd(NULL), 197 hAttachedWnd(nullptr),
198 nBorderStyle(BorderStyle::SOLID), 198 nBorderStyle(BorderStyle::SOLID),
199 dwBorderWidth(1), 199 dwBorderWidth(1),
200 sBorderColor(), 200 sBorderColor(),
201 sTextColor(), 201 sTextColor(),
202 sTextStrokeColor(), 202 sTextStrokeColor(),
203 nTransparency(255), 203 nTransparency(255),
204 fFontSize(PWL_DEFAULT_FONTSIZE), 204 fFontSize(PWL_DEFAULT_FONTSIZE),
205 sDash(3, 0, 0), 205 sDash(3, 0, 0),
206 pAttachedData(NULL), 206 pAttachedData(nullptr),
207 pParentWnd(NULL), 207 pParentWnd(nullptr),
208 pMsgControl(NULL), 208 pMsgControl(nullptr),
209 eCursorType(FXCT_ARROW), 209 eCursorType(FXCT_ARROW),
210 mtChild(1, 0, 0, 1, 0, 0) {} 210 mtChild(1, 0, 0, 1, 0, 0) {}
211 211
212 CFX_FloatRect rcRectWnd; // required 212 CFX_FloatRect rcRectWnd; // required
213 CFX_SystemHandler* pSystemHandler; // required 213 CFX_SystemHandler* pSystemHandler; // required
214 IPVT_FontMap* pFontMap; // required for text window 214 IPVT_FontMap* pFontMap; // required for text window
215 IPWL_Provider* pProvider; // required for self coordinate 215 IPWL_Provider* pProvider; // required for self coordinate
216 IPWL_FocusHandler* pFocusHandler; // optional 216 IPWL_FocusHandler* pFocusHandler; // optional
217 uint32_t dwFlags; // optional 217 uint32_t dwFlags; // optional
218 CPWL_Color sBackgroundColor; // optional 218 CPWL_Color sBackgroundColor; // optional
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 public: 267 public:
268 CPWL_Wnd(); 268 CPWL_Wnd();
269 ~CPWL_Wnd() override; 269 ~CPWL_Wnd() override;
270 270
271 void Create(const PWL_CREATEPARAM& cp); 271 void Create(const PWL_CREATEPARAM& cp);
272 virtual CFX_ByteString GetClassName() const; 272 virtual CFX_ByteString GetClassName() const;
273 void InvalidateFocusHandler(IPWL_FocusHandler* handler); 273 void InvalidateFocusHandler(IPWL_FocusHandler* handler);
274 void InvalidateProvider(IPWL_Provider* provider); 274 void InvalidateProvider(IPWL_Provider* provider);
275 void Destroy(); 275 void Destroy();
276 void Move(const CFX_FloatRect& rcNew, FX_BOOL bReset, FX_BOOL bRefresh); 276 void Move(const CFX_FloatRect& rcNew, FX_BOOL bReset, FX_BOOL bRefresh);
277 virtual void InvalidateRect(CFX_FloatRect* pRect = NULL); 277 virtual void InvalidateRect(CFX_FloatRect* pRect = nullptr);
278 278
279 void DrawAppearance(CFX_RenderDevice* pDevice, CFX_Matrix* pUser2Device); 279 void DrawAppearance(CFX_RenderDevice* pDevice, CFX_Matrix* pUser2Device);
280 280
281 virtual FX_BOOL OnKeyDown(uint16_t nChar, uint32_t nFlag); 281 virtual FX_BOOL OnKeyDown(uint16_t nChar, uint32_t nFlag);
282 virtual FX_BOOL OnKeyUp(uint16_t nChar, uint32_t nFlag); 282 virtual FX_BOOL OnKeyUp(uint16_t nChar, uint32_t nFlag);
283 virtual FX_BOOL OnChar(uint16_t nChar, uint32_t nFlag); 283 virtual FX_BOOL OnChar(uint16_t nChar, uint32_t nFlag);
284 virtual FX_BOOL OnLButtonDblClk(const CFX_FloatPoint& point, uint32_t nFlag); 284 virtual FX_BOOL OnLButtonDblClk(const CFX_FloatPoint& point, uint32_t nFlag);
285 virtual FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag); 285 virtual FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag);
286 virtual FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag); 286 virtual FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag);
287 virtual FX_BOOL OnMButtonDblClk(const CFX_FloatPoint& point, uint32_t nFlag); 287 virtual FX_BOOL OnMButtonDblClk(const CFX_FloatPoint& point, uint32_t nFlag);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 CFX_FloatRect m_rcWindow; 442 CFX_FloatRect m_rcWindow;
443 CFX_FloatRect m_rcClip; 443 CFX_FloatRect m_rcClip;
444 444
445 FX_BOOL m_bCreated; 445 FX_BOOL m_bCreated;
446 FX_BOOL m_bVisible; 446 FX_BOOL m_bVisible;
447 FX_BOOL m_bNotifying; 447 FX_BOOL m_bNotifying;
448 FX_BOOL m_bEnabled; 448 FX_BOOL m_bEnabled;
449 }; 449 };
450 450
451 #endif // FPDFSDK_PDFWINDOW_PWL_WND_H_ 451 #endif // FPDFSDK_PDFWINDOW_PWL_WND_H_
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_Utils.cpp ('k') | fpdfsdk/pdfwindow/PWL_Wnd.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698