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/string16.h" | 10 #include "base/string16.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void SetOrientation(bool landscape); | 109 void SetOrientation(bool landscape); |
110 | 110 |
111 // Strings to be printed as headers and footers if requested by the user. | 111 // Strings to be printed as headers and footers if requested by the user. |
112 string16 date; | 112 string16 date; |
113 string16 title; | 113 string16 title; |
114 string16 url; | 114 string16 url; |
115 | 115 |
116 // True if the user wants headers and footers to be displayed. | 116 // True if the user wants headers and footers to be displayed. |
117 bool display_header_footer; | 117 bool display_header_footer; |
118 | 118 |
| 119 // True if the user wants to print CSS backgrounds. |
| 120 bool should_print_backgrounds; |
| 121 |
119 private: | 122 private: |
120 ////////////////////////////////////////////////////////////////////////////// | 123 ////////////////////////////////////////////////////////////////////////////// |
121 // Settings that can't be changed without side-effects. | 124 // Settings that can't be changed without side-effects. |
122 | 125 |
123 // Printer name as shown to the user. | 126 // Printer name as shown to the user. |
124 string16 printer_name_; | 127 string16 printer_name_; |
125 | 128 |
126 // Printer device name as opened by the OS. | 129 // Printer device name as opened by the OS. |
127 string16 device_name_; | 130 string16 device_name_; |
128 | 131 |
129 // Page setup in device units. | 132 // Page setup in device units. |
130 PageSetup page_setup_device_units_; | 133 PageSetup page_setup_device_units_; |
131 | 134 |
132 // Printer's device effective dots per inch in both axis. | 135 // Printer's device effective dots per inch in both axis. |
133 int dpi_; | 136 int dpi_; |
134 | 137 |
135 // Is the orientation landscape or portrait. | 138 // Is the orientation landscape or portrait. |
136 bool landscape_; | 139 bool landscape_; |
137 | 140 |
138 // True if this printer supports AlphaBlend. | 141 // True if this printer supports AlphaBlend. |
139 bool supports_alpha_blend_; | 142 bool supports_alpha_blend_; |
140 | 143 |
141 // If margin type is custom, this is what was requested. | 144 // If margin type is custom, this is what was requested. |
142 PageMargins requested_custom_margins_in_points_; | 145 PageMargins requested_custom_margins_in_points_; |
143 }; | 146 }; |
144 | 147 |
145 } // namespace printing | 148 } // namespace printing |
146 | 149 |
147 #endif // PRINTING_PRINT_SETTINGS_H_ | 150 #endif // PRINTING_PRINT_SETTINGS_H_ |
OLD | NEW |