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

Unified Diff: chrome/common/chrome_switches.cc

Issue 2503663002: Printing: Add command line switch to rendering text with GDI. (Closed)
Patch Set: Created 4 years, 1 month 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
« chrome/common/chrome_switches.h ('K') | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 7336c235939dc234307523b74b3881446017f9a7..9a3307968ac92ceb5d001a12b09f3283ca289ba3 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -1182,8 +1182,11 @@ const char kMakeChromeDefault[] = "make-chrome-default";
#endif // defined(OS_MACOSX)
#if defined(OS_WIN)
+// Enables using GDI to print text as simply text.
+const char kEnableGDITextPrinting[] = "enable-gdi-text-printing";
+
// Disables using GDI to print text as simply text. Fallback to printing text
-// as paths.
+// as paths. Overrides --enable-gdi-text-printing.
const char kDisableGDITextPrinting[] = "disable-gdi-text-printing";
// Disables per monitor DPI for supported Windows versions.
@@ -1307,6 +1310,15 @@ bool PowerOverlayEnabled() {
}
#endif
+#if defined(OS_WIN)
+bool GDITextPrintingEnabled() {
+ const auto& command_line = *base::CommandLine::ForCurrentProcess();
+ if (command_line.HasSwitch(kDisableGDITextPrinting))
+ return false;
+ return command_line.HasSwitch(kEnableGDITextPrinting);
+}
+#endif
+
// -----------------------------------------------------------------------------
// DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
//
« chrome/common/chrome_switches.h ('K') | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698