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

Side by Side Diff: printing/print_settings.cc

Issue 1701703003: Reland of Cleanup: Remove unused PrintSettings shrink factors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « printing/print_settings.h ('k') | printing/print_settings_conversion.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) 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 PrintSettings::PrintSettings() { 124 PrintSettings::PrintSettings() {
125 Clear(); 125 Clear();
126 } 126 }
127 127
128 PrintSettings::~PrintSettings() { 128 PrintSettings::~PrintSettings() {
129 } 129 }
130 130
131 void PrintSettings::Clear() { 131 void PrintSettings::Clear() {
132 ranges_.clear(); 132 ranges_.clear();
133 margin_type_ = DEFAULT_MARGINS; 133 margin_type_ = DEFAULT_MARGINS;
134 min_shrink_ = 1.25;
135 max_shrink_ = 2.;
136 desired_dpi_ = 72; 134 desired_dpi_ = 72;
137 selection_only_ = false; 135 selection_only_ = false;
138 title_ = base::string16(); 136 title_ = base::string16();
139 url_ = base::string16(); 137 url_ = base::string16();
140 display_header_footer_ = false; 138 display_header_footer_ = false;
141 device_name_.clear(); 139 device_name_.clear();
142 requested_media_ = RequestedMedia(); 140 requested_media_ = RequestedMedia();
143 page_setup_device_units_.Clear(); 141 page_setup_device_units_.Clear();
144 dpi_ = 0; 142 dpi_ = 0;
145 landscape_ = false; 143 landscape_ = false;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 } 235 }
238 236
239 void PrintSettings::SetOrientation(bool landscape) { 237 void PrintSettings::SetOrientation(bool landscape) {
240 if (landscape_ != landscape) { 238 if (landscape_ != landscape) {
241 landscape_ = landscape; 239 landscape_ = landscape;
242 page_setup_device_units_.FlipOrientation(); 240 page_setup_device_units_.FlipOrientation();
243 } 241 }
244 } 242 }
245 243
246 } // namespace printing 244 } // namespace printing
OLDNEW
« no previous file with comments | « printing/print_settings.h ('k') | printing/print_settings_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698