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

Side by Side Diff: printing/print_settings.cc

Issue 325313003: Add vendor id and custom display name to media selection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address cl comments. Created 6 years, 6 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 | « printing/print_settings.h ('k') | printing/print_settings_initializer.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/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
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
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
OLDNEW
« no previous file with comments | « printing/print_settings.h ('k') | printing/print_settings_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698