| OLD | NEW |
| 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_FXGE_APPLE_APPLE_INT_H_ | 7 #ifndef CORE_FXGE_APPLE_APPLE_INT_H_ |
| 8 #define CORE_FXGE_APPLE_APPLE_INT_H_ | 8 #define CORE_FXGE_APPLE_APPLE_INT_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
| 11 | 11 |
| 12 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 12 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
| 13 | 13 |
| 14 #include "core/fxge/include/fx_ge.h" | 14 #include "core/fxge/include/fx_dib.h" |
| 15 #include "core/fxge/include/ifx_renderdevicedriver.h" |
| 15 | 16 |
| 16 #if _FX_OS_ == _FX_MACOSX_ | 17 #if _FX_OS_ == _FX_MACOSX_ |
| 17 #include <Carbon/Carbon.h> | 18 #include <Carbon/Carbon.h> |
| 18 #endif | 19 #endif |
| 19 | 20 |
| 20 typedef enum eFXIOSFONTCHARSET { | 21 typedef enum eFXIOSFONTCHARSET { |
| 21 eFXFontCharsetDEFAULT = 0, | 22 eFXFontCharsetDEFAULT = 0, |
| 22 eFXFontCharsetANSI = 1, | 23 eFXFontCharsetANSI = 1, |
| 23 eFXFontCharsetSYMBOL = 1 << 1, | 24 eFXFontCharsetSYMBOL = 1 << 1, |
| 24 eFXFontCharsetSHIFTJIS = 1 << 2, | 25 eFXFontCharsetSHIFTJIS = 1 << 2, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 79 |
| 79 CQuartz2D m_quartz2d; | 80 CQuartz2D m_quartz2d; |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 class CFX_QuartzDeviceDriver : public IFX_RenderDeviceDriver { | 83 class CFX_QuartzDeviceDriver : public IFX_RenderDeviceDriver { |
| 83 public: | 84 public: |
| 84 CFX_QuartzDeviceDriver(CGContextRef context, int32_t deviceClass); | 85 CFX_QuartzDeviceDriver(CGContextRef context, int32_t deviceClass); |
| 85 ~CFX_QuartzDeviceDriver() override; | 86 ~CFX_QuartzDeviceDriver() override; |
| 86 | 87 |
| 87 // IFX_RenderDeviceDriver | 88 // IFX_RenderDeviceDriver |
| 88 int GetDeviceCaps(int caps_id) override; | 89 int GetDeviceCaps(int caps_id) const override; |
| 89 CFX_Matrix GetCTM() const override; | 90 CFX_Matrix GetCTM() const override; |
| 90 void SaveState() override; | 91 void SaveState() override; |
| 91 void RestoreState(bool bKeepSaved) override; | 92 void RestoreState(bool bKeepSaved) override; |
| 92 FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, | 93 FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, |
| 93 const CFX_Matrix* pObject2Device, | 94 const CFX_Matrix* pObject2Device, |
| 94 int fill_mode) override; | 95 int fill_mode) override; |
| 95 FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, | 96 FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, |
| 96 const CFX_Matrix* pObject2Device, | 97 const CFX_Matrix* pObject2Device, |
| 97 const CFX_GraphStateData* pGraphState) override; | 98 const CFX_GraphStateData* pGraphState) override; |
| 98 FX_BOOL DrawPath(const CFX_PathData* pPathData, | 99 FX_BOOL DrawPath(const CFX_PathData* pPathData, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 int32_t m_vertSize; | 181 int32_t m_vertSize; |
| 181 }; | 182 }; |
| 182 | 183 |
| 183 uint32_t FX_GetHashCode(const FX_CHAR* pStr); | 184 uint32_t FX_GetHashCode(const FX_CHAR* pStr); |
| 184 uint32_t FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName); | 185 uint32_t FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName); |
| 185 uint32_t FX_IOSGetFamilyNamesCount(); | 186 uint32_t FX_IOSGetFamilyNamesCount(); |
| 186 const FX_CHAR* FX_IOSGetFamilyName(uint32_t uIndex); | 187 const FX_CHAR* FX_IOSGetFamilyName(uint32_t uIndex); |
| 187 #endif | 188 #endif |
| 188 | 189 |
| 189 #endif // CORE_FXGE_APPLE_APPLE_INT_H_ | 190 #endif // CORE_FXGE_APPLE_APPLE_INT_H_ |
| OLD | NEW |