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

Side by Side Diff: printing/print_settings.h

Issue 8226024: Reland 105087: PrintPreview: Fix printer color settings issues based on printer ppd/schema info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 2 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/print_job_constants.cc ('k') | printing/print_settings.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PRINT_SETTINGS_H_ 5 #ifndef PRINTING_PRINT_SETTINGS_H_
6 #define PRINTING_PRINT_SETTINGS_H_ 6 #define PRINTING_PRINT_SETTINGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "printing/page_range.h" 12 #include "printing/page_range.h"
13 #include "printing/page_setup.h" 13 #include "printing/page_setup.h"
14 #include "printing/printing_export.h"
14 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
15 16
16 namespace printing { 17 namespace printing {
17 18
19 // Returns true if color model is selected.
20 PRINTING_EXPORT bool isColorModelSelected(int model);
21
22 #if defined (USE_CUPS)
23 // Get the color model setting name and value for the |color_mode|.
24 PRINTING_EXPORT void GetColorModelForMode(int color_mode,
25 std::string* color_setting_name,
26 std::string* color_value);
27 #endif
28
18 // OS-independent print settings. 29 // OS-independent print settings.
19 class PRINTING_EXPORT PrintSettings { 30 class PRINTING_EXPORT PrintSettings {
20 public: 31 public:
21 PrintSettings(); 32 PrintSettings();
22 ~PrintSettings(); 33 ~PrintSettings();
23 34
24 // Reinitialize the settings to the default values. 35 // Reinitialize the settings to the default values.
25 void Clear(); 36 void Clear();
26 37
27 // Set printer printable area in in device units. 38 // Set printer printable area in in device units.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Is the orientation landscape or portrait. 135 // Is the orientation landscape or portrait.
125 bool landscape_; 136 bool landscape_;
126 137
127 // True if this printer supports AlphaBlend. 138 // True if this printer supports AlphaBlend.
128 bool supports_alpha_blend_; 139 bool supports_alpha_blend_;
129 }; 140 };
130 141
131 } // namespace printing 142 } // namespace printing
132 143
133 #endif // PRINTING_PRINT_SETTINGS_H_ 144 #endif // PRINTING_PRINT_SETTINGS_H_
OLDNEW
« no previous file with comments | « printing/print_job_constants.cc ('k') | printing/print_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698