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

Side by Side Diff: chrome/browser/printing/printed_document.h

Issue 113441: ChromeFont->gfx::Font... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « chrome/browser/printing/print_job.h ('k') | chrome/browser/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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_BROWSER_PRINTING_PRINTED_DOCUMENT_H__ 5 #ifndef CHROME_BROWSER_PRINTING_PRINTED_DOCUMENT_H__
6 #define CHROME_BROWSER_PRINTING_PRINTED_DOCUMENT_H__ 6 #define CHROME_BROWSER_PRINTING_PRINTED_DOCUMENT_H__
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/lock.h" 10 #include "base/lock.h"
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "chrome/browser/printing/print_settings.h" 13 #include "chrome/browser/printing/print_settings.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 15
16 class ChromeFont;
17 class MessageLoop; 16 class MessageLoop;
18 17
19 namespace gfx { 18 namespace gfx {
20 class Emf; 19 class Emf;
20 class Font;
21 } 21 }
22 22
23 namespace printing { 23 namespace printing {
24 24
25 class PrintedPage; 25 class PrintedPage;
26 class PrintedPagesSource; 26 class PrintedPagesSource;
27 27
28 // A collection of rendered pages. The settings are immutable. If the print 28 // A collection of rendered pages. The settings are immutable. If the print
29 // settings are changed, a new PrintedDocument must be created. 29 // settings are changed, a new PrintedDocument must be created.
30 // Warning: May be accessed from many threads at the same time. Only one thread 30 // Warning: May be accessed from many threads at the same time. Only one thread
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // print settings change. 164 // print settings change.
165 int cookie_; 165 int cookie_;
166 }; 166 };
167 167
168 // Prints the headers and footers for one page in the specified context 168 // Prints the headers and footers for one page in the specified context
169 // according to the current settings. 169 // according to the current settings.
170 void PrintHeaderFooter(HDC context, 170 void PrintHeaderFooter(HDC context,
171 const PrintedPage& page, 171 const PrintedPage& page,
172 PageOverlays::HorizontalPosition x, 172 PageOverlays::HorizontalPosition x,
173 PageOverlays::VerticalPosition y, 173 PageOverlays::VerticalPosition y,
174 const ChromeFont& font) const; 174 const gfx::Font& font) const;
175 175
176 // Calls the render source to render a page. Makes sure to execute the call in 176 // Calls the render source to render a page. Makes sure to execute the call in
177 // the right thread context. 177 // the right thread context.
178 void PrintPage_ThreadJump(int page_number); 178 void PrintPage_ThreadJump(int page_number);
179 179
180 // All writable data member access must be guarded by this lock. Needs to be 180 // All writable data member access must be guarded by this lock. Needs to be
181 // mutable since it can be acquired from const member functions. 181 // mutable since it can be acquired from const member functions.
182 mutable Lock lock_; 182 mutable Lock lock_;
183 183
184 // All the mutable members. 184 // All the mutable members.
185 Mutable mutable_; 185 Mutable mutable_;
186 186
187 // All the immutable members. 187 // All the immutable members.
188 const Immutable immutable_; 188 const Immutable immutable_;
189 189
190 DISALLOW_EVIL_CONSTRUCTORS(PrintedDocument); 190 DISALLOW_EVIL_CONSTRUCTORS(PrintedDocument);
191 }; 191 };
192 192
193 } // namespace printing 193 } // namespace printing
194 194
195 #endif // CHROME_BROWSER_PRINTING_PRINTED_DOCUMENT_H__ 195 #endif // CHROME_BROWSER_PRINTING_PRINTED_DOCUMENT_H__
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job.h ('k') | chrome/browser/printing/printed_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698