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

Side by Side Diff: printing/backend/print_backend_chromeos.cc

Issue 10905006: Get semantic capabilities from Print Backend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/backend/print_backend.cc ('k') | printing/backend/print_backend_cups.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "printing/backend/print_backend.h" 5 #include "printing/backend/print_backend.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace printing { 9 namespace printing {
10 10
11 // Provides a stubbed out PrintBackend implementation for use on ChromeOS. 11 // Provides a stubbed out PrintBackend implementation for use on ChromeOS.
12 class PrintBackendChromeOS : public PrintBackend { 12 class PrintBackendChromeOS : public PrintBackend {
13 public: 13 public:
14 PrintBackendChromeOS(); 14 PrintBackendChromeOS();
15 15
16 // PrintBackend implementation. 16 // PrintBackend implementation.
17 virtual bool EnumeratePrinters(PrinterList* printer_list) OVERRIDE; 17 virtual bool EnumeratePrinters(PrinterList* printer_list) OVERRIDE;
18 virtual std::string GetDefaultPrinterName() OVERRIDE; 18 virtual std::string GetDefaultPrinterName() OVERRIDE;
19 virtual bool GetPrinterSemanticCapsAndDefaults(
20 const std::string& printer_name,
21 PrinterSemanticCapsAndDefaults* printer_info) OVERRIDE;
19 virtual bool GetPrinterCapsAndDefaults( 22 virtual bool GetPrinterCapsAndDefaults(
20 const std::string& printer_name, 23 const std::string& printer_name,
21 PrinterCapsAndDefaults* printer_info) OVERRIDE; 24 PrinterCapsAndDefaults* printer_info) OVERRIDE;
22 virtual std::string GetPrinterDriverInfo( 25 virtual std::string GetPrinterDriverInfo(
23 const std::string& printer_name) OVERRIDE; 26 const std::string& printer_name) OVERRIDE;
24 virtual bool IsValidPrinter(const std::string& printer_name) OVERRIDE; 27 virtual bool IsValidPrinter(const std::string& printer_name) OVERRIDE;
25 28
26 protected: 29 protected:
27 virtual ~PrintBackendChromeOS() {} 30 virtual ~PrintBackendChromeOS() {}
28 }; 31 };
29 32
30 PrintBackendChromeOS::PrintBackendChromeOS() {} 33 PrintBackendChromeOS::PrintBackendChromeOS() {}
31 34
32 bool PrintBackendChromeOS::EnumeratePrinters(PrinterList* printer_list) { 35 bool PrintBackendChromeOS::EnumeratePrinters(PrinterList* printer_list) {
33 return true; 36 return true;
34 } 37 }
35 38
36 39 bool PrintBackendChromeOS::GetPrinterSemanticCapsAndDefaults(
40 const std::string& printer_name,
41 PrinterSemanticCapsAndDefaults* printer_info) {
42 NOTREACHED();
43 return false;
44 }
37 45
38 bool PrintBackendChromeOS::GetPrinterCapsAndDefaults( 46 bool PrintBackendChromeOS::GetPrinterCapsAndDefaults(
39 const std::string& printer_name, 47 const std::string& printer_name,
40 PrinterCapsAndDefaults* printer_info) { 48 PrinterCapsAndDefaults* printer_info) {
41 NOTREACHED(); 49 NOTREACHED();
42 return false; 50 return false;
43 } 51 }
44 52
45 std::string PrintBackendChromeOS::GetPrinterDriverInfo( 53 std::string PrintBackendChromeOS::GetPrinterDriverInfo(
46 const std::string& printer_name) { 54 const std::string& printer_name) {
(...skipping 10 matching lines...) Expand all
57 return true; 65 return true;
58 } 66 }
59 67
60 scoped_refptr<PrintBackend> PrintBackend::CreateInstance( 68 scoped_refptr<PrintBackend> PrintBackend::CreateInstance(
61 const base::DictionaryValue* print_backend_settings) { 69 const base::DictionaryValue* print_backend_settings) {
62 return new PrintBackendChromeOS(); 70 return new PrintBackendChromeOS();
63 } 71 }
64 72
65 } // namespace printing 73 } // namespace printing
66 74
OLDNEW
« no previous file with comments | « printing/backend/print_backend.cc ('k') | printing/backend/print_backend_cups.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698