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 CHROME_RENDERER_MOCK_PRINTER_H_ | 5 #ifndef CHROME_RENDERER_MOCK_PRINTER_H_ |
6 #define CHROME_RENDERER_MOCK_PRINTER_H_ | 6 #define CHROME_RENDERER_MOCK_PRINTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 136 |
137 // The output of a printing job. | 137 // The output of a printing job. |
138 int number_pages_; | 138 int number_pages_; |
139 int page_number_; | 139 int page_number_; |
140 | 140 |
141 // Used only in the preview sequence. | 141 // Used only in the preview sequence. |
142 bool is_first_request_; | 142 bool is_first_request_; |
143 bool print_to_pdf_; | 143 bool print_to_pdf_; |
144 int preview_request_id_; | 144 int preview_request_id_; |
145 | 145 |
| 146 // Used only while printing a pdf file. |
| 147 bool fit_pdf_page_to_paper_size_; |
| 148 |
146 // Used for displaying headers and footers. | 149 // Used for displaying headers and footers. |
147 bool display_header_footer_; | 150 bool display_header_footer_; |
148 string16 date_; | 151 string16 date_; |
149 string16 title_; | 152 string16 title_; |
150 string16 url_; | 153 string16 url_; |
151 | 154 |
152 // Used for generating invalid settings. | 155 // Used for generating invalid settings. |
153 bool use_invalid_settings_; | 156 bool use_invalid_settings_; |
154 | 157 |
155 std::vector<scoped_refptr<MockPrinterPage> > pages_; | 158 std::vector<scoped_refptr<MockPrinterPage> > pages_; |
156 | 159 |
157 DISALLOW_COPY_AND_ASSIGN(MockPrinter); | 160 DISALLOW_COPY_AND_ASSIGN(MockPrinter); |
158 }; | 161 }; |
159 | 162 |
160 #endif // CHROME_RENDERER_MOCK_PRINTER_H_ | 163 #endif // CHROME_RENDERER_MOCK_PRINTER_H_ |
OLD | NEW |