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

Side by Side Diff: printing/printed_document.h

Issue 5948002: Cleanup: Remove unused PrintedDocument::RenderPrintedPageNumber().... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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
« no previous file with comments | « no previous file | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/lock.h" 10 #include "base/lock.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Retrieves a page. If the page is not available right now, it 51 // Retrieves a page. If the page is not available right now, it
52 // requests to have this page be rendered and returns false. 52 // requests to have this page be rendered and returns false.
53 // Note: locks for a short amount of time. 53 // Note: locks for a short amount of time.
54 bool GetPage(int page_number, scoped_refptr<PrintedPage>* page); 54 bool GetPage(int page_number, scoped_refptr<PrintedPage>* page);
55 55
56 // Draws the page in the context. 56 // Draws the page in the context.
57 // Note: locks for a short amount of time in debug only. 57 // Note: locks for a short amount of time in debug only.
58 void RenderPrintedPage(const PrintedPage& page, 58 void RenderPrintedPage(const PrintedPage& page,
59 gfx::NativeDrawingContext context) const; 59 gfx::NativeDrawingContext context) const;
60 60
61 // Draws the page in the context. If the page is not available right now, it
62 // requests to have this page be rendered and returns false.
63 // Note: locks for a short amount of time.
64 bool RenderPrintedPageNumber(int page_number,
65 gfx::NativeDrawingContext context);
66
67 // Returns true if all the necessary pages for the settings are already 61 // Returns true if all the necessary pages for the settings are already
68 // rendered. 62 // rendered.
69 // Note: locks while parsing the whole tree. 63 // Note: locks while parsing the whole tree.
70 bool IsComplete() const; 64 bool IsComplete() const;
71 65
72 // Disconnects the PrintedPage source (PrintedPagesSource). It is done when 66 // Disconnects the PrintedPage source (PrintedPagesSource). It is done when
73 // the source is being destroyed. 67 // the source is being destroyed.
74 void DisconnectSource(); 68 void DisconnectSource();
75 69
76 // Retrieves the current memory usage of the renderer pages. 70 // Retrieves the current memory usage of the renderer pages.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 201
208 // All the immutable members. 202 // All the immutable members.
209 const Immutable immutable_; 203 const Immutable immutable_;
210 204
211 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); 205 DISALLOW_COPY_AND_ASSIGN(PrintedDocument);
212 }; 206 };
213 207
214 } // namespace printing 208 } // namespace printing
215 209
216 #endif // PRINTING_PRINTED_DOCUMENT_H_ 210 #endif // PRINTING_PRINTED_DOCUMENT_H_
OLDNEW
« no previous file with comments | « no previous file | printing/printed_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698