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

Unified Diff: pdf/pdf_engine.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/pdf.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdf_engine.h
diff --git a/pdf/pdf_engine.h b/pdf/pdf_engine.h
index a44a4b97c9ba4afaeadde85c48b49d46fe504f3d..4d17a403b184ebfa856c76a384a5f9de49319e6f 100644
--- a/pdf/pdf_engine.h
+++ b/pdf/pdf_engine.h
@@ -29,6 +29,12 @@
#include "ppapi/cpp/var_array.h"
#include "ui/base/window_open_disposition.h"
+#if defined(OS_WIN)
+typedef void (*PDFEnsureTypefaceCharactersAccessible)(const LOGFONT* font,
+ const wchar_t* text,
+ size_t text_length);
+#endif
+
namespace pp {
class InputEvent;
class VarDictionary;
@@ -329,7 +335,13 @@ class PDFEngineExports {
int page_number,
const RenderingSettings& settings,
HDC dc) = 0;
-#endif // OS_WIN
+
+ virtual void SetPDFEnsureTypefaceCharactersAccessible(
+ PDFEnsureTypefaceCharactersAccessible func) = 0;
+
+ virtual void SetPDFUseGDIPrinting(bool enable) = 0;
+#endif // defined(OS_WIN)
+
// See the definition of RenderPDFPageToBitmap in pdf.cc for details.
virtual bool RenderPDFPageToBitmap(const void* pdf_buffer,
int pdf_buffer_size,
« no previous file with comments | « pdf/pdf.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698