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

Unified Diff: core/fxge/include/cfx_windowsdevice.h

Issue 2197513004: Refactor fxge/fx_apple and fx_win header files (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fixing bot failures Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: core/fxge/include/cfx_windowsdevice.h
diff --git a/core/fxge/include/cfx_windowsdevice.h b/core/fxge/include/cfx_windowsdevice.h
new file mode 100644
index 0000000000000000000000000000000000000000..684ddf05618d113eb7822c7f14b6d03cfe9d08d3
--- /dev/null
+++ b/core/fxge/include/cfx_windowsdevice.h
@@ -0,0 +1,39 @@
+// Copyright 2014 PDFium Authors. All rights reserved.
Lei Zhang 2016/07/29 21:12:27 2016 since this is a "new" file?
npm_g 2016/07/29 21:26:07 Done.
+// 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
Lei Zhang 2016/07/29 21:12:27 Which #if does this match with? Add a comment.
npm_g 2016/07/29 21:26:07 Done.
+
+#endif // CORE_FXGE_INCLUDE_CFX_WINDOWSDEVICE_H_

Powered by Google App Engine
This is Rietveld 408576698