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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_Utils.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_Signature.cpp ('k') | fpdfsdk/pdfwindow/PWL_Utils.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_UTILS_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_UTILS_H_
8 #define FPDFSDK_PDFWINDOW_PWL_UTILS_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_UTILS_H_
9 9
10 #include "core/fpdfdoc/include/cpvt_wordrange.h" 10 #include "core/fpdfdoc/include/cpvt_wordrange.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 int32_t nLayOut); 161 int32_t nLayOut);
162 static CFX_ByteString GetCheckBoxAppStream(const CFX_FloatRect& rcBBox, 162 static CFX_ByteString GetCheckBoxAppStream(const CFX_FloatRect& rcBBox,
163 int32_t nStyle, 163 int32_t nStyle,
164 const CPWL_Color& crText); 164 const CPWL_Color& crText);
165 static CFX_ByteString GetRadioButtonAppStream(const CFX_FloatRect& rcBBox, 165 static CFX_ByteString GetRadioButtonAppStream(const CFX_FloatRect& rcBBox,
166 int32_t nStyle, 166 int32_t nStyle,
167 const CPWL_Color& crText); 167 const CPWL_Color& crText);
168 168
169 static CFX_ByteString GetEditAppStream(IFX_Edit* pEdit, 169 static CFX_ByteString GetEditAppStream(IFX_Edit* pEdit,
170 const CFX_FloatPoint& ptOffset, 170 const CFX_FloatPoint& ptOffset,
171 const CPVT_WordRange* pRange = NULL, 171 const CPVT_WordRange* pRange = nullptr,
172 FX_BOOL bContinuous = TRUE, 172 FX_BOOL bContinuous = TRUE,
173 uint16_t SubWord = 0); 173 uint16_t SubWord = 0);
174 static CFX_ByteString GetEditSelAppStream( 174 static CFX_ByteString GetEditSelAppStream(
175 IFX_Edit* pEdit, 175 IFX_Edit* pEdit,
176 const CFX_FloatPoint& ptOffset, 176 const CFX_FloatPoint& ptOffset,
177 const CPVT_WordRange* pRange = NULL); 177 const CPVT_WordRange* pRange = nullptr);
178 static CFX_ByteString GetTextAppStream(const CFX_FloatRect& rcBBox, 178 static CFX_ByteString GetTextAppStream(const CFX_FloatRect& rcBBox,
179 IPVT_FontMap* pFontMap, 179 IPVT_FontMap* pFontMap,
180 const CFX_WideString& sText, 180 const CFX_WideString& sText,
181 int32_t nAlignmentH, 181 int32_t nAlignmentH,
182 int32_t nAlignmentV, 182 int32_t nAlignmentV,
183 FX_FLOAT fFontSize, 183 FX_FLOAT fFontSize,
184 FX_BOOL bMultiLine, 184 FX_BOOL bMultiLine,
185 FX_BOOL bAutoReturn, 185 FX_BOOL bAutoReturn,
186 const CPWL_Color& crText); 186 const CPWL_Color& crText);
187 static CFX_ByteString GetDropButtonAppStream(const CFX_FloatRect& rcBBox); 187 static CFX_ByteString GetDropButtonAppStream(const CFX_FloatRect& rcBBox);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 CFX_PathData& path, 390 CFX_PathData& path,
391 const CFX_FloatRect& crBBox, 391 const CFX_FloatRect& crBBox,
392 const PWL_PATH_TYPE type); 392 const PWL_PATH_TYPE type);
393 static void GetGraphics_Foxit(CFX_ByteString& sPathData, 393 static void GetGraphics_Foxit(CFX_ByteString& sPathData,
394 CFX_PathData& path, 394 CFX_PathData& path,
395 const CFX_FloatRect& crBBox, 395 const CFX_FloatRect& crBBox,
396 const PWL_PATH_TYPE type); 396 const PWL_PATH_TYPE type);
397 }; 397 };
398 398
399 #endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_ 399 #endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_Signature.cpp ('k') | fpdfsdk/pdfwindow/PWL_Utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698