diff options
author | npm <npm@chromium.org> | 2016-07-29 15:20:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-29 15:20:25 -0700 |
commit | 7484762421e85aa5d610f47aa547470786eecab8 (patch) | |
tree | 321455e17ca3796a17f3edc9b33e11435bc9d7fb /core/fxge/include/cfx_windowsdevice.h | |
parent | 246221724a106c11481eedbf1f94475afba23569 (diff) | |
download | pdfium-7484762421e85aa5d610f47aa547470786eecab8.tar.xz |
Refactor fxge/fx_apple and fx_win header files
- Renamed header for CFX_QuartzDevice class
- Removed unused class CFX_WinBitmapDevice
- Split remaining fx_ge_win32 header
Review-Url: https://codereview.chromium.org/2197513004
Diffstat (limited to 'core/fxge/include/cfx_windowsdevice.h')
-rw-r--r-- | core/fxge/include/cfx_windowsdevice.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/core/fxge/include/cfx_windowsdevice.h b/core/fxge/include/cfx_windowsdevice.h new file mode 100644 index 0000000000..906442d3d9 --- /dev/null +++ b/core/fxge/include/cfx_windowsdevice.h @@ -0,0 +1,39 @@ +// Copyright 2016 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef CORE_FXGE_INCLUDE_CFX_WINDOWSDEVICE_H_ +#define CORE_FXGE_INCLUDE_CFX_WINDOWSDEVICE_H_ + +#ifdef _WIN32 +#ifndef _WINDOWS_ +#include <windows.h> +#endif + +class IFX_RenderDeviceDriver; + +#if defined(PDFIUM_PRINT_TEXT_WITH_GDI) +typedef void (*PDFiumEnsureTypefaceCharactersAccessible)(const LOGFONT* font, + const wchar_t* text, + size_t text_length); + +extern bool g_pdfium_print_text_with_gdi; +extern PDFiumEnsureTypefaceCharactersAccessible + g_pdfium_typeface_accessible_func; +#endif + +class CFX_WindowsDevice : public CFX_RenderDevice { + public: + static IFX_RenderDeviceDriver* CreateDriver(HDC hDC); + + explicit CFX_WindowsDevice(HDC hDC); + ~CFX_WindowsDevice() override; + + HDC GetDC() const; +}; + +#endif // _WIN32 + +#endif // CORE_FXGE_INCLUDE_CFX_WINDOWSDEVICE_H_ |