From 86b5c31dc7c98af877a5e8952c5b55b9ea611f3c Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 24 Feb 2016 11:23:20 -0800 Subject: Moar _CAPS naming, part 4 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1731483004 . --- xfa/src/fgas/include/fx_rbk.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'xfa/src/fgas/include/fx_rbk.h') diff --git a/xfa/src/fgas/include/fx_rbk.h b/xfa/src/fgas/include/fx_rbk.h index a56040de67..5ce93960c9 100644 --- a/xfa/src/fgas/include/fx_rbk.h +++ b/xfa/src/fgas/include/fx_rbk.h @@ -63,8 +63,9 @@ class IFX_RTFBreak; (FX_RTFLINEALIGNMENT_Right | FX_RTFLINEALIGNMENT_Distributed) #define FX_RTFLINEALIGNMENT_LowerMask 0x03 #define FX_RTFLINEALIGNMENT_HigherMask 0x0C -typedef struct _FX_RTFTEXTOBJ { - _FX_RTFTEXTOBJ() { + +struct FX_RTFTEXTOBJ { + FX_RTFTEXTOBJ() { pStr = NULL; pWidths = NULL; iLength = 0; @@ -78,6 +79,7 @@ typedef struct _FX_RTFTEXTOBJ { iHorizontalScale = 100; iVerticalScale = 100; } + const FX_WCHAR* pStr; int32_t* pWidths; int32_t iLength; @@ -90,8 +92,8 @@ typedef struct _FX_RTFTEXTOBJ { FX_WCHAR wLineBreakChar; int32_t iHorizontalScale; int32_t iVerticalScale; -} FX_RTFTEXTOBJ, *FX_LPRTFTEXTOBJ; -typedef FX_RTFTEXTOBJ const* FX_LPCRTFTEXTOBJ; +}; + class CFX_RTFPiece : public CFX_Target { public: CFX_RTFPiece() @@ -221,12 +223,12 @@ class IFX_RTFBreak { virtual void ClearBreakPieces() = 0; virtual void Reset() = 0; virtual int32_t GetDisplayPos( - FX_LPCRTFTEXTOBJ pText, + const FX_RTFTEXTOBJ* pText, FXTEXT_CHARPOS* pCharPos, FX_BOOL bCharCode = FALSE, CFX_WideString* pWSForms = NULL, FX_AdjustCharDisplayPos pAdjustPos = NULL) const = 0; - virtual int32_t GetCharRects(FX_LPCRTFTEXTOBJ pText, + virtual int32_t GetCharRects(const FX_RTFTEXTOBJ* pText, CFX_RectFArray& rtArray, FX_BOOL bCharBBox = FALSE) const = 0; }; -- cgit v1.2.3