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

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

Issue 7038028: Initial support for cloudprint in print preview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bad merge Created 9 years, 7 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "printing/backend/print_backend.h"
6
7 #include "base/logging.h"
8
9 namespace printing {
10
11 class PrintBackendChromeOS : public PrintBackend {
sanjeevr 2011/05/24 23:21:25 Please add some comments for this class.
Scott Byer 2011/05/24 23:40:32 We will want a comment here explaining that it's s
12 public:
13 PrintBackendChromeOS();
14 virtual ~PrintBackendChromeOS() {}
15
16 // PrintBackend implementation.
17 virtual bool EnumeratePrinters(PrinterList* printer_list);
18
19 virtual bool GetPrinterCapsAndDefaults(const std::string& printer_name,
20 PrinterCapsAndDefaults* printer_info);
21
22 virtual bool IsValidPrinter(const std::string& printer_name);
23
24 private:
25 };
26
27 PrintBackendChromeOS::PrintBackendChromeOS() {}
28
29 bool PrintBackendChromeOS::EnumeratePrinters(PrinterList* printer_list) {
30 return true;
31 }
32
33 bool PrintBackendChromeOS::GetPrinterCapsAndDefaults(
34 const std::string& printer_name,
35 PrinterCapsAndDefaults* printer_info) {
36 NOTREACHED();
37 return false;
38 }
39
40 bool PrintBackendChromeOS::IsValidPrinter(const std::string& printer_name) {
41 NOTREACHED();
42 return true;
43 }
44
45 scoped_refptr<PrintBackend> PrintBackend::CreateInstance(
46 const DictionaryValue* print_backend_settings) {
47 return new PrintBackendChromeOS();
48 }
49
50 } // namespace printing
51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698