From 027190ec8148a2f1edc18c37eae26e896f3a309a Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 16 Jan 2018 21:25:27 +0000 Subject: Move CXFA_ImageRenderer to own file This CL Splits CL_ImageRenderer out of CXFA_FFWidget and moves to a separate file. Methods in CXFA_FFWidget are shuffled around to put the global methods at the top of the file and static methods in the anonymous namespace. Change-Id: I9887a5c9bf9fda63deead7ff785dc4ef3d7e15c8 Reviewed-on: https://pdfium-review.googlesource.com/23031 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fxfa/cxfa_ffwidget.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'xfa/fxfa/cxfa_ffwidget.h') diff --git a/xfa/fxfa/cxfa_ffwidget.h b/xfa/fxfa/cxfa_ffwidget.h index 8ec92ef93f..192f559fd4 100644 --- a/xfa/fxfa/cxfa_ffwidget.h +++ b/xfa/fxfa/cxfa_ffwidget.h @@ -31,13 +31,6 @@ inline float XFA_UnitPx2Pt(float fPx, float fDpi) { #define XFA_FLOAT_PERCISION 0.001f -enum XFA_WIDGETITEM { - XFA_WIDGETITEM_Parent, - XFA_WIDGETITEM_FirstChild, - XFA_WIDGETITEM_NextSibling, - XFA_WIDGETITEM_PrevSibling, -}; - int32_t XFA_StrokeTypeSetLineDash(CXFA_Graphics* pGraphics, XFA_AttributeEnum iStrokeType, XFA_AttributeEnum iCapType); @@ -51,20 +44,12 @@ void XFA_DrawImage(CXFA_Graphics* pGS, XFA_AttributeEnum iHorzAlign = XFA_AttributeEnum::Left, XFA_AttributeEnum iVertAlign = XFA_AttributeEnum::Top); -RetainPtr XFA_LoadImageData(CXFA_FFDoc* pDoc, - CXFA_Image* pImage, - bool& bNameImage, - int32_t& iImageXDpi, - int32_t& iImageYDpi); - RetainPtr XFA_LoadImageFromBuffer( const RetainPtr& pImageFileRead, FXCODEC_IMAGE_TYPE type, int32_t& iImageXDpi, int32_t& iImageYDpi); -FXCODEC_IMAGE_TYPE XFA_GetImageType(const WideString& wsType); -char* XFA_Base64Encode(const uint8_t* buf, int32_t buf_len); void XFA_RectWithoutMargin(CFX_RectF& rt, const CXFA_Margin* margin, bool bUI = false); -- cgit v1.2.3