OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 gfx::Size size_microns; | 41 gfx::Size size_microns; |
42 // Platform specific id to map it back to the particular media. | 42 // Platform specific id to map it back to the particular media. |
43 std::string vendor_id; | 43 std::string vendor_id; |
44 | 44 |
45 bool IsDefault() const { | 45 bool IsDefault() const { |
46 return size_microns.IsEmpty() && vendor_id.empty(); | 46 return size_microns.IsEmpty() && vendor_id.empty(); |
47 } | 47 } |
48 }; | 48 }; |
49 | 49 |
50 PrintSettings(); | 50 PrintSettings(); |
| 51 PrintSettings(const PrintSettings& other); |
51 ~PrintSettings(); | 52 ~PrintSettings(); |
52 | 53 |
53 // Reinitialize the settings to the default values. | 54 // Reinitialize the settings to the default values. |
54 void Clear(); | 55 void Clear(); |
55 | 56 |
56 void SetCustomMargins(const PageMargins& requested_margins_in_points); | 57 void SetCustomMargins(const PageMargins& requested_margins_in_points); |
57 const PageMargins& requested_custom_margins_in_points() const { | 58 const PageMargins& requested_custom_margins_in_points() const { |
58 return requested_custom_margins_in_points_; | 59 return requested_custom_margins_in_points_; |
59 } | 60 } |
60 void set_margin_type(MarginType margin_type) { margin_type_ = margin_type; } | 61 void set_margin_type(MarginType margin_type) { margin_type_ = margin_type; } |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // True if this printer supports AlphaBlend. | 204 // True if this printer supports AlphaBlend. |
204 bool supports_alpha_blend_; | 205 bool supports_alpha_blend_; |
205 | 206 |
206 // If margin type is custom, this is what was requested. | 207 // If margin type is custom, this is what was requested. |
207 PageMargins requested_custom_margins_in_points_; | 208 PageMargins requested_custom_margins_in_points_; |
208 }; | 209 }; |
209 | 210 |
210 } // namespace printing | 211 } // namespace printing |
211 | 212 |
212 #endif // PRINTING_PRINT_SETTINGS_H_ | 213 #endif // PRINTING_PRINT_SETTINGS_H_ |
OLD | NEW |