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

Unified Diff: printing/print_settings.h

Issue 2970473002: Add generic text printing (Closed)
Patch Set: Clean up Created 3 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: printing/print_settings.h
diff --git a/printing/print_settings.h b/printing/print_settings.h
index 21587378c6a08e1676f7736ce17c5fbefe9cb81f..f55efc4fc302f18defece3a6ca214d12ec77dd4d 100644
--- a/printing/print_settings.h
+++ b/printing/print_settings.h
@@ -37,6 +37,7 @@ class PRINTING_EXPORT PrintSettings {
#if defined(OS_WIN)
enum PrinterType {
TYPE_NONE = 0,
+ TYPE_TEXTONLY,
TYPE_XPS,
TYPE_POSTSCRIPT_LEVEL2,
TYPE_POSTSCRIPT_LEVEL3
@@ -171,6 +172,9 @@ class PRINTING_EXPORT PrintSettings {
bool print_text_with_gdi() const { return print_text_with_gdi_; }
void set_printer_type(PrinterType type) { printer_type_ = type; }
+ bool printer_is_textonly() const {
+ return printer_type_ == PrinterType::TYPE_TEXTONLY;
+ }
bool printer_is_xps() const { return printer_type_ == PrinterType::TYPE_XPS;}
bool printer_is_ps2() const {
return printer_type_ == PrinterType::TYPE_POSTSCRIPT_LEVEL2;

Powered by Google App Engine
This is Rietveld 408576698