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

Side by Side Diff: printing/print_settings.cc

Issue 2602053003: Reset all members in PrintSettings::Clear. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 should_print_backgrounds_ = false; 141 should_print_backgrounds_ = false;
142 collate_ = false; 142 collate_ = false;
143 color_ = UNKNOWN_COLOR_MODEL; 143 color_ = UNKNOWN_COLOR_MODEL;
144 copies_ = 0; 144 copies_ = 0;
145 duplex_mode_ = UNKNOWN_DUPLEX_MODE; 145 duplex_mode_ = UNKNOWN_DUPLEX_MODE;
146 device_name_.clear(); 146 device_name_.clear();
147 requested_media_ = RequestedMedia(); 147 requested_media_ = RequestedMedia();
148 page_setup_device_units_.Clear(); 148 page_setup_device_units_.Clear();
149 dpi_ = 0; 149 dpi_ = 0;
150 scale_factor_ = 1.0f; 150 scale_factor_ = 1.0f;
151 rasterize_pdf_ = false;
151 landscape_ = false; 152 landscape_ = false;
152 supports_alpha_blend_ = true; 153 supports_alpha_blend_ = true;
153 #if defined(OS_WIN) 154 #if defined(OS_WIN)
154 print_text_with_gdi_ = false; 155 print_text_with_gdi_ = false;
155 printer_is_xps_ = false; 156 printer_is_xps_ = false;
156 #endif 157 #endif
157 } 158 }
158 159
159 void PrintSettings::SetPrinterPrintableArea( 160 void PrintSettings::SetPrinterPrintableArea(
160 const gfx::Size& physical_size_device_units, 161 const gfx::Size& physical_size_device_units,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 } 243 }
243 244
244 void PrintSettings::SetOrientation(bool landscape) { 245 void PrintSettings::SetOrientation(bool landscape) {
245 if (landscape_ != landscape) { 246 if (landscape_ != landscape) {
246 landscape_ = landscape; 247 landscape_ = landscape;
247 page_setup_device_units_.FlipOrientation(); 248 page_setup_device_units_.FlipOrientation();
248 } 249 }
249 } 250 }
250 251
251 } // namespace printing 252 } // namespace printing
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698