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

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

Issue 1701703003: Reland 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_;
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
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_
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