| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |