| 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/logging.h" | 8 #include "base/logging.h" |
| 9 #include "printing/print_job_constants.h" | 9 #include "printing/print_job_constants.h" |
| 10 #include "printing/units.h" | 10 #include "printing/units.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 ranges_.clear(); | 121 ranges_.clear(); |
| 122 margin_type_ = DEFAULT_MARGINS; | 122 margin_type_ = DEFAULT_MARGINS; |
| 123 min_shrink_ = 1.25; | 123 min_shrink_ = 1.25; |
| 124 max_shrink_ = 2.; | 124 max_shrink_ = 2.; |
| 125 desired_dpi_ = 72; | 125 desired_dpi_ = 72; |
| 126 selection_only_ = false; | 126 selection_only_ = false; |
| 127 title_ = base::string16(); | 127 title_ = base::string16(); |
| 128 url_ = base::string16(); | 128 url_ = base::string16(); |
| 129 display_header_footer_ = false; | 129 display_header_footer_ = false; |
| 130 device_name_.clear(); | 130 device_name_.clear(); |
| 131 requested_media_ = RequestedMedia(); |
| 131 page_setup_device_units_.Clear(); | 132 page_setup_device_units_.Clear(); |
| 132 dpi_ = 0; | 133 dpi_ = 0; |
| 133 landscape_ = false; | 134 landscape_ = false; |
| 134 supports_alpha_blend_ = true; | 135 supports_alpha_blend_ = true; |
| 135 should_print_backgrounds_ = false; | 136 should_print_backgrounds_ = false; |
| 136 collate_ = false; | 137 collate_ = false; |
| 137 color_ = UNKNOWN_COLOR_MODEL; | 138 color_ = UNKNOWN_COLOR_MODEL; |
| 138 copies_ = 0; | 139 copies_ = 0; |
| 139 duplex_mode_ = UNKNOWN_DUPLEX_MODE; | 140 duplex_mode_ = UNKNOWN_DUPLEX_MODE; |
| 140 } | 141 } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 } | 226 } |
| 226 | 227 |
| 227 void PrintSettings::SetOrientation(bool landscape) { | 228 void PrintSettings::SetOrientation(bool landscape) { |
| 228 if (landscape_ != landscape) { | 229 if (landscape_ != landscape) { |
| 229 landscape_ = landscape; | 230 landscape_ = landscape; |
| 230 page_setup_device_units_.FlipOrientation(); | 231 page_setup_device_units_.FlipOrientation(); |
| 231 } | 232 } |
| 232 } | 233 } |
| 233 | 234 |
| 234 } // namespace printing | 235 } // namespace printing |
| OLD | NEW |