OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "printing/page_overlays.h" | 8 #include "printing/page_overlays.h" |
9 #include "printing/page_range.h" | 9 #include "printing/page_range.h" |
10 #include "printing/page_setup.h" | 10 #include "printing/page_setup.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 PageOverlays overlays; | 82 PageOverlays overlays; |
83 | 83 |
84 // Indicates if the user only wants to print the current selection. | 84 // Indicates if the user only wants to print the current selection. |
85 bool selection_only; | 85 bool selection_only; |
86 | 86 |
87 // Indicates whether we should use browser-controlled page overlays | 87 // Indicates whether we should use browser-controlled page overlays |
88 // (header, footer, margins etc). If it is false, the overlays are | 88 // (header, footer, margins etc). If it is false, the overlays are |
89 // controlled by the renderer. | 89 // controlled by the renderer. |
90 bool use_overlays; | 90 bool use_overlays; |
91 | 91 |
| 92 // Indicates whether we want to print the header and footer or not. |
| 93 bool header_footer; |
| 94 |
92 // Cookie generator. It is used to initialize PrintedDocument with its | 95 // Cookie generator. It is used to initialize PrintedDocument with its |
93 // associated PrintSettings, to be sure that each generated PrintedPage is | 96 // associated PrintSettings, to be sure that each generated PrintedPage is |
94 // correctly associated with its corresponding PrintedDocument. | 97 // correctly associated with its corresponding PrintedDocument. |
95 static int NewCookie(); | 98 static int NewCookie(); |
96 | 99 |
97 // Updates the orientation and flip the page if needed. | 100 // Updates the orientation and flip the page if needed. |
98 void SetOrientation(bool landscape); | 101 void SetOrientation(bool landscape); |
99 | 102 |
100 private: | 103 private: |
101 ////////////////////////////////////////////////////////////////////////////// | 104 ////////////////////////////////////////////////////////////////////////////// |
(...skipping 14 matching lines...) Expand all Loading... |
116 // Is the orientation landscape or portrait. | 119 // Is the orientation landscape or portrait. |
117 bool landscape_; | 120 bool landscape_; |
118 | 121 |
119 // True if this printer supports AlphaBlend. | 122 // True if this printer supports AlphaBlend. |
120 bool supports_alpha_blend_; | 123 bool supports_alpha_blend_; |
121 }; | 124 }; |
122 | 125 |
123 } // namespace printing | 126 } // namespace printing |
124 | 127 |
125 #endif // PRINTING_PRINT_SETTINGS_H_ | 128 #endif // PRINTING_PRINT_SETTINGS_H_ |
OLD | NEW |