| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_PRINTING_TEST_MOCK_PRINTER_H_ | 5 #ifndef COMPONENTS_PRINTING_TEST_MOCK_PRINTER_H_ |
| 6 #define COMPONENTS_PRINTING_TEST_MOCK_PRINTER_H_ | 6 #define COMPONENTS_PRINTING_TEST_MOCK_PRINTER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // In pixels according to dpi_x and dpi_y. | 117 // In pixels according to dpi_x and dpi_y. |
| 118 gfx::Size page_size_; | 118 gfx::Size page_size_; |
| 119 gfx::Size content_size_; | 119 gfx::Size content_size_; |
| 120 int margin_left_; | 120 int margin_left_; |
| 121 int margin_top_; | 121 int margin_top_; |
| 122 gfx::Rect printable_area_; | 122 gfx::Rect printable_area_; |
| 123 | 123 |
| 124 // Specifies dots per inch. | 124 // Specifies dots per inch. |
| 125 double dpi_; | 125 double dpi_; |
| 126 | 126 |
| 127 // Desired apparent dpi on paper. | |
| 128 int desired_dpi_; | |
| 129 | |
| 130 // Print selection. | 127 // Print selection. |
| 131 bool selection_only_; | 128 bool selection_only_; |
| 132 | 129 |
| 133 // Print css backgrounds. | 130 // Print css backgrounds. |
| 134 bool should_print_backgrounds_; | 131 bool should_print_backgrounds_; |
| 135 | 132 |
| 136 // Cookie for the document to ensure correctness. | 133 // Cookie for the document to ensure correctness. |
| 137 int document_cookie_; | 134 int document_cookie_; |
| 138 int current_document_cookie_; | 135 int current_document_cookie_; |
| 139 | 136 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 160 | 157 |
| 161 // Used for generating invalid settings. | 158 // Used for generating invalid settings. |
| 162 bool use_invalid_settings_; | 159 bool use_invalid_settings_; |
| 163 | 160 |
| 164 std::vector<scoped_refptr<MockPrinterPage>> pages_; | 161 std::vector<scoped_refptr<MockPrinterPage>> pages_; |
| 165 | 162 |
| 166 DISALLOW_COPY_AND_ASSIGN(MockPrinter); | 163 DISALLOW_COPY_AND_ASSIGN(MockPrinter); |
| 167 }; | 164 }; |
| 168 | 165 |
| 169 #endif // COMPONENTS_PRINTING_TEST_MOCK_PRINTER_H_ | 166 #endif // COMPONENTS_PRINTING_TEST_MOCK_PRINTER_H_ |
| OLD | NEW |