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

Side by Side Diff: printing/backend/print_backend.h

Issue 313723002: Convert local printer capabilites to CDD format to unify with cloud printers and PDF printer. This … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
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 #ifndef PRINTING_BACKEND_PRINT_BACKEND_H_ 5 #ifndef PRINTING_BACKEND_PRINT_BACKEND_H_
6 #define PRINTING_BACKEND_PRINT_BACKEND_H_ 6 #define PRINTING_BACKEND_PRINT_BACKEND_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 int is_default; 31 int is_default;
32 std::map<std::string, std::string> options; 32 std::map<std::string, std::string> options;
33 }; 33 };
34 34
35 typedef std::vector<PrinterBasicInfo> PrinterList; 35 typedef std::vector<PrinterBasicInfo> PrinterList;
36 36
37 struct PRINTING_EXPORT PrinterSemanticCapsAndDefaults { 37 struct PRINTING_EXPORT PrinterSemanticCapsAndDefaults {
38 PrinterSemanticCapsAndDefaults(); 38 PrinterSemanticCapsAndDefaults();
39 ~PrinterSemanticCapsAndDefaults(); 39 ~PrinterSemanticCapsAndDefaults();
40 40
41 bool collate_capable;
42 bool collate_default;
43
44 bool copies_capable;
45
46 bool duplex_capable;
47 DuplexMode duplex_default;
48
41 bool color_changeable; 49 bool color_changeable;
42 bool color_default; 50 bool color_default;
43 51
44 #if defined(USE_CUPS) 52 #if defined(OS_POSIX)
Vitaly Buka (NO REVIEWS) 2014/06/04 00:05:46 Comment?
Aleksey Shlyapnikov 2014/06/04 02:02:47 Done.
45 ColorModel color_model; 53 ColorModel color_model;
46 ColorModel bw_model; 54 ColorModel bw_model;
47 #endif 55 #endif
48 56
49 #if defined(OS_WIN) 57 #if defined(OS_WIN)
50 bool collate_capable;
51 bool collate_default;
52
53 bool copies_capable;
54
55 struct Paper { 58 struct Paper {
56 std::string name; 59 std::string name;
57 gfx::Size size_um; 60 gfx::Size size_um;
58 }; 61 };
59 62
60 std::vector<Paper> papers; 63 std::vector<Paper> papers;
61 Paper default_paper; 64 Paper default_paper;
62 65
63 std::vector<gfx::Size> dpis; 66 std::vector<gfx::Size> dpis;
64 gfx::Size default_dpi; 67 gfx::Size default_dpi;
65 #endif 68 #endif
66
67 bool duplex_capable;
68 DuplexMode duplex_default;
69 }; 69 };
70 70
71 struct PRINTING_EXPORT PrinterCapsAndDefaults { 71 struct PRINTING_EXPORT PrinterCapsAndDefaults {
72 PrinterCapsAndDefaults(); 72 PrinterCapsAndDefaults();
73 ~PrinterCapsAndDefaults(); 73 ~PrinterCapsAndDefaults();
74 74
75 std::string printer_capabilities; 75 std::string printer_capabilities;
76 std::string caps_mime_type; 76 std::string caps_mime_type;
77 std::string printer_defaults; 77 std::string printer_defaults;
78 std::string defaults_mime_type; 78 std::string defaults_mime_type;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const base::DictionaryValue* print_backend_settings); 121 const base::DictionaryValue* print_backend_settings);
122 122
123 protected: 123 protected:
124 friend class base::RefCountedThreadSafe<PrintBackend>; 124 friend class base::RefCountedThreadSafe<PrintBackend>;
125 virtual ~PrintBackend(); 125 virtual ~PrintBackend();
126 }; 126 };
127 127
128 } // namespace printing 128 } // namespace printing
129 129
130 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ 130 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698