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_PRINTING_CONTEXT_MAC_H_ | 5 #ifndef PRINTING_PRINTING_CONTEXT_MAC_H_ |
6 #define PRINTING_PRINTING_CONTEXT_MAC_H_ | 6 #define PRINTING_PRINTING_CONTEXT_MAC_H_ |
7 | 7 |
8 #include <ApplicationServices/ApplicationServices.h> | 8 #include <ApplicationServices/ApplicationServices.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
| 12 #include "base/macros.h" |
12 #include "printing/print_job_constants.h" | 13 #include "printing/print_job_constants.h" |
13 #include "printing/printing_context.h" | 14 #include "printing/printing_context.h" |
14 | 15 |
15 @class NSPrintInfo; | 16 @class NSPrintInfo; |
16 | 17 |
17 namespace printing { | 18 namespace printing { |
18 | 19 |
19 class PRINTING_EXPORT PrintingContextMac : public PrintingContext { | 20 class PRINTING_EXPORT PrintingContextMac : public PrintingContext { |
20 public: | 21 public: |
21 explicit PrintingContextMac(Delegate* delegate); | 22 explicit PrintingContextMac(Delegate* delegate); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // The current page's context; only valid between NewPage and PageDone call | 95 // The current page's context; only valid between NewPage and PageDone call |
95 // pairs. | 96 // pairs. |
96 CGContext* context_; | 97 CGContext* context_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); | 99 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); |
99 }; | 100 }; |
100 | 101 |
101 } // namespace printing | 102 } // namespace printing |
102 | 103 |
103 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ | 104 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ |
OLD | NEW |