| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "printing/print_job_constants.h" |
| 11 #include "printing/printing_context.h" | 12 #include "printing/printing_context.h" |
| 12 #include "printing/print_job_constants.h" | |
| 13 | 13 |
| 14 #ifdef __OBJC__ | 14 #ifdef __OBJC__ |
| 15 @class NSPrintInfo; | 15 @class NSPrintInfo; |
| 16 #else | 16 #else |
| 17 class NSPrintInfo; | 17 class NSPrintInfo; |
| 18 #endif // __OBJC__ | 18 #endif // __OBJC__ |
| 19 | 19 |
| 20 namespace printing { | 20 namespace printing { |
| 21 | 21 |
| 22 class PRINTING_EXPORT PrintingContextMac : public PrintingContext { | 22 class PRINTING_EXPORT PrintingContextMac : public PrintingContext { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // Sets duplex mode in PMPrintSettings. | 81 // Sets duplex mode in PMPrintSettings. |
| 82 // Returns true if duplex mode is set. | 82 // Returns true if duplex mode is set. |
| 83 bool SetDuplexModeInPrintSettings(DuplexMode mode); | 83 bool SetDuplexModeInPrintSettings(DuplexMode mode); |
| 84 | 84 |
| 85 // Sets output color mode in PMPrintSettings. | 85 // Sets output color mode in PMPrintSettings. |
| 86 // Returns true if color mode is set. | 86 // Returns true if color mode is set. |
| 87 bool SetOutputColor(int color_mode); | 87 bool SetOutputColor(int color_mode); |
| 88 | 88 |
| 89 // The native print info object. | 89 // The native print info object. |
| 90 scoped_nsobject<NSPrintInfo> print_info_; | 90 base::scoped_nsobject<NSPrintInfo> print_info_; |
| 91 | 91 |
| 92 // The current page's context; only valid between NewPage and PageDone call | 92 // The current page's context; only valid between NewPage and PageDone call |
| 93 // pairs. | 93 // pairs. |
| 94 CGContext* context_; | 94 CGContext* context_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); | 96 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace printing | 99 } // namespace printing |
| 100 | 100 |
| 101 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ | 101 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ |
| OLD | NEW |