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

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

Issue 10083059: [Print Preview] Modified PP_PrintSettings_Dev interface to support auto fit to page functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 // The output of a printing job. 137 // The output of a printing job.
138 int number_pages_; 138 int number_pages_;
139 int page_number_; 139 int page_number_;
140 140
141 // Used only in the preview sequence. 141 // Used only in the preview sequence.
142 bool is_first_request_; 142 bool is_first_request_;
143 bool print_to_pdf_; 143 bool print_to_pdf_;
144 int preview_request_id_; 144 int preview_request_id_;
145 145
146 // Used only while printing a pdf file.
147 bool fit_pdf_page_to_paper_size_;
148
146 // Used for displaying headers and footers. 149 // Used for displaying headers and footers.
147 bool display_header_footer_; 150 bool display_header_footer_;
148 string16 date_; 151 string16 date_;
149 string16 title_; 152 string16 title_;
150 string16 url_; 153 string16 url_;
151 154
152 // Used for generating invalid settings. 155 // Used for generating invalid settings.
153 bool use_invalid_settings_; 156 bool use_invalid_settings_;
154 157
155 std::vector<scoped_refptr<MockPrinterPage> > pages_; 158 std::vector<scoped_refptr<MockPrinterPage> > pages_;
156 159
157 DISALLOW_COPY_AND_ASSIGN(MockPrinter); 160 DISALLOW_COPY_AND_ASSIGN(MockPrinter);
158 }; 161 };
159 162
160 #endif // CHROME_RENDERER_MOCK_PRINTER_H_ 163 #endif // CHROME_RENDERER_MOCK_PRINTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698