| OLD | NEW |
| 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 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 PrintedDocument(const PrintSettings& settings, | 41 PrintedDocument(const PrintSettings& settings, |
| 42 PrintedPagesSource* source, | 42 PrintedPagesSource* source, |
| 43 int cookie, | 43 int cookie, |
| 44 base::TaskRunner* blocking_runner); | 44 base::TaskRunner* blocking_runner); |
| 45 | 45 |
| 46 // Sets a page's data. 0-based. Takes metafile ownership. | 46 // Sets a page's data. 0-based. Takes metafile ownership. |
| 47 // Note: locks for a short amount of time. | 47 // Note: locks for a short amount of time. |
| 48 void SetPage(int page_number, | 48 void SetPage(int page_number, |
| 49 scoped_ptr<MetafilePlayer> metafile, | 49 scoped_ptr<MetafilePlayer> metafile, |
| 50 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
| 51 double shrink, | 51 float shrink, |
| 52 #endif // OS_WIN | 52 #endif // OS_WIN |
| 53 const gfx::Size& paper_size, | 53 const gfx::Size& paper_size, |
| 54 const gfx::Rect& page_rect); | 54 const gfx::Rect& page_rect); |
| 55 | 55 |
| 56 // Retrieves a page. If the page is not available right now, it | 56 // Retrieves a page. If the page is not available right now, it |
| 57 // requests to have this page be rendered and returns NULL. | 57 // requests to have this page be rendered and returns NULL. |
| 58 // Note: locks for a short amount of time. | 58 // Note: locks for a short amount of time. |
| 59 scoped_refptr<PrintedPage> GetPage(int page_number); | 59 scoped_refptr<PrintedPage> GetPage(int page_number); |
| 60 | 60 |
| 61 // Draws the page in the context. | 61 // Draws the page in the context. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 // All the immutable members. | 185 // All the immutable members. |
| 186 const Immutable immutable_; | 186 const Immutable immutable_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); | 188 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace printing | 191 } // namespace printing |
| 192 | 192 |
| 193 #endif // PRINTING_PRINTED_DOCUMENT_H_ | 193 #endif // PRINTING_PRINTED_DOCUMENT_H_ |
| OLD | NEW |