| 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 <string> | 10 #include <string> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // In pixels according to dpi_x and dpi_y. | 115 // In pixels according to dpi_x and dpi_y. |
| 116 gfx::Size page_size_; | 116 gfx::Size page_size_; |
| 117 gfx::Size content_size_; | 117 gfx::Size content_size_; |
| 118 int margin_left_; | 118 int margin_left_; |
| 119 int margin_top_; | 119 int margin_top_; |
| 120 gfx::Rect printable_area_; | 120 gfx::Rect printable_area_; |
| 121 | 121 |
| 122 // Specifies dots per inch. | 122 // Specifies dots per inch. |
| 123 double dpi_; | 123 double dpi_; |
| 124 double max_shrink_; | |
| 125 double min_shrink_; | |
| 126 | 124 |
| 127 // Desired apparent dpi on paper. | 125 // Desired apparent dpi on paper. |
| 128 int desired_dpi_; | 126 int desired_dpi_; |
| 129 | 127 |
| 130 // Print selection. | 128 // Print selection. |
| 131 bool selection_only_; | 129 bool selection_only_; |
| 132 | 130 |
| 133 // Print css backgrounds. | 131 // Print css backgrounds. |
| 134 bool should_print_backgrounds_; | 132 bool should_print_backgrounds_; |
| 135 | 133 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 160 | 158 |
| 161 // Used for generating invalid settings. | 159 // Used for generating invalid settings. |
| 162 bool use_invalid_settings_; | 160 bool use_invalid_settings_; |
| 163 | 161 |
| 164 std::vector<scoped_refptr<MockPrinterPage>> pages_; | 162 std::vector<scoped_refptr<MockPrinterPage>> pages_; |
| 165 | 163 |
| 166 DISALLOW_COPY_AND_ASSIGN(MockPrinter); | 164 DISALLOW_COPY_AND_ASSIGN(MockPrinter); |
| 167 }; | 165 }; |
| 168 | 166 |
| 169 #endif // COMPONENTS_PRINTING_TEST_MOCK_PRINTER_H_ | 167 #endif // COMPONENTS_PRINTING_TEST_MOCK_PRINTER_H_ |
| OLD | NEW |