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

Side by Side Diff: printing/print_settings.h

Issue 8496004: Linux: Don't call printing::GetColorModelForMode() when USE_CUPS is not defined. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 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/print_job_constants.h" 14 #include "printing/print_job_constants.h"
15 #include "printing/printing_export.h" 15 #include "printing/printing_export.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 17
18 namespace printing { 18 namespace printing {
19 19
20 // Returns true if color model is selected. 20 // Returns true if color model is selected.
21 PRINTING_EXPORT bool isColorModelSelected(int model); 21 PRINTING_EXPORT bool isColorModelSelected(int model);
22 22
23 #if defined (USE_CUPS) 23 #if defined(USE_CUPS)
24 // Get the color model setting name and value for the |color_mode|. 24 // Get the color model setting name and value for the |color_mode|.
25 PRINTING_EXPORT void GetColorModelForMode(int color_mode, 25 PRINTING_EXPORT void GetColorModelForMode(int color_mode,
26 std::string* color_setting_name, 26 std::string* color_setting_name,
27 std::string* color_value); 27 std::string* color_value);
28 #endif 28 #endif
29 29
30 // OS-independent print settings. 30 // OS-independent print settings.
31 class PRINTING_EXPORT PrintSettings { 31 class PRINTING_EXPORT PrintSettings {
32 public: 32 public:
33 PrintSettings(); 33 PrintSettings();
34 ~PrintSettings(); 34 ~PrintSettings();
35 35
36 // Reinitialize the settings to the default values. 36 // Reinitialize the settings to the default values.
37 void Clear(); 37 void Clear();
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // True if this printer supports AlphaBlend. 139 // True if this printer supports AlphaBlend.
140 bool supports_alpha_blend_; 140 bool supports_alpha_blend_;
141 141
142 // If margin type is custom, this is what was requested. 142 // If margin type is custom, this is what was requested.
143 PageMargins requested_custom_margins_in_points_; 143 PageMargins requested_custom_margins_in_points_;
144 }; 144 };
145 145
146 } // namespace printing 146 } // namespace printing
147 147
148 #endif // PRINTING_PRINT_SETTINGS_H_ 148 #endif // PRINTING_PRINT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698