1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "printing/backend/print_backend.h"
7 #include "base/logging.h"
11 // Provides a stubbed out PrintBackend implementation for use on ChromeOS.
12 class PrintBackendChromeOS
: public PrintBackend
{
14 PrintBackendChromeOS();
16 // PrintBackend implementation.
17 bool EnumeratePrinters(PrinterList
* printer_list
) override
;
18 std::string
GetDefaultPrinterName() override
;
19 bool GetPrinterSemanticCapsAndDefaults(
20 const std::string
& printer_name
,
21 PrinterSemanticCapsAndDefaults
* printer_info
) override
;
22 bool GetPrinterCapsAndDefaults(const std::string
& printer_name
,
23 PrinterCapsAndDefaults
* printer_info
) override
;
24 std::string
GetPrinterDriverInfo(const std::string
& printer_name
) override
;
25 bool IsValidPrinter(const std::string
& printer_name
) override
;
28 ~PrintBackendChromeOS() override
{}
31 PrintBackendChromeOS::PrintBackendChromeOS() {}
33 bool PrintBackendChromeOS::EnumeratePrinters(PrinterList
* printer_list
) {
37 bool PrintBackendChromeOS::GetPrinterSemanticCapsAndDefaults(
38 const std::string
& printer_name
,
39 PrinterSemanticCapsAndDefaults
* printer_info
) {
44 bool PrintBackendChromeOS::GetPrinterCapsAndDefaults(
45 const std::string
& printer_name
,
46 PrinterCapsAndDefaults
* printer_info
) {
51 std::string
PrintBackendChromeOS::GetPrinterDriverInfo(
52 const std::string
& printer_name
) {
57 std::string
PrintBackendChromeOS::GetDefaultPrinterName() {
61 bool PrintBackendChromeOS::IsValidPrinter(const std::string
& printer_name
) {
66 scoped_refptr
<PrintBackend
> PrintBackend::CreateInstance(
67 const base::DictionaryValue
* print_backend_settings
) {
68 return new PrintBackendChromeOS();
71 } // namespace printing