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

Unified Diff: printing/backend/print_backend_cups.cc

Issue 7087011: Printing: Add ability to get the default printer from the print backend. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 9 years, 7 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/backend/print_backend.h ('k') | printing/backend/print_backend_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/print_backend_cups.cc
===================================================================
--- printing/backend/print_backend_cups.cc (revision 87186)
+++ printing/backend/print_backend_cups.cc (working copy)
@@ -86,6 +86,8 @@
// PrintBackend implementation.
virtual bool EnumeratePrinters(PrinterList* printer_list);
+ virtual std::string GetDefaultPrinterName();
+
virtual bool GetPrinterCapsAndDefaults(const std::string& printer_name,
PrinterCapsAndDefaults* printer_info);
@@ -153,6 +155,13 @@
return true;
}
+std::string PrintBackendCUPS::GetDefaultPrinterName() {
+ // TODO(thestig) Figure out why cupsGetDefault() lies about the default
+ // printer. :-(
+ // Return an empty string for now.
+ return std::string();
+}
+
bool PrintBackendCUPS::GetPrinterCapsAndDefaults(
const std::string& printer_name,
PrinterCapsAndDefaults* printer_info) {
« no previous file with comments | « printing/backend/print_backend.h ('k') | printing/backend/print_backend_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698