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

Side by Side Diff: chrome/renderer/mock_printer.h

Issue 8585017: PrintPreview: Honor the print media page size and margin values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 9 years 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 | Annotate | Revision Log
OLDNEW
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // The current status of this printer. 129 // The current status of this printer.
130 Status printer_status_; 130 Status printer_status_;
131 131
132 // The output of a printing job. 132 // The output of a printing job.
133 int number_pages_; 133 int number_pages_;
134 int page_number_; 134 int page_number_;
135 135
136 // Used only in the preview sequence. 136 // Used only in the preview sequence.
137 bool is_first_request_; 137 bool is_first_request_;
138 bool print_to_pdf_;
138 int preview_request_id_; 139 int preview_request_id_;
139 140
140 // Used for displaying headers and footers. 141 // Used for displaying headers and footers.
141 bool display_header_footer_; 142 bool display_header_footer_;
142 string16 date_; 143 string16 date_;
143 string16 title_; 144 string16 title_;
144 string16 url_; 145 string16 url_;
145 146
146 // Used for generating invalid settings. 147 // Used for generating invalid settings.
147 bool use_invalid_settings_; 148 bool use_invalid_settings_;
148 149
149 std::vector<scoped_refptr<MockPrinterPage> > pages_; 150 std::vector<scoped_refptr<MockPrinterPage> > pages_;
150 151
151 DISALLOW_COPY_AND_ASSIGN(MockPrinter); 152 DISALLOW_COPY_AND_ASSIGN(MockPrinter);
152 }; 153 };
153 154
154 #endif // CHROME_RENDERER_MOCK_PRINTER_H_ 155 #endif // CHROME_RENDERER_MOCK_PRINTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698