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

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

Issue 9618032: GetPrinterDriverInfo returns string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 virtual ~PrintBackendChromeOS() {} 15 virtual ~PrintBackendChromeOS() {}
16 16
17 // PrintBackend implementation. 17 // PrintBackend implementation.
18 virtual bool EnumeratePrinters(PrinterList* printer_list); 18 virtual bool EnumeratePrinters(PrinterList* printer_list);
19 19
20 virtual std::string GetDefaultPrinterName(); 20 virtual std::string GetDefaultPrinterName();
21 21
22 virtual bool GetPrinterCapsAndDefaults(const std::string& printer_name, 22 virtual bool GetPrinterCapsAndDefaults(const std::string& printer_name,
23 PrinterCapsAndDefaults* printer_info); 23 PrinterCapsAndDefaults* printer_info);
24 24
25 virtual bool GetPrinterDriverInfo(const std::string& printer_name, 25 virtual bool GetPrinterDriverInfo(const std::string& printer_name,
26 PrinterDriverInfo* driver_info); 26 std::string* driver_info);
27 27
28 virtual bool IsValidPrinter(const std::string& printer_name); 28 virtual bool IsValidPrinter(const std::string& printer_name);
29 29
30 private: 30 private:
31 }; 31 };
32 32
33 PrintBackendChromeOS::PrintBackendChromeOS() {} 33 PrintBackendChromeOS::PrintBackendChromeOS() {}
34 34
35 bool PrintBackendChromeOS::EnumeratePrinters(PrinterList* printer_list) { 35 bool PrintBackendChromeOS::EnumeratePrinters(PrinterList* printer_list) {
36 return true; 36 return true;
37 } 37 }
38 38
39 39
40 40
41 bool PrintBackendChromeOS::GetPrinterCapsAndDefaults( 41 bool PrintBackendChromeOS::GetPrinterCapsAndDefaults(
42 const std::string& printer_name, 42 const std::string& printer_name,
43 PrinterCapsAndDefaults* printer_info) { 43 PrinterCapsAndDefaults* printer_info) {
44 NOTREACHED(); 44 NOTREACHED();
45 return false; 45 return false;
46 } 46 }
47 47
48 bool PrintBackendChromeOS::GetPrinterDriverInfo( 48 bool PrintBackendChromeOS::GetPrinterDriverInfo(const std::string& printer_name,
49 const std::string& printer_name, 49 std::string* driver_info) {
50 PrinterDriverInfo* driver_info) {
51 NOTREACHED(); 50 NOTREACHED();
52 return false; 51 return false;
53 } 52 }
54 53
55 std::string PrintBackendChromeOS::GetDefaultPrinterName() { 54 std::string PrintBackendChromeOS::GetDefaultPrinterName() {
56 return std::string(); 55 return std::string();
57 } 56 }
58 57
59 bool PrintBackendChromeOS::IsValidPrinter(const std::string& printer_name) { 58 bool PrintBackendChromeOS::IsValidPrinter(const std::string& printer_name) {
60 NOTREACHED(); 59 NOTREACHED();
61 return true; 60 return true;
62 } 61 }
63 62
64 scoped_refptr<PrintBackend> PrintBackend::CreateInstance( 63 scoped_refptr<PrintBackend> PrintBackend::CreateInstance(
65 const base::DictionaryValue* print_backend_settings) { 64 const base::DictionaryValue* print_backend_settings) {
66 return new PrintBackendChromeOS(); 65 return new PrintBackendChromeOS();
67 } 66 }
68 67
69 } // namespace printing 68 } // namespace printing
70 69
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