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/memory/scoped_nsobject.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Sets orientation in native print info object. | 68 // Sets orientation in native print info object. |
69 // Returns true if the orientation was set. | 69 // Returns true if the orientation was set. |
70 bool SetOrientationIsLandscape(bool landscape); | 70 bool SetOrientationIsLandscape(bool landscape); |
71 | 71 |
72 // Sets duplex mode in PMPrintSettings. | 72 // Sets duplex mode in PMPrintSettings. |
73 // Returns true if duplex mode is set. | 73 // Returns true if duplex mode is set. |
74 bool SetDuplexModeInPrintSettings(DuplexMode mode); | 74 bool SetDuplexModeInPrintSettings(DuplexMode mode); |
75 | 75 |
76 // Sets output color mode in PMPrintSettings. | 76 // Sets output color mode in PMPrintSettings. |
77 // Returns true if color mode is set. | 77 // Returns true if color mode is set. |
78 bool SetOutputIsColor(bool color); | 78 bool SetOutputColor(int color_mode); |
79 | 79 |
80 // The native print info object. | 80 // The native print info object. |
81 scoped_nsobject<NSPrintInfo> print_info_; | 81 scoped_nsobject<NSPrintInfo> print_info_; |
82 | 82 |
83 // The current page's context; only valid between NewPage and PageDone call | 83 // The current page's context; only valid between NewPage and PageDone call |
84 // pairs. | 84 // pairs. |
85 CGContext* context_; | 85 CGContext* context_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); | 87 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace printing | 90 } // namespace printing |
91 | 91 |
92 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ | 92 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ |
OLD | NEW |