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

Unified Diff: printing/backend/print_backend_cups.cc

Issue 7980036: CUPS printing: Define CUPS_PRINTER_SCANNER for Linux if CUPS is < 1.4 (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/print_backend_cups.cc
diff --git a/printing/backend/print_backend_cups.cc b/printing/backend/print_backend_cups.cc
index 9a4cf1cf2c819b4e0080b7acfe43833f32d9fa07..31a3a66eab85473d22ae9b9b9818f9ad98e0dc28 100644
--- a/printing/backend/print_backend_cups.cc
+++ b/printing/backend/print_backend_cups.cc
@@ -82,6 +82,13 @@ static base::LazyInstance<GcryptInitializer> g_gcrypt_initializer(
} // namespace
#endif // defined(OS_MACOSX)
+// Define CUPS_PRINTER_SCANNER for Linux CUPS < 1.4
+#if defined(OS_LINUX)
+#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 4
+const int CUPS_PRINTER_SCANNER = 0x2000000; // Scanner-only device
kmadhusu 2011/09/21 17:15:30 lines 29-32 declares this variables for OS_MAC. Yo
chrelad 2011/09/21 17:53:10 Hmmm, not working well for me due to the 80 charac
kmadhusu 2011/09/21 18:01:50 Try using line continuation '\' character before t
Lei Zhang 2011/09/21 18:22:34 This is print_backend_cups.cc, you don't need to c
chrelad 2011/09/21 18:25:33 Done
chrelad 2011/09/21 18:30:57 Huh, okay; well, could you look at the latest vers
+#endif // CUPS_VERSION_MINOR < 4
+#endif // defined(OS_LINUX)
+
namespace printing {
static const char kCUPSPrinterInfoOpt[] = "printer-info";
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698