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

Unified Diff: printing/print_settings.h

Issue 2392343003: Fix printing with XPS printers on Windows. (Closed)
Patch Set: Created 4 years, 2 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: printing/print_settings.h
diff --git a/printing/print_settings.h b/printing/print_settings.h
index 908e00298edc2bd5e8cb6fd09bb64712c4e26ee2..4adbb358b1a52c8b549cb8f40aae4b384e93ded5 100644
--- a/printing/print_settings.h
+++ b/printing/print_settings.h
@@ -147,6 +147,9 @@ class PRINTING_EXPORT PrintSettings {
#if defined(OS_WIN)
void set_print_text_with_gdi(bool use_gdi) { print_text_with_gdi_ = use_gdi; }
bool print_text_with_gdi() const { return print_text_with_gdi_; }
+
+ void set_printer_is_xps(bool is_xps) { printer_is_xps_ = is_xps; }
+ bool printer_is_xps() const { return printer_is_xps_; }
#endif
// Cookie generator. It is used to initialize PrintedDocument with its
@@ -212,6 +215,9 @@ class PRINTING_EXPORT PrintSettings {
#if defined(OS_WIN)
// True to print text with GDI.
bool print_text_with_gdi_;
+
+ // True if the printer is an XPS printer.
+ bool printer_is_xps_;
#endif
// If margin type is custom, this is what was requested.

Powered by Google App Engine
This is Rietveld 408576698