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

Side by Side Diff: printing/print_settings.cc

Issue 7737029: PrintPreview: Remove unwanted member variable initializations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
« 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "printing/units.h" 8 #include "printing/units.h"
9 9
10 namespace printing { 10 namespace printing {
11 11
12 // Global SequenceNumber used for generating unique cookie values. 12 // Global SequenceNumber used for generating unique cookie values.
13 static base::AtomicSequenceNumber cookie_seq(base::LINKER_INITIALIZED); 13 static base::AtomicSequenceNumber cookie_seq(base::LINKER_INITIALIZED);
14 14
15 PrintSettings::PrintSettings() 15 PrintSettings::PrintSettings()
16 : min_shrink(1.25), 16 : min_shrink(1.25),
17 max_shrink(2.0), 17 max_shrink(2.0),
18 desired_dpi(72), 18 desired_dpi(72),
19 selection_only(false), 19 selection_only(false),
20 use_overlays(true), 20 use_overlays(true),
21 date(),
22 title(),
23 url(),
24 display_header_footer(false), 21 display_header_footer(false),
25 dpi_(0), 22 dpi_(0),
26 landscape_(false), 23 landscape_(false),
27 supports_alpha_blend_(true) { 24 supports_alpha_blend_(true) {
28 } 25 }
29 26
30 PrintSettings::~PrintSettings() { 27 PrintSettings::~PrintSettings() {
31 } 28 }
32 29
33 void PrintSettings::Clear() { 30 void PrintSettings::Clear() {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 99 }
103 100
104 void PrintSettings::SetOrientation(bool landscape) { 101 void PrintSettings::SetOrientation(bool landscape) {
105 if (landscape_ != landscape) { 102 if (landscape_ != landscape) {
106 landscape_ = landscape; 103 landscape_ = landscape;
107 page_setup_device_units_.FlipOrientation(); 104 page_setup_device_units_.FlipOrientation();
108 } 105 }
109 } 106 }
110 107
111 } // namespace printing 108 } // 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