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

Side by Side Diff: printing/printed_document.h

Issue 2633573002: Add Postscript Printing (Closed)
Patch Set: Rebase Created 3 years, 10 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
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 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 #include <memory> 9 #include <memory>
10 10
(...skipping 30 matching lines...) Expand all
41 // originating source and settings. 41 // originating source and settings.
42 PrintedDocument(const PrintSettings& settings, 42 PrintedDocument(const PrintSettings& settings,
43 PrintedPagesSource* source, 43 PrintedPagesSource* source,
44 int cookie, 44 int cookie,
45 base::TaskRunner* blocking_runner); 45 base::TaskRunner* blocking_runner);
46 46
47 // Sets a page's data. 0-based. Takes metafile ownership. 47 // Sets a page's data. 0-based. Takes metafile ownership.
48 // Note: locks for a short amount of time. 48 // Note: locks for a short amount of time.
49 void SetPage(int page_number, 49 void SetPage(int page_number,
50 std::unique_ptr<MetafilePlayer> metafile, 50 std::unique_ptr<MetafilePlayer> metafile,
51 #if defined(OS_WIN)
Vitaly Buka (NO REVIEWS) 2017/01/27 00:38:49 How is this related to the patch? PS printing is w
rbpotter 2017/01/27 16:37:21 Done.
52 float shrink, 51 float shrink,
53 #endif // OS_WIN
54 const gfx::Size& paper_size, 52 const gfx::Size& paper_size,
55 const gfx::Rect& page_rect); 53 const gfx::Rect& page_rect);
56 54
57 // Retrieves a page. If the page is not available right now, it 55 // Retrieves a page. If the page is not available right now, it
58 // requests to have this page be rendered and returns NULL. 56 // requests to have this page be rendered and returns NULL.
59 // Note: locks for a short amount of time. 57 // Note: locks for a short amount of time.
60 scoped_refptr<PrintedPage> GetPage(int page_number); 58 scoped_refptr<PrintedPage> GetPage(int page_number);
61 59
62 // Draws the page in the context. 60 // Draws the page in the context.
63 // Note: locks for a short amount of time in debug only. 61 // Note: locks for a short amount of time in debug only.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 183
186 // All the immutable members. 184 // All the immutable members.
187 const Immutable immutable_; 185 const Immutable immutable_;
188 186
189 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); 187 DISALLOW_COPY_AND_ASSIGN(PrintedDocument);
190 }; 188 };
191 189
192 } // namespace printing 190 } // namespace printing
193 191
194 #endif // PRINTING_PRINTED_DOCUMENT_H_ 192 #endif // PRINTING_PRINTED_DOCUMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698