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

Unified Diff: printing/print_settings_conversion.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/print_settings.cc ('k') | printing/printing_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/print_settings_conversion.cc
diff --git a/printing/print_settings_conversion.cc b/printing/print_settings_conversion.cc
index 6200d7cb42e471f7b69ef8f025c5926429bc168d..7cf5cf1dc2487cdebbfe1f6c2da7bfab470012a2 100644
--- a/printing/print_settings_conversion.cc
+++ b/printing/print_settings_conversion.cc
@@ -191,6 +191,13 @@ bool PrintSettingsFromJobSettings(const base::DictionaryValue& job_settings,
settings->set_duplex_mode(static_cast<DuplexMode>(duplex_mode));
settings->set_color(static_cast<ColorModel>(color));
+#if defined(OS_WIN)
+ // Modifiable implies HTML and not other formats like PDF.
+ bool can_modify = false;
+ if (job_settings.GetBoolean(kSettingPreviewModifiable, &can_modify))
+ settings->set_print_text_with_gdi(can_modify);
+#endif
+
return true;
}
« no previous file with comments | « printing/print_settings.cc ('k') | printing/printing_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698