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

Unified Diff: printing/printing_context.cc

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 | « printing/printing_context.h ('k') | printing/printing_context_system_dialog_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context.cc
diff --git a/printing/printing_context.cc b/printing/printing_context.cc
index 5187ceed373f1b2654d76de09912db8b2bd9735a..8bfd8b73db3c76cfe10b234a4bd381f5b39a892b 100644
--- a/printing/printing_context.cc
+++ b/printing/printing_context.cc
@@ -33,6 +33,12 @@ void PrintingContext::set_margin_type(MarginType type) {
settings_.set_margin_type(type);
}
+void PrintingContext::set_is_modifiable(bool is_modifiable) {
+#if defined(OS_WIN)
+ settings_.set_print_text_with_gdi(is_modifiable);
+#endif
+}
+
void PrintingContext::ResetSettings() {
ReleaseContext();
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_system_dialog_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698