OLD | NEW |
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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "printing/print_settings.h" | 14 #include "printing/print_settings.h" |
15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
16 | 16 |
17 class FilePath; | 17 class FilePath; |
18 class MessageLoop; | 18 class MessageLoop; |
19 | 19 |
20 namespace gfx { | |
21 class Font; | |
22 } | |
23 | |
24 namespace printing { | 20 namespace printing { |
25 | 21 |
26 class Metafile; | 22 class Metafile; |
27 class PrintedPage; | 23 class PrintedPage; |
28 class PrintedPagesSource; | 24 class PrintedPagesSource; |
29 class PrintingContext; | 25 class PrintingContext; |
30 | 26 |
31 // A collection of rendered pages. The settings are immutable. If the print | 27 // A collection of rendered pages. The settings are immutable. If the print |
32 // settings are changed, a new PrintedDocument must be created. | 28 // settings are changed, a new PrintedDocument must be created. |
33 // Warning: May be accessed from many threads at the same time. Only one thread | 29 // Warning: May be accessed from many threads at the same time. Only one thread |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 173 |
178 // All the immutable members. | 174 // All the immutable members. |
179 const Immutable immutable_; | 175 const Immutable immutable_; |
180 | 176 |
181 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); | 177 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); |
182 }; | 178 }; |
183 | 179 |
184 } // namespace printing | 180 } // namespace printing |
185 | 181 |
186 #endif // PRINTING_PRINTED_DOCUMENT_H_ | 182 #endif // PRINTING_PRINTED_DOCUMENT_H_ |
OLD | NEW |