Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: components/printing/test/mock_printer.h

Issue 1697183002: Revert of Cleanup: Remove unused PrintSettings shrink factors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_;
124 126
125 // Desired apparent dpi on paper. 127 // Desired apparent dpi on paper.
126 int desired_dpi_; 128 int desired_dpi_;
127 129
128 // Print selection. 130 // Print selection.
129 bool selection_only_; 131 bool selection_only_;
130 132
131 // Print css backgrounds. 133 // Print css backgrounds.
132 bool should_print_backgrounds_; 134 bool should_print_backgrounds_;
133 135
(...skipping 24 matching lines...) Expand all
158 160
159 // Used for generating invalid settings. 161 // Used for generating invalid settings.
160 bool use_invalid_settings_; 162 bool use_invalid_settings_;
161 163
162 std::vector<scoped_refptr<MockPrinterPage>> pages_; 164 std::vector<scoped_refptr<MockPrinterPage>> pages_;
163 165
164 DISALLOW_COPY_AND_ASSIGN(MockPrinter); 166 DISALLOW_COPY_AND_ASSIGN(MockPrinter);
165 }; 167 };
166 168
167 #endif // COMPONENTS_PRINTING_TEST_MOCK_PRINTER_H_ 169 #endif // COMPONENTS_PRINTING_TEST_MOCK_PRINTER_H_
OLDNEW
« no previous file with comments | « components/printing/renderer/print_web_view_helper.cc ('k') | components/printing/test/mock_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698