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

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: rebase again, resolve conflicts Created 4 years, 4 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
« no previous file with comments | « pdf/BUILD.gn ('k') | pdf/pdf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdf.h
diff --git a/pdf/pdf.h b/pdf/pdf.h
index 342757f24626cc33ba99468ea59001436c55efc2..fa3ae590aba83e861999da7f82a0dbc65afcbaf4 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,
« no previous file with comments | « pdf/BUILD.gn ('k') | pdf/pdf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698