| Index: printing/backend/print_backend_cups.cc
|
| ===================================================================
|
| --- printing/backend/print_backend_cups.cc (revision 153539)
|
| +++ printing/backend/print_backend_cups.cc (working copy)
|
| @@ -108,6 +108,9 @@
|
| // PrintBackend implementation.
|
| virtual bool EnumeratePrinters(PrinterList* printer_list) OVERRIDE;
|
| virtual std::string GetDefaultPrinterName() OVERRIDE;
|
| + virtual bool GetPrinterSemanticCapsAndDefaults(
|
| + const std::string& printer_name,
|
| + PrinterSemanticCapsAndDefaults* printer_info) OVERRIDE;
|
| virtual bool GetPrinterCapsAndDefaults(
|
| const std::string& printer_name,
|
| PrinterCapsAndDefaults* printer_info) OVERRIDE;
|
| @@ -210,6 +213,17 @@
|
| return dest ? std::string(dest->name) : std::string();
|
| }
|
|
|
| +bool PrintBackendCUPS::GetPrinterSemanticCapsAndDefaults(
|
| + const std::string& printer_name,
|
| + PrinterSemanticCapsAndDefaults* printer_info) {
|
| + PrinterCapsAndDefaults info;
|
| + if (!GetPrinterCapsAndDefaults(printer_name, &info) )
|
| + return false;
|
| +
|
| + return parsePpdCapabilities(
|
| + printer_name, info.printer_capabilities, printer_info);
|
| +}
|
| +
|
| bool PrintBackendCUPS::GetPrinterCapsAndDefaults(
|
| const std::string& printer_name,
|
| PrinterCapsAndDefaults* printer_info) {
|
|
|