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

Side by Side Diff: core/fxge/cfx_windowsdevice.h

Issue 2615703002: Revert postscript code removal. (Closed)
Patch Set: Fix Compile Errors Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CFX_WINDOWSDEVICE_H_ 7 #ifndef CORE_FXGE_CFX_WINDOWSDEVICE_H_
8 #define CORE_FXGE_CFX_WINDOWSDEVICE_H_ 8 #define CORE_FXGE_CFX_WINDOWSDEVICE_H_
9 9
10 #ifdef _WIN32 10 #ifdef _WIN32
11 #ifndef _WINDOWS_ 11 #ifndef _WINDOWS_
12 #include <windows.h> 12 #include <windows.h>
13 #endif 13 #endif
14 14
15 #include "core/fxge/cfx_renderdevice.h"
dsinclair 2017/01/05 17:13:43 Is this needed here?
rbpotter 2017/01/05 22:58:18 Yes, the compiler complains about an undefined bas
16
15 class IFX_RenderDeviceDriver; 17 class IFX_RenderDeviceDriver;
16 18
17 #if defined(PDFIUM_PRINT_TEXT_WITH_GDI) 19 #if defined(PDFIUM_PRINT_TEXT_WITH_GDI)
18 typedef void (*PDFiumEnsureTypefaceCharactersAccessible)(const LOGFONT* font, 20 typedef void (*PDFiumEnsureTypefaceCharactersAccessible)(const LOGFONT* font,
19 const wchar_t* text, 21 const wchar_t* text,
20 size_t text_length); 22 size_t text_length);
21 23
22 extern bool g_pdfium_print_text_with_gdi; 24 extern bool g_pdfium_print_text_with_gdi;
23 extern PDFiumEnsureTypefaceCharactersAccessible 25 extern PDFiumEnsureTypefaceCharactersAccessible
24 g_pdfium_typeface_accessible_func; 26 g_pdfium_typeface_accessible_func;
25 #endif 27 #endif
26 28
27 class CFX_WindowsDevice : public CFX_RenderDevice { 29 class CFX_WindowsDevice : public CFX_RenderDevice {
28 public: 30 public:
29 static IFX_RenderDeviceDriver* CreateDriver(HDC hDC); 31 static IFX_RenderDeviceDriver* CreateDriver(HDC hDC);
30 32
31 explicit CFX_WindowsDevice(HDC hDC); 33 explicit CFX_WindowsDevice(HDC hDC);
32 ~CFX_WindowsDevice() override; 34 ~CFX_WindowsDevice() override;
33 35
34 HDC GetDC() const; 36 HDC GetDC() const;
35 }; 37 };
36 38
37 #endif // _WIN32 39 #endif // _WIN32
38 40
39 #endif // CORE_FXGE_CFX_WINDOWSDEVICE_H_ 41 #endif // CORE_FXGE_CFX_WINDOWSDEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698