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_PRINT_SETTINGS_H_ | 5 #ifndef PRINTING_PRINT_SETTINGS_H_ |
6 #define PRINTING_PRINT_SETTINGS_H_ | 6 #define PRINTING_PRINT_SETTINGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "printing/page_range.h" | 12 #include "printing/page_range.h" |
13 #include "printing/page_setup.h" | 13 #include "printing/page_setup.h" |
14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
15 | 15 |
16 namespace printing { | 16 namespace printing { |
17 | 17 |
18 // OS-independent print settings. | 18 // OS-independent print settings. |
19 class PrintSettings { | 19 class PRINTING_EXPORT PrintSettings { |
20 public: | 20 public: |
21 PrintSettings(); | 21 PrintSettings(); |
22 ~PrintSettings(); | 22 ~PrintSettings(); |
23 | 23 |
24 // Reinitialize the settings to the default values. | 24 // Reinitialize the settings to the default values. |
25 void Clear(); | 25 void Clear(); |
26 | 26 |
27 // Set printer printable area in in device units. | 27 // Set printer printable area in in device units. |
28 void SetPrinterPrintableArea(gfx::Size const& physical_size_device_units, | 28 void SetPrinterPrintableArea(gfx::Size const& physical_size_device_units, |
29 gfx::Rect const& printable_area_device_units, | 29 gfx::Rect const& printable_area_device_units, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // Is the orientation landscape or portrait. | 124 // Is the orientation landscape or portrait. |
125 bool landscape_; | 125 bool landscape_; |
126 | 126 |
127 // True if this printer supports AlphaBlend. | 127 // True if this printer supports AlphaBlend. |
128 bool supports_alpha_blend_; | 128 bool supports_alpha_blend_; |
129 }; | 129 }; |
130 | 130 |
131 } // namespace printing | 131 } // namespace printing |
132 | 132 |
133 #endif // PRINTING_PRINT_SETTINGS_H_ | 133 #endif // PRINTING_PRINT_SETTINGS_H_ |
OLD | NEW |