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 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 // The current status of this printer. | 127 // The current status of this printer. |
128 Status printer_status_; | 128 Status printer_status_; |
129 | 129 |
130 // The output of a printing job. | 130 // The output of a printing job. |
131 int number_pages_; | 131 int number_pages_; |
132 int page_number_; | 132 int page_number_; |
133 | 133 |
134 // Used only in the preview sequence. | 134 // Used only in the preview sequence. |
135 bool is_first_request_; | 135 bool is_first_request_; |
| 136 int preview_ui_id_; |
136 int preview_request_id_; | 137 int preview_request_id_; |
137 | 138 |
138 // Used for displaying headers and footers. | 139 // Used for displaying headers and footers. |
139 bool display_header_footer_; | 140 bool display_header_footer_; |
140 string16 date_; | 141 string16 date_; |
141 string16 title_; | 142 string16 title_; |
142 string16 url_; | 143 string16 url_; |
143 | 144 |
144 std::vector<scoped_refptr<MockPrinterPage> > pages_; | 145 std::vector<scoped_refptr<MockPrinterPage> > pages_; |
145 | 146 |
(...skipping 16 matching lines...) Expand all Loading... |
162 gfx::Size printable_size_; | 163 gfx::Size printable_size_; |
163 int margin_top_; | 164 int margin_top_; |
164 int margin_left_; | 165 int margin_left_; |
165 double dpi_; | 166 double dpi_; |
166 double min_shrink_; | 167 double min_shrink_; |
167 double max_shrink_; | 168 double max_shrink_; |
168 int desired_dpi_; | 169 int desired_dpi_; |
169 int document_cookie_; | 170 int document_cookie_; |
170 bool selection_only_; | 171 bool selection_only_; |
171 bool supports_alpha_blend_; | 172 bool supports_alpha_blend_; |
| 173 int preview_ui_id_; |
172 int preview_request_id_; | 174 int preview_request_id_; |
173 bool is_first_request_; | 175 bool is_first_request_; |
174 bool display_header_footer_; | 176 bool display_header_footer_; |
175 string16 date_; | 177 string16 date_; |
176 string16 title_; | 178 string16 title_; |
177 string16 url_; | 179 string16 url_; |
178 | 180 |
179 DISALLOW_COPY_AND_ASSIGN(PrintMsg_Print_Params_Clone); | 181 DISALLOW_COPY_AND_ASSIGN(PrintMsg_Print_Params_Clone); |
180 }; | 182 }; |
181 | 183 |
182 // A clone of PrintMsg_PrintPages_Params struct. | 184 // A clone of PrintMsg_PrintPages_Params struct. |
183 class PrintMsg_PrintPages_Params_Clone { | 185 class PrintMsg_PrintPages_Params_Clone { |
184 public: | 186 public: |
185 PrintMsg_PrintPages_Params_Clone(); | 187 PrintMsg_PrintPages_Params_Clone(); |
186 ~PrintMsg_PrintPages_Params_Clone(); | 188 ~PrintMsg_PrintPages_Params_Clone(); |
187 | 189 |
188 // Resets the members of |params| to 0. Checks to see if | 190 // Resets the members of |params| to 0. Checks to see if |
189 // PrintMsg_PrintPages_Params and PrintMsg_PrintPages_Params_Clone have | 191 // PrintMsg_PrintPages_Params and PrintMsg_PrintPages_Params_Clone have |
190 // identical member variables. | 192 // identical member variables. |
191 void ResetParams(PrintMsg_PrintPages_Params* params); | 193 void ResetParams(PrintMsg_PrintPages_Params* params); |
192 | 194 |
193 private: | 195 private: |
194 PrintMsg_Print_Params_Clone params_; | 196 PrintMsg_Print_Params_Clone params_; |
195 std::vector<int> pages_; | 197 std::vector<int> pages_; |
196 | 198 |
197 DISALLOW_COPY_AND_ASSIGN(PrintMsg_PrintPages_Params_Clone); | 199 DISALLOW_COPY_AND_ASSIGN(PrintMsg_PrintPages_Params_Clone); |
198 }; | 200 }; |
199 | 201 |
200 #endif // CHROME_RENDERER_MOCK_PRINTER_H_ | 202 #endif // CHROME_RENDERER_MOCK_PRINTER_H_ |
OLD | NEW |