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

Side by Side Diff: printing/printed_document.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: Added one more test Created 8 years, 11 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
« no previous file with comments | « printing/pdf_metafile_cg_mac.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 PRINTING_PRINTED_DOCUMENT_H_ 5 #ifndef PRINTING_PRINTED_DOCUMENT_H_
6 #define PRINTING_PRINTED_DOCUMENT_H_ 6 #define PRINTING_PRINTED_DOCUMENT_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Warning: Lock must be held when accessing this member. 120 // Warning: Lock must be held when accessing this member.
121 PrintedPages pages_; 121 PrintedPages pages_;
122 122
123 // Number of expected pages to be rendered. 123 // Number of expected pages to be rendered.
124 // Warning: Lock must be held when accessing this member. 124 // Warning: Lock must be held when accessing this member.
125 int expected_page_count_; 125 int expected_page_count_;
126 126
127 // The total number of pages in the document. 127 // The total number of pages in the document.
128 int page_count_; 128 int page_count_;
129 129
130 // Shrink done in comparison to desired_dpi.
131 double shrink_factor;
132
133 #if defined(OS_POSIX) && !defined(OS_MACOSX) 130 #if defined(OS_POSIX) && !defined(OS_MACOSX)
134 // Page number of the first page. 131 // Page number of the first page.
135 int first_page; 132 int first_page;
136 #endif 133 #endif
137 }; 134 };
138 135
139 // Contains all the immutable stuff. All this stuff can be accessed without 136 // Contains all the immutable stuff. All this stuff can be accessed without
140 // any lock held. This is because it can't be changed after the object's 137 // any lock held. This is because it can't be changed after the object's
141 // construction. 138 // construction.
142 struct Immutable { 139 struct Immutable {
(...skipping 30 matching lines...) Expand all
173 170
174 // All the immutable members. 171 // All the immutable members.
175 const Immutable immutable_; 172 const Immutable immutable_;
176 173
177 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); 174 DISALLOW_COPY_AND_ASSIGN(PrintedDocument);
178 }; 175 };
179 176
180 } // namespace printing 177 } // namespace printing
181 178
182 #endif // PRINTING_PRINTED_DOCUMENT_H_ 179 #endif // PRINTING_PRINTED_DOCUMENT_H_
OLDNEW
« no previous file with comments | « printing/pdf_metafile_cg_mac.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698