commit | 0437a171a47da67fc40a154dc26bcab9fae8bc25 | [log] [tgz] |
---|---|---|
author | rbpotter <[email protected]> | Fri Jul 14 21:23:24 2017 |
committer | Commit Bot <[email protected]> | Fri Jul 14 21:23:42 2017 |
tree | 8703d38318b5ff0ad1e49a0015650d36e58b1a20 | |
parent | 4272e0fd06fa417c03289344a49c75054ea4b5f1 [diff] [blame] |
Add generic text printing Depends on https://pdfium-review.googlesource.com/c/7194 BUG=734850 Review-Url: https://codereview.chromium.org/2970473002 Cr-Commit-Position: refs/heads/master@{#486892}
diff --git a/printing/print_settings.h b/printing/print_settings.h index 2158737..f55efc4 100644 --- a/printing/print_settings.h +++ b/printing/print_settings.h
@@ -37,6 +37,7 @@ #if defined(OS_WIN) enum PrinterType { TYPE_NONE = 0, + TYPE_TEXTONLY, TYPE_XPS, TYPE_POSTSCRIPT_LEVEL2, TYPE_POSTSCRIPT_LEVEL3 @@ -171,6 +172,9 @@ 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;