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;