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

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: 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_engine.h
diff --git a/pdf/pdf_engine.h b/pdf/pdf_engine.h
index 071f43c0b9cf277cee99a1a1e2cfefeea1390ac5..186e89a13a7559dcaeded3a63d2edaf79ee56c40 100644
--- a/pdf/pdf_engine.h
+++ b/pdf/pdf_engine.h
@@ -28,6 +28,12 @@
#include "ppapi/cpp/url_loader.h"
#include "ppapi/cpp/var_array.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;
@@ -337,7 +343,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,

Powered by Google App Engine
This is Rietveld 408576698