| 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 #include "printing/print_settings.h" | 5 #include "printing/print_settings.h" |
| 6 | 6 |
| 7 #include "base/atomic_sequence_num.h" | 7 #include "base/atomic_sequence_num.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "printing/print_job_constants.h" | 10 #include "printing/print_job_constants.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 Clear(); | 152 Clear(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 PrintSettings::PrintSettings(const PrintSettings& other) = default; | 155 PrintSettings::PrintSettings(const PrintSettings& other) = default; |
| 156 | 156 |
| 157 PrintSettings::~PrintSettings() { | 157 PrintSettings::~PrintSettings() { |
| 158 } | 158 } |
| 159 | 159 |
| 160 void PrintSettings::Clear() { | 160 void PrintSettings::Clear() { |
| 161 ranges_.clear(); | 161 ranges_.clear(); |
| 162 desired_dpi_ = 72; | |
| 163 selection_only_ = false; | 162 selection_only_ = false; |
| 164 margin_type_ = DEFAULT_MARGINS; | 163 margin_type_ = DEFAULT_MARGINS; |
| 165 title_.clear(); | 164 title_.clear(); |
| 166 url_.clear(); | 165 url_.clear(); |
| 167 display_header_footer_ = false; | 166 display_header_footer_ = false; |
| 168 should_print_backgrounds_ = false; | 167 should_print_backgrounds_ = false; |
| 169 collate_ = false; | 168 collate_ = false; |
| 170 color_ = UNKNOWN_COLOR_MODEL; | 169 color_ = UNKNOWN_COLOR_MODEL; |
| 171 copies_ = 0; | 170 copies_ = 0; |
| 172 duplex_mode_ = UNKNOWN_DUPLEX_MODE; | 171 duplex_mode_ = UNKNOWN_DUPLEX_MODE; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 } | 287 } |
| 289 | 288 |
| 290 void PrintSettings::SetOrientation(bool landscape) { | 289 void PrintSettings::SetOrientation(bool landscape) { |
| 291 if (landscape_ != landscape) { | 290 if (landscape_ != landscape) { |
| 292 landscape_ = landscape; | 291 landscape_ = landscape; |
| 293 page_setup_device_units_.FlipOrientation(); | 292 page_setup_device_units_.FlipOrientation(); |
| 294 } | 293 } |
| 295 } | 294 } |
| 296 | 295 |
| 297 } // namespace printing | 296 } // namespace printing |
| OLD | NEW |