OLD | NEW |
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_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/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 void set_color(ColorModel color) { color_ = color; } | 151 void set_color(ColorModel color) { color_ = color; } |
152 ColorModel color() const { return color_; } | 152 ColorModel color() const { return color_; } |
153 | 153 |
154 void set_copies(int copies) { copies_ = copies; } | 154 void set_copies(int copies) { copies_ = copies; } |
155 int copies() const { return copies_; } | 155 int copies() const { return copies_; } |
156 | 156 |
157 void set_duplex_mode(DuplexMode duplex_mode) { duplex_mode_ = duplex_mode; } | 157 void set_duplex_mode(DuplexMode duplex_mode) { duplex_mode_ = duplex_mode; } |
158 DuplexMode duplex_mode() const { return duplex_mode_; } | 158 DuplexMode duplex_mode() const { return duplex_mode_; } |
159 | 159 |
160 int desired_dpi() const { return desired_dpi_; } | |
161 | |
162 #if defined(OS_WIN) | 160 #if defined(OS_WIN) |
163 void set_print_text_with_gdi(bool use_gdi) { print_text_with_gdi_ = use_gdi; } | 161 void set_print_text_with_gdi(bool use_gdi) { print_text_with_gdi_ = use_gdi; } |
164 bool print_text_with_gdi() const { return print_text_with_gdi_; } | 162 bool print_text_with_gdi() const { return print_text_with_gdi_; } |
165 | 163 |
166 void set_printer_type(PrinterType type) { printer_type_ = type; } | 164 void set_printer_type(PrinterType type) { printer_type_ = type; } |
167 bool printer_is_xps() const { return printer_type_ == PrinterType::TYPE_XPS;} | 165 bool printer_is_xps() const { return printer_type_ == PrinterType::TYPE_XPS;} |
168 bool printer_is_ps2() const { | 166 bool printer_is_ps2() const { |
169 return printer_type_ == PrinterType::TYPE_POSTSCRIPT_LEVEL2; | 167 return printer_type_ == PrinterType::TYPE_POSTSCRIPT_LEVEL2; |
170 } | 168 } |
171 bool printer_is_ps3() const { | 169 bool printer_is_ps3() const { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 PrinterType printer_type_; | 244 PrinterType printer_type_; |
247 #endif | 245 #endif |
248 | 246 |
249 // If margin type is custom, this is what was requested. | 247 // If margin type is custom, this is what was requested. |
250 PageMargins requested_custom_margins_in_points_; | 248 PageMargins requested_custom_margins_in_points_; |
251 }; | 249 }; |
252 | 250 |
253 } // namespace printing | 251 } // namespace printing |
254 | 252 |
255 #endif // PRINTING_PRINT_SETTINGS_H_ | 253 #endif // PRINTING_PRINT_SETTINGS_H_ |
OLD | NEW |