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

Unified Diff: pdf/pdf.h

Issue 2114583002: Windows: Make it possible to print text with GDI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: pdf/pdf.h
diff --git a/pdf/pdf.h b/pdf/pdf.h
index 342757f24626cc33ba99468ea59001436c55efc2..55031439da950335f3d578dfe53f46b757b3040d 100644
--- a/pdf/pdf.h
+++ b/pdf/pdf.h
@@ -8,6 +8,16 @@
#include "ppapi/c/ppb.h"
#include "ppapi/cpp/module.h"
+#if defined(OS_WIN)
+#include <windows.h>
+#endif
+
+#if defined(OS_WIN)
+typedef void (*PDFEnsureTypefaceCharactersAccessible)(const LOGFONT& font,
+ const wchar_t* text,
+ size_t text_length);
+#endif
+
namespace chrome_pdf {
class PDFModule : public pp::Module {
@@ -67,7 +77,13 @@ bool RenderPDFPageToDC(const void* pdf_buffer,
bool keep_aspect_ratio,
bool center_in_bounds,
bool autorotate);
-#endif
+
+void SetPDFEnsureTypefaceCharactersAccessible(
+ PDFEnsureTypefaceCharactersAccessible func);
+
+void SetPDFUseGDIPrinting(bool enable);
+#endif // defined(OS_WIN)
+
// |page_count| and |max_page_width| are optional and can be NULL.
// Returns false if the document is not valid.
bool GetPDFDocInfo(const void* pdf_buffer,

Powered by Google App Engine
This is Rietveld 408576698