xref: /aosp_15_r20/external/pdfium/core/fxge/win32/cwin32_platform.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
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_WIN32_CWIN32_PLATFORM_H_
8 #define CORE_FXGE_WIN32_CWIN32_PLATFORM_H_
9 
10 #include <memory>
11 
12 #include "core/fxge/cfx_gemodule.h"
13 #include "core/fxge/win32/cgdi_plus_ext.h"
14 
15 class CWin32Platform final : public CFX_GEModule::PlatformIface {
16  public:
17   CWin32Platform();
18   ~CWin32Platform() override;
19 
20   // CFX_GEModule::PlatformIface:
21   void Init() override;
22   std::unique_ptr<SystemFontInfoIface> CreateDefaultSystemFontInfo() override;
23 
24   CGdiplusExt m_GdiplusExt;
25 };
26 
27 #endif  // CORE_FXGE_WIN32_CWIN32_PLATFORM_H_
28