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

Side by Side Diff: core/src/fxge/apple/apple_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/android/fx_android_font.cpp ('k') | core/src/fxge/apple/fx_mac_imp.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 CORE_SRC_FXGE_APPLE_APPLE_INT_H_ 7 #ifndef CORE_SRC_FXGE_APPLE_APPLE_INT_H_
8 #define CORE_SRC_FXGE_APPLE_APPLE_INT_H_ 8 #define CORE_SRC_FXGE_APPLE_APPLE_INT_H_
9 9
10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ 10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
(...skipping 30 matching lines...) Expand all
41 const char* psName; 41 const char* psName;
42 FX_DWORD charsets; 42 FX_DWORD charsets;
43 FX_DWORD styles; 43 FX_DWORD styles;
44 } IOS_FONTDATA; 44 } IOS_FONTDATA;
45 class CQuartz2D 45 class CQuartz2D
46 { 46 {
47 public: 47 public:
48 void* createGraphics(CFX_DIBitmap* bitmap); 48 void* createGraphics(CFX_DIBitmap* bitmap);
49 void destroyGraphics(void* graphics); 49 void destroyGraphics(void* graphics);
50 50
51 void*» CreateFont(FX_LPCBYTE pFontData, FX_DWORD dwFontSize); 51 void*» CreateFont(const uint8_t* pFontData, FX_DWORD dwFontSize);
52 void DestroyFont(void* pFont); 52 void DestroyFont(void* pFont);
53 void setGraphicsTextMatrix(void* graphics, CFX_AffineMatrix* matrix); 53 void setGraphicsTextMatrix(void* graphics, CFX_AffineMatrix* matrix);
54 FX_BOOL drawGraphicsString(void* graphics, 54 FX_BOOL drawGraphicsString(void* graphics,
55 void* font, 55 void* font,
56 FX_FLOAT fontSize, 56 FX_FLOAT fontSize,
57 FX_WORD* glyphIndices, 57 FX_WORD* glyphIndices,
58 CGPoint* glyphPositions, 58 CGPoint* glyphPositions,
59 int32_t chars, 59 int32_t chars,
60 FX_ARGB argb, 60 FX_ARGB argb,
61 CFX_AffineMatrix* matrix = NULL); 61 CFX_AffineMatrix* matrix = NULL);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 int alpha_flag = 0, void* pIccTransform = N ULL, int blend_type = FXDIB_BLEND_NORMAL); 134 int alpha_flag = 0, void* pIccTransform = N ULL, int blend_type = FXDIB_BLEND_NORMAL);
135 virtual FX_BOOL GetClipBox(FX_RECT* pRect); 135 virtual FX_BOOL GetClipBox(FX_RECT* pRect);
136 virtual FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap, int left, int top, void * pIccTransform = NULL, FX_BOOL bDEdge = FALSE); 136 virtual FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap, int left, int top, void * pIccTransform = NULL, FX_BOOL bDEdge = FALSE);
137 virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, const FX_RECT* pSrcRect, 137 virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color, const FX_RECT* pSrcRect,
138 int dest_left, int dest_top, int blend_type, 138 int dest_left, int dest_top, int blend_type,
139 int alpha_flag = 0, void* pIccTransform = NULL); 139 int alpha_flag = 0, void* pIccTransform = NULL);
140 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, FX_DWORD col or, int dest_left, int dest_top, 140 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, FX_DWORD col or, int dest_left, int dest_top,
141 int dest_width, int dest_height, const FX_RECT * pClipRect, FX_DWORD flags, 141 int dest_width, int dest_height, const FX_RECT * pClipRect, FX_DWORD flags,
142 int alpha_flag = 0, void* pIccTransform = NULL , int blend_type = FXDIB_BLEND_NORMAL); 142 int alpha_flag = 0, void* pIccTransform = NULL , int blend_type = FXDIB_BLEND_NORMAL);
143 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, int bitmap_alp ha, FX_DWORD color, 143 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, int bitmap_alp ha, FX_DWORD color,
144 const CFX_AffineMatrix* pMatrix, FX_DWORD flags, FX_LPVOID& handle, 144 const CFX_AffineMatrix* pMatrix, FX_DWORD flags, void*& handle,
145 int alpha_flag = 0, void* pIccTransform = NULL, 145 int alpha_flag = 0, void* pIccTransform = NULL,
146 int blend_type = FXDIB_BLEND_NORMAL) 146 int blend_type = FXDIB_BLEND_NORMAL)
147 { 147 {
148 return FALSE; 148 return FALSE;
149 } 149 }
150 virtual FX_BOOL» ContinueDIBits(FX_LPVOID handle, IFX_Pause* pPause) 150 virtual FX_BOOL» ContinueDIBits(void* handle, IFX_Pause* pPause)
151 { 151 {
152 return FALSE; 152 return FALSE;
153 } 153 }
154 virtual void» CancelDIBits(FX_LPVOID handle) {} 154 virtual void» CancelDIBits(void* handle) {}
155 virtual FX_BOOL DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pCharPos, C FX_Font* pFont, 155 virtual FX_BOOL DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pCharPos, C FX_Font* pFont,
156 CFX_FontCache* pCache, const CFX_AffineMatrix * pObject2Device, FX_FLOAT font_size, FX_DWORD color, 156 CFX_FontCache* pCache, const CFX_AffineMatrix * pObject2Device, FX_FLOAT font_size, FX_DWORD color,
157 int alpha_flag = 0, void* pIccTransform = NUL L); 157 int alpha_flag = 0, void* pIccTransform = NUL L);
158 virtual void ClearDriver(); 158 virtual void ClearDriver();
159 protected: 159 protected:
160 void setStrokeInfo(const CFX_GraphStateData * graphState, FX_ARGB argb, FX_F LOAT lineWidth); 160 void setStrokeInfo(const CFX_GraphStateData * graphState, FX_ARGB argb, FX_F LOAT lineWidth);
161 void setFillInfo(FX_ARGB argb); 161 void setFillInfo(FX_ARGB argb);
162 void setPathToContext(const CFX_PathData * pathData); 162 void setPathToContext(const CFX_PathData * pathData);
163 FX_FLOAT getLineWidth(const CFX_GraphStateData * graphState, CGAffineTransfo rm ctm); 163 FX_FLOAT getLineWidth(const CFX_GraphStateData * graphState, CGAffineTransfo rm ctm);
164 FX_BOOL CG_DrawGlypRun(int nChars, 164 FX_BOOL CG_DrawGlypRun(int nChars,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 uint32_t fCheckSum; 232 uint32_t fCheckSum;
233 uint32_t fOffset; 233 uint32_t fOffset;
234 uint32_t fLength; 234 uint32_t fLength;
235 } TableEntry; 235 } TableEntry;
236 FontHeader _fontHeader; 236 FontHeader _fontHeader;
237 unsigned char * _tableEntries; 237 unsigned char * _tableEntries;
238 size_t * _tableOffsets; 238 size_t * _tableOffsets;
239 int _tableCount; 239 int _tableCount;
240 int _totalSize; 240 int _totalSize;
241 }; 241 };
242 uint32_t FX_GetHashCode( FX_LPCSTR pStr); 242 uint32_t FX_GetHashCode( const FX_CHAR* pStr);
243 FX_DWORD FX_IOSGetMatchFamilyNameHashcode(FX_LPCSTR pFontName); 243 FX_DWORD FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName);
244 uint32_t FX_IOSGetFamilyNamesCount(); 244 uint32_t FX_IOSGetFamilyNamesCount();
245 FX_LPCSTR FX_IOSGetFamilyName( uint32_t uIndex); 245 const FX_CHAR* FX_IOSGetFamilyName( uint32_t uIndex);
246 #endif 246 #endif
247 247
248 #endif // CORE_SRC_FXGE_APPLE_APPLE_INT_H_ 248 #endif // CORE_SRC_FXGE_APPLE_APPLE_INT_H_
OLDNEW
« no previous file with comments | « core/src/fxge/android/fx_android_font.cpp ('k') | core/src/fxge/apple/fx_mac_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698