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

Unified Diff: printing/print_settings.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: rebase again, resolve conflicts Created 4 years, 4 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
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | printing/print_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/print_settings.h
diff --git a/printing/print_settings.h b/printing/print_settings.h
index 29c0ced8a77ee64a26fb26dd2df02ce3f5a35075..908e00298edc2bd5e8cb6fd09bb64712c4e26ee2 100644
--- a/printing/print_settings.h
+++ b/printing/print_settings.h
@@ -106,8 +106,8 @@ class PRINTING_EXPORT PrintSettings {
#endif // defined(OS_MACOSX)
}
- void set_ranges(const PageRanges& ranges) { ranges_ = ranges; };
- const PageRanges& ranges() const { return ranges_; };
+ void set_ranges(const PageRanges& ranges) { ranges_ = ranges; }
+ const PageRanges& ranges() const { return ranges_; }
void set_selection_only(bool selection_only) {
selection_only_ = selection_only;
@@ -144,6 +144,11 @@ class PRINTING_EXPORT PrintSettings {
int desired_dpi() const { return desired_dpi_; }
+#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_; }
+#endif
+
// Cookie generator. It is used to initialize PrintedDocument with its
// associated PrintSettings, to be sure that each generated PrintedPage is
// correctly associated with its corresponding PrintedDocument.
@@ -204,6 +209,11 @@ class PRINTING_EXPORT PrintSettings {
// True if this printer supports AlphaBlend.
bool supports_alpha_blend_;
+#if defined(OS_WIN)
+ // True to print text with GDI.
+ bool print_text_with_gdi_;
+#endif
+
// If margin type is custom, this is what was requested.
PageMargins requested_custom_margins_in_points_;
};
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | printing/print_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698