OLD | NEW |
1 // Copyright (c) 2006-2008 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_PRINTING_CONTEXT_H_ | 5 #ifndef PRINTING_PRINTING_CONTEXT_H_ |
6 #define PRINTING_PRINTING_CONTEXT_H_ | 6 #define PRINTING_PRINTING_CONTEXT_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include <ocidl.h> | 11 #include <ocidl.h> |
12 #include <commdlg.h> | 12 #include <commdlg.h> |
13 #endif | 13 #endif |
14 | 14 |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #if !(defined(OS_WIN) || defined(OS_MACOSX)) |
| 19 // TODO(port) Remove after implementing PrintingContext::context() |
18 #include "base/logging.h" | 20 #include "base/logging.h" |
| 21 #endif |
19 #include "base/scoped_ptr.h" | 22 #include "base/scoped_ptr.h" |
20 #include "gfx/native_widget_types.h" | 23 #include "gfx/native_widget_types.h" |
21 #include "printing/print_settings.h" | 24 #include "printing/print_settings.h" |
22 | 25 |
23 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
24 #include "base/scoped_cftyperef.h" | 27 #include "base/scoped_cftyperef.h" |
25 #ifdef __OBJC__ | 28 #ifdef __OBJC__ |
26 @class NSPrintInfo; | 29 @class NSPrintInfo; |
27 #else | 30 #else |
28 class NSPrintInfo; | 31 class NSPrintInfo; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 192 |
190 // Did the user cancel the print job. | 193 // Did the user cancel the print job. |
191 volatile bool abort_printing_; | 194 volatile bool abort_printing_; |
192 | 195 |
193 DISALLOW_COPY_AND_ASSIGN(PrintingContext); | 196 DISALLOW_COPY_AND_ASSIGN(PrintingContext); |
194 }; | 197 }; |
195 | 198 |
196 } // namespace printing | 199 } // namespace printing |
197 | 200 |
198 #endif // PRINTING_PRINTING_CONTEXT_H_ | 201 #endif // PRINTING_PRINTING_CONTEXT_H_ |
OLD | NEW |