OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This is dummy implementation for all configurations where print system |
| 6 // for cloud print is not available. |
| 7 #if !defined(CP_PRINT_SYSTEM_AVAILABLE) |
| 8 |
5 #include "chrome/service/cloud_print/printer_info.h" | 9 #include "chrome/service/cloud_print/printer_info.h" |
6 | 10 |
7 #include "base/logging.h" | 11 #include "base/logging.h" |
8 | 12 |
9 // TODO(sanjeevr): Implement the Mac interfaces. | |
10 namespace cloud_print { | 13 namespace cloud_print { |
11 | 14 |
12 void EnumeratePrinters(PrinterList* printer_list) { | 15 void EnumeratePrinters(PrinterList* printer_list) { |
13 DCHECK(printer_list); | 16 DCHECK(printer_list); |
14 NOTIMPLEMENTED(); | 17 NOTIMPLEMENTED(); |
15 } | 18 } |
16 | 19 |
17 bool GetPrinterCapsAndDefaults(const std::string& printer_name, | 20 bool GetPrinterCapsAndDefaults(const std::string& printer_name, |
18 PrinterCapsAndDefaults* printer_info) { | 21 PrinterCapsAndDefaults* printer_info) { |
19 NOTIMPLEMENTED(); | 22 NOTIMPLEMENTED(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 return false; | 74 return false; |
72 } | 75 } |
73 | 76 |
74 bool PrinterChangeNotifier::GetCurrentPrinterInfo( | 77 bool PrinterChangeNotifier::GetCurrentPrinterInfo( |
75 PrinterBasicInfo* printer_info) { | 78 PrinterBasicInfo* printer_info) { |
76 NOTIMPLEMENTED(); | 79 NOTIMPLEMENTED(); |
77 return false; | 80 return false; |
78 } | 81 } |
79 } // namespace cloud_print | 82 } // namespace cloud_print |
80 | 83 |
| 84 #endif // CP_PRINT_SYSTEM_AVAILABLE |
| 85 |
OLD | NEW |