diff options
Diffstat (limited to 'printing/backend/print_backend_cups.cc')
-rw-r--r-- | printing/backend/print_backend_cups.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/printing/backend/print_backend_cups.cc b/printing/backend/print_backend_cups.cc index 2e63145..9b6976c 100644 --- a/printing/backend/print_backend_cups.cc +++ b/printing/backend/print_backend_cups.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -86,6 +86,8 @@ class PrintBackendCUPS : public PrintBackend { // 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 @@ bool PrintBackendCUPS::EnumeratePrinters(PrinterList* printer_list) { 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) { |