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

Side by Side Diff: printing/print_settings.h

Issue 329683002: Improvements in --debug-print switch implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Thu 06/12/2014 2:53:06.07 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/page_size_margins.cc ('k') | printing/print_settings_conversion.h » ('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 #ifndef PRINTING_PRINT_SETTINGS_H_ 5 #ifndef PRINTING_PRINT_SETTINGS_H_
6 #define PRINTING_PRINT_SETTINGS_H_ 6 #define PRINTING_PRINT_SETTINGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 }; 43 };
44 44
45 PrintSettings(); 45 PrintSettings();
46 ~PrintSettings(); 46 ~PrintSettings();
47 47
48 // Reinitialize the settings to the default values. 48 // Reinitialize the settings to the default values.
49 void Clear(); 49 void Clear();
50 50
51 void SetCustomMargins(const PageMargins& requested_margins_in_points); 51 void SetCustomMargins(const PageMargins& requested_margins_in_points);
52 const PageMargins& requested_custom_margins_in_points() const {
53 return requested_custom_margins_in_points_;
54 }
52 void set_margin_type(MarginType margin_type) { margin_type_ = margin_type; } 55 void set_margin_type(MarginType margin_type) { margin_type_ = margin_type; }
53 MarginType margin_type() const { return margin_type_; } 56 MarginType margin_type() const { return margin_type_; }
54 57
55 // Updates the orientation and flip the page if needed. 58 // Updates the orientation and flip the page if needed.
56 void SetOrientation(bool landscape); 59 void SetOrientation(bool landscape);
57 bool landscape() const { return landscape_; } 60 bool landscape() const { return landscape_; }
58 61
59 // Updates user requested media. 62 // Updates user requested media.
60 void set_requested_media(const RequestedMedia& media) { 63 void set_requested_media(const RequestedMedia& media) {
61 requested_media_ = media; 64 requested_media_ = media;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // True if this printer supports AlphaBlend. 215 // True if this printer supports AlphaBlend.
213 bool supports_alpha_blend_; 216 bool supports_alpha_blend_;
214 217
215 // If margin type is custom, this is what was requested. 218 // If margin type is custom, this is what was requested.
216 PageMargins requested_custom_margins_in_points_; 219 PageMargins requested_custom_margins_in_points_;
217 }; 220 };
218 221
219 } // namespace printing 222 } // namespace printing
220 223
221 #endif // PRINTING_PRINT_SETTINGS_H_ 224 #endif // PRINTING_PRINT_SETTINGS_H_
OLDNEW
« no previous file with comments | « printing/page_size_margins.cc ('k') | printing/print_settings_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698