1 // Copyright 2020 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FXGE_APPLE_FX_APPLE_PLATFORM_H_ 8 #define CORE_FXGE_APPLE_FX_APPLE_PLATFORM_H_ 9 10 #include <memory> 11 12 #include "core/fxge/apple/fx_quartz_device.h" 13 #include "core/fxge/cfx_gemodule.h" 14 15 class CApplePlatform final : public CFX_GEModule::PlatformIface { 16 public: 17 CApplePlatform(); 18 ~CApplePlatform() override; 19 20 // CFX_GEModule::PlatformIface: 21 void Init() override; 22 std::unique_ptr<SystemFontInfoIface> CreateDefaultSystemFontInfo() override; 23 void* CreatePlatformFont(pdfium::span<const uint8_t> font_span) override; 24 25 CQuartz2D m_quartz2d; 26 }; 27 28 #endif // CORE_FXGE_APPLE_FX_APPLE_PLATFORM_H_ 29