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

Side by Side Diff: core/src/fxge/win32/win32_int.h

Issue 1171733003: Remove typdefs for pointer types in fx_system.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual fixes. Created 5 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 | « core/src/fxge/win32/fx_win32_print.cpp ('k') | fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h » ('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 #ifndef CORE_SRC_FXGE_WIN32_WIN32_INT_H_ 6 #ifndef CORE_SRC_FXGE_WIN32_WIN32_INT_H_
7 #define CORE_SRC_FXGE_WIN32_WIN32_INT_H_ 7 #define CORE_SRC_FXGE_WIN32_WIN32_INT_H_
8 8
9 struct WINDIB_Open_Args_; 9 struct WINDIB_Open_Args_;
10 class CGdiplusExt 10 class CGdiplusExt
(...skipping 23 matching lines...) Expand all
34 FX_BOOL GdipCreateFromImage(void* bitmap, void** graphics); 34 FX_BOOL GdipCreateFromImage(void* bitmap, void** graphics);
35 void GdipDeleteGraphics(void* graphics); 35 void GdipDeleteGraphics(void* graphics);
36 void GdipSetTextRenderingHint(void* graphics, int mode); 36 void GdipSetTextRenderingHint(void* graphics, int mode);
37 void GdipSetPageUnit(void* graphics, FX_DWORD unit); 37 void GdipSetPageUnit(void* graphics, FX_DWORD unit);
38 void GdipSetWorldTransform(void* graphics, void* pMatrix); 38 void GdipSetWorldTransform(void* graphics, void* pMatrix);
39 FX_BOOL GdipDrawDriverString(void *graphics, unsigned short *text, int length, void *font, void* brush, void *positions, int flags, const void *mat rix); 39 FX_BOOL GdipDrawDriverString(void *graphics, unsigned short *text, int length, void *font, void* brush, void *positions, int flags, const void *mat rix);
40 void GdipCreateBrush(FX_DWORD fill_argb, void** pBrush); 40 void GdipCreateBrush(FX_DWORD fill_argb, void** pBrush);
41 void GdipDeleteBrush(void* pBrush); 41 void GdipDeleteBrush(void* pBrush);
42 void GdipCreateMatrix(FX_FLOAT a, FX_FLOAT b, FX_FLOAT c, FX_FLOA T d, FX_FLOAT e, FX_FLOAT f, void** matrix); 42 void GdipCreateMatrix(FX_FLOAT a, FX_FLOAT b, FX_FLOAT c, FX_FLOA T d, FX_FLOAT e, FX_FLOAT f, void** matrix);
43 void GdipDeleteMatrix(void* matrix); 43 void GdipDeleteMatrix(void* matrix);
44 FX_BOOL GdipCreateFontFamilyFromName(FX_LPCWSTR name, void* pFontCol lection, void**pFamily); 44 FX_BOOL GdipCreateFontFamilyFromName(const FX_WCHAR* name, void* pFo ntCollection, void**pFamily);
45 void GdipDeleteFontFamily(void* pFamily); 45 void GdipDeleteFontFamily(void* pFamily);
46 FX_BOOL GdipCreateFontFromFamily(void* pFamily, FX_FLOAT font_size, int fontstyle, int flag, void** pFont); 46 FX_BOOL GdipCreateFontFromFamily(void* pFamily, FX_FLOAT font_size, int fontstyle, int flag, void** pFont);
47 void* GdipCreateFontFromCollection(void* pFontCollection, FX_FLOAT font_size, int fontstyle); 47 void* GdipCreateFontFromCollection(void* pFontCollection, FX_FLOAT font_size, int fontstyle);
48 void GdipDeleteFont(void* pFont); 48 void GdipDeleteFont(void* pFont);
49 FX_BOOL GdipCreateBitmap(CFX_DIBitmap* pBitmap, void**bitmap); 49 FX_BOOL GdipCreateBitmap(CFX_DIBitmap* pBitmap, void**bitmap);
50 void GdipDisposeImage(void* bitmap); 50 void GdipDisposeImage(void* bitmap);
51 void GdipGetFontSize(void *pFont, FX_FLOAT *size); 51 void GdipGetFontSize(void *pFont, FX_FLOAT *size);
52 void* GdiAddFontMemResourceEx(void *pFontdata, FX_DWORD size, void * pdv, FX_DWORD* num_face); 52 void* GdiAddFontMemResourceEx(void *pFontdata, FX_DWORD size, void * pdv, FX_DWORD* num_face);
53 FX_BOOL GdiRemoveFontMemResourceEx(void* handle); 53 FX_BOOL GdiRemoveFontMemResourceEx(void* handle);
54 void* m_Functions[100]; 54 void* m_Functions[100];
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 int fill_mode, 98 int fill_mode,
99 int alpha_flag, 99 int alpha_flag,
100 void* pIccTransform, 100 void* pIccTransform,
101 int blend_type 101 int blend_type
102 ); 102 );
103 virtual FX_BOOL FillRect(const FX_RECT* pRect, 103 virtual FX_BOOL FillRect(const FX_RECT* pRect,
104 FX_DWORD fill_color, 104 FX_DWORD fill_color,
105 int alpha_flag, void* pIccTransform, int blend_type ); 105 int alpha_flag, void* pIccTransform, int blend_type );
106 virtual FX_BOOL DrawCosmeticLine(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2, FX_DWORD color, 106 virtual FX_BOOL DrawCosmeticLine(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2, FX_DWORD color,
107 int alpha_flag, void* pIccTransform, int bl end_type); 107 int alpha_flag, void* pIccTransform, int bl end_type);
108 virtual FX_LPVOID GetClipRgn() ; 108 virtual void* GetClipRgn() ;
109 virtual FX_BOOL SetClipRgn(FX_LPVOID pRgn) ; 109 virtual FX_BOOL SetClipRgn(void* pRgn) ;
110 virtual FX_BOOL GetClipBox(FX_RECT* pRect); 110 virtual FX_BOOL GetClipBox(FX_RECT* pRect);
111 virtual FX_BOOL DeleteDeviceRgn(FX_LPVOID pRgn); 111 virtual FX_BOOL DeleteDeviceRgn(void* pRgn);
112 virtual void DrawLine(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2); 112 virtual void DrawLine(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2);
113 virtual void* GetPlatformSurface() 113 virtual void* GetPlatformSurface()
114 { 114 {
115 return (void*)m_hDC; 115 return (void*)m_hDC;
116 } 116 }
117 FX_BOOL GDI_SetDIBits(const CFX_DIBitmap* pBitmap, const FX_RECT* pSrcRect, int left, int top, 117 FX_BOOL GDI_SetDIBits(const CFX_DIBitmap* pBitmap, const FX_RECT* pSrcRect, int left, int top,
118 void* pIccTransform); 118 void* pIccTransform);
119 FX_BOOL GDI_StretchDIBits(const CFX_DIBitmap* pBitmap, i nt dest_left, int dest_top, 119 FX_BOOL GDI_StretchDIBits(const CFX_DIBitmap* pBitmap, i nt dest_left, int dest_top,
120 int dest_width, int dest_height, FX_DWORD flags, 120 int dest_width, int dest_height, FX_DWORD flags,
121 void* pIccTransform); 121 void* pIccTransform);
(...skipping 11 matching lines...) Expand all
133 public: 133 public:
134 CGdiDisplayDriver(HDC hDC); 134 CGdiDisplayDriver(HDC hDC);
135 protected: 135 protected:
136 virtual FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap, int left, int top, void* pI ccTransform = NULL, FX_BOOL bDEdge = FALSE); 136 virtual FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap, int left, int top, void* pI ccTransform = NULL, FX_BOOL bDEdge = FALSE);
137 virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, cons t FX_RECT* pSrcRect, int left, int top, int blend_type, 137 virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, cons t FX_RECT* pSrcRect, int left, int top, int blend_type,
138 int alpha_flag, void* pIccTransform); 138 int alpha_flag, void* pIccTransform);
139 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, int dest_left, int dest_top, 139 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, int dest_left, int dest_top,
140 int dest_width, int dest_height, const FX_RECT * pClipRect, FX_DWORD flags, 140 int dest_width, int dest_height, const FX_RECT * pClipRect, FX_DWORD flags,
141 int alpha_flag, void* pIccTransform, int blend _type); 141 int alpha_flag, void* pIccTransform, int blend _type);
142 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, int bitmap_alp ha, FX_DWORD color, 142 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, int bitmap_alp ha, FX_DWORD color,
143 const CFX_AffineMatrix* pMatrix, FX_DWORD render _flags, FX_LPVOID& handle, 143 const CFX_AffineMatrix* pMatrix, FX_DWORD render _flags, void*& handle,
144 int alpha_flag, void* pIccTransform, int blend_t ype) 144 int alpha_flag, void* pIccTransform, int blend_t ype)
145 { 145 {
146 return FALSE; 146 return FALSE;
147 } 147 }
148 FX_BOOL UseFoxitStretchEngine(const CFX_DIBSource* pSour ce, FX_DWORD color, int dest_left, int dest_top, 148 FX_BOOL UseFoxitStretchEngine(const CFX_DIBSource* pSour ce, FX_DWORD color, int dest_left, int dest_top,
149 int dest_width, int dest_height, const FX_RECT* pClipRect, int render_flags, 149 int dest_width, int dest_height, const FX_RECT* pClipRect, int render_flags,
150 int alpha_flag = 0, void* pIccTransfor m = NULL, int blend_type = FXDIB_BLEND_NORMAL); 150 int alpha_flag = 0, void* pIccTransfor m = NULL, int blend_type = FXDIB_BLEND_NORMAL);
151 }; 151 };
152 class CGdiPrinterDriver : public CGdiDeviceDriver 152 class CGdiPrinterDriver : public CGdiDeviceDriver
153 { 153 {
154 public: 154 public:
155 CGdiPrinterDriver(HDC hDC); 155 CGdiPrinterDriver(HDC hDC);
156 protected: 156 protected:
157 virtual int GetDeviceCaps(int caps_id); 157 virtual int GetDeviceCaps(int caps_id);
158 virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, cons t FX_RECT* pSrcRect, int left, int top, int blend_type, 158 virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, cons t FX_RECT* pSrcRect, int left, int top, int blend_type,
159 int alpha_flag, void* pIccTransform); 159 int alpha_flag, void* pIccTransform);
160 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, int dest_left, int dest_top, 160 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, int dest_left, int dest_top,
161 int dest_width, int dest_height, const FX_RECT * pClipRect, FX_DWORD flags, 161 int dest_width, int dest_height, const FX_RECT * pClipRect, FX_DWORD flags,
162 int alpha_flag, void* pIccTransform, int blend _type); 162 int alpha_flag, void* pIccTransform, int blend _type);
163 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, int bitmap_alp ha, FX_DWORD color, 163 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, int bitmap_alp ha, FX_DWORD color,
164 const CFX_AffineMatrix* pMatrix, FX_DWORD render _flags, FX_LPVOID& handle, 164 const CFX_AffineMatrix* pMatrix, FX_DWORD render _flags, void*& handle,
165 int alpha_flag, void* pIccTransform, int blend_t ype); 165 int alpha_flag, void* pIccTransform, int blend_t ype);
166 int m_HorzSize, m_VertSize; 166 int m_HorzSize, m_VertSize;
167 FX_BOOL m_bSupportROP; 167 FX_BOOL m_bSupportROP;
168 }; 168 };
169 class CPSOutput : public IFX_PSOutput 169 class CPSOutput : public IFX_PSOutput
170 { 170 {
171 public: 171 public:
172 CPSOutput(HDC hDC); 172 CPSOutput(HDC hDC);
173 virtual ~CPSOutput(); 173 virtual ~CPSOutput();
174 virtual void Release() 174 virtual void Release()
175 { 175 {
176 delete this; 176 delete this;
177 } 177 }
178 void Init(); 178 void Init();
179 virtual void» OutputPS(FX_LPCSTR string, int len); 179 virtual void» OutputPS(const FX_CHAR* string, int len);
180 HDC m_hDC; 180 HDC m_hDC;
181 FX_LPSTR m_pBuf; 181 FX_CHAR* m_pBuf;
182 }; 182 };
183 class CPSPrinterDriver : public IFX_RenderDeviceDriver 183 class CPSPrinterDriver : public IFX_RenderDeviceDriver
184 { 184 {
185 public: 185 public:
186 CPSPrinterDriver(); 186 CPSPrinterDriver();
187 FX_BOOL Init(HDC hDC, int ps_level, FX_BOOL bCmykOutput) ; 187 FX_BOOL Init(HDC hDC, int ps_level, FX_BOOL bCmykOutput) ;
188 ~CPSPrinterDriver(); 188 ~CPSPrinterDriver();
189 protected: 189 protected:
190 virtual FX_BOOL IsPSPrintDriver() 190 virtual FX_BOOL IsPSPrintDriver()
191 { 191 {
(...skipping 22 matching lines...) Expand all
214 void* pIccTransform, 214 void* pIccTransform,
215 int blend_type 215 int blend_type
216 ); 216 );
217 virtual FX_BOOL GetClipBox(FX_RECT* pRect); 217 virtual FX_BOOL GetClipBox(FX_RECT* pRect);
218 virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, cons t FX_RECT* pSrcRect, int left, int top, int blend_type, 218 virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, cons t FX_RECT* pSrcRect, int left, int top, int blend_type,
219 int alpha_flag, void* pIccTransform); 219 int alpha_flag, void* pIccTransform);
220 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, int dest_left, int dest_top, 220 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, int dest_left, int dest_top,
221 int dest_width, int dest_height, const FX_RECT * pClipRect, FX_DWORD flags, 221 int dest_width, int dest_height, const FX_RECT * pClipRect, FX_DWORD flags,
222 int alpha_flag, void* pIccTransform, int blend _type); 222 int alpha_flag, void* pIccTransform, int blend _type);
223 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, int bitmap_alp ha, FX_DWORD color, 223 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, int bitmap_alp ha, FX_DWORD color,
224 const CFX_AffineMatrix* pMatrix, FX_DWORD render _flags, FX_LPVOID& handle, 224 const CFX_AffineMatrix* pMatrix, FX_DWORD render _flags, void*& handle,
225 int alpha_flag, void* pIccTransform, int blend_t ype); 225 int alpha_flag, void* pIccTransform, int blend_t ype);
226 virtual FX_BOOL DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pCharPos, C FX_Font* pFont, 226 virtual FX_BOOL DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pCharPos, C FX_Font* pFont,
227 CFX_FontCache* pCache, const CFX_AffineMatrix * pObject2Device, FX_FLOAT font_size, FX_DWORD color, 227 CFX_FontCache* pCache, const CFX_AffineMatrix * pObject2Device, FX_FLOAT font_size, FX_DWORD color,
228 int alpha_flag, void* pIccTransform); 228 int alpha_flag, void* pIccTransform);
229 virtual void* GetPlatformSurface() 229 virtual void* GetPlatformSurface()
230 { 230 {
231 return (void*)m_hDC; 231 return (void*)m_hDC;
232 } 232 }
233 HDC m_hDC; 233 HDC m_hDC;
234 FX_BOOL m_bCmykOutput; 234 FX_BOOL m_bCmykOutput;
235 int m_Width, m_Height, m_nBitsPerPixel; 235 int m_Width, m_Height, m_nBitsPerPixel;
236 int m_HorzSize, m_VertSize; 236 int m_HorzSize, m_VertSize;
237 CPSOutput* m_pPSOutput; 237 CPSOutput* m_pPSOutput;
238 CFX_PSRenderer m_PSRenderer; 238 CFX_PSRenderer m_PSRenderer;
239 }; 239 };
240 void _Color2Argb(FX_ARGB& argb, FX_DWORD color, int alpha_flag, void* pIccTransf orm); 240 void _Color2Argb(FX_ARGB& argb, FX_DWORD color, int alpha_flag, void* pIccTransf orm);
241 241
242 #endif // CORE_SRC_FXGE_WIN32_WIN32_INT_H_ 242 #endif // CORE_SRC_FXGE_WIN32_WIN32_INT_H_
OLDNEW
« no previous file with comments | « core/src/fxge/win32/fx_win32_print.cpp ('k') | fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698