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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // Cookie generator. It is used to initialize PrintedDocument with its | 103 // Cookie generator. It is used to initialize PrintedDocument with its |
104 // associated PrintSettings, to be sure that each generated PrintedPage is | 104 // associated PrintSettings, to be sure that each generated PrintedPage is |
105 // correctly associated with its corresponding PrintedDocument. | 105 // correctly associated with its corresponding PrintedDocument. |
106 static int NewCookie(); | 106 static int NewCookie(); |
107 | 107 |
108 // Updates the orientation and flip the page if needed. | 108 // Updates the orientation and flip the page if needed. |
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 base::string16 date; | |
113 base::string16 title; | 112 base::string16 title; |
114 base::string16 url; | 113 base::string16 url; |
115 | 114 |
116 // True if the user wants headers and footers to be displayed. | 115 // True if the user wants headers and footers to be displayed. |
117 bool display_header_footer; | 116 bool display_header_footer; |
118 | 117 |
119 // True if the user wants to print CSS backgrounds. | 118 // True if the user wants to print CSS backgrounds. |
120 bool should_print_backgrounds; | 119 bool should_print_backgrounds; |
121 | 120 |
122 private: | 121 private: |
(...skipping 18 matching lines...) Expand all Loading... |
141 // True if this printer supports AlphaBlend. | 140 // True if this printer supports AlphaBlend. |
142 bool supports_alpha_blend_; | 141 bool supports_alpha_blend_; |
143 | 142 |
144 // If margin type is custom, this is what was requested. | 143 // If margin type is custom, this is what was requested. |
145 PageMargins requested_custom_margins_in_points_; | 144 PageMargins requested_custom_margins_in_points_; |
146 }; | 145 }; |
147 | 146 |
148 } // namespace printing | 147 } // namespace printing |
149 | 148 |
150 #endif // PRINTING_PRINT_SETTINGS_H_ | 149 #endif // PRINTING_PRINT_SETTINGS_H_ |
OLD | NEW |