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

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

Issue 318293002: Revert of Revert of Generalize printer color model handling, get rid of CUPS specific case. Enable supported paper szes… (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
« no previous file with comments | « chrome/test/data/webui/print_preview.js ('k') | printing/backend/print_backend.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 #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 30 matching lines...) Expand all
41 bool collate_capable; 41 bool collate_capable;
42 bool collate_default; 42 bool collate_default;
43 43
44 bool copies_capable; 44 bool copies_capable;
45 45
46 bool duplex_capable; 46 bool duplex_capable;
47 DuplexMode duplex_default; 47 DuplexMode duplex_default;
48 48
49 bool color_changeable; 49 bool color_changeable;
50 bool color_default; 50 bool color_default;
51
52 // These are CUPS specific data, which soon be removed altogether. They are
53 // not defined under USE_CUPS to do not pull CUPS dependency into common code.
54 #if defined(OS_POSIX)
55 // TODO(alekseys): Resolve color model within printing context, do not expose
56 // it outside of the context.
57 ColorModel color_model; 51 ColorModel color_model;
58 ColorModel bw_model; 52 ColorModel bw_model;
59 #endif
60 53
61 #if defined(OS_WIN)
62 struct Paper { 54 struct Paper {
63 std::string name; 55 std::string name;
64 gfx::Size size_um; 56 gfx::Size size_um;
65 }; 57 };
66
67 std::vector<Paper> papers; 58 std::vector<Paper> papers;
68 Paper default_paper; 59 Paper default_paper;
69 60
70 std::vector<gfx::Size> dpis; 61 std::vector<gfx::Size> dpis;
71 gfx::Size default_dpi; 62 gfx::Size default_dpi;
72 #endif
73 }; 63 };
74 64
75 struct PRINTING_EXPORT PrinterCapsAndDefaults { 65 struct PRINTING_EXPORT PrinterCapsAndDefaults {
76 PrinterCapsAndDefaults(); 66 PrinterCapsAndDefaults();
77 ~PrinterCapsAndDefaults(); 67 ~PrinterCapsAndDefaults();
78 68
79 std::string printer_capabilities; 69 std::string printer_capabilities;
80 std::string caps_mime_type; 70 std::string caps_mime_type;
81 std::string printer_defaults; 71 std::string printer_defaults;
82 std::string defaults_mime_type; 72 std::string defaults_mime_type;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 const base::DictionaryValue* print_backend_settings); 115 const base::DictionaryValue* print_backend_settings);
126 116
127 protected: 117 protected:
128 friend class base::RefCountedThreadSafe<PrintBackend>; 118 friend class base::RefCountedThreadSafe<PrintBackend>;
129 virtual ~PrintBackend(); 119 virtual ~PrintBackend();
130 }; 120 };
131 121
132 } // namespace printing 122 } // namespace printing
133 123
134 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ 124 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/test/data/webui/print_preview.js ('k') | printing/backend/print_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698