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

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

Issue 2142213002: Remove some IFX_* wrappers. (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 | « fpdfsdk/pdfwindow/PWL_ListBox.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"
11 #include "fpdfsdk/pdfwindow/PWL_Wnd.h" 11 #include "fpdfsdk/pdfwindow/PWL_Wnd.h"
12 12
13 class CFX_Edit;
13 class CFX_PathData; 14 class CFX_PathData;
14 class IFX_Edit;
15 15
16 struct CPWL_Color; 16 struct CPWL_Color;
17 17
18 template <class T> 18 template <class T>
19 T PWL_MIN(const T& i, const T& j) { 19 T PWL_MIN(const T& i, const T& j) {
20 return ((i < j) ? i : j); 20 return ((i < j) ? i : j);
21 } 21 }
22 template <class T> 22 template <class T>
23 T PWL_MAX(const T& i, const T& j) { 23 T PWL_MAX(const T& i, const T& j) {
24 return ((i > j) ? i : j); 24 return ((i > j) ? i : j);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 const CPWL_Color& crText, 159 const CPWL_Color& crText,
160 FX_FLOAT fFontSize, 160 FX_FLOAT fFontSize,
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(CFX_Edit* pEdit,
170 const CFX_FloatPoint& ptOffset, 170 const CFX_FloatPoint& ptOffset,
171 const CPVT_WordRange* pRange = nullptr, 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 CFX_Edit* pEdit,
176 const CFX_FloatPoint& ptOffset, 176 const CFX_FloatPoint& ptOffset,
177 const CPVT_WordRange* pRange = nullptr); 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,
(...skipping 204 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_ListBox.cpp ('k') | fpdfsdk/pdfwindow/PWL_Utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698