OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 PRINTING_EXPORT void GetColorModelForMode(int color_mode, | 24 PRINTING_EXPORT void GetColorModelForMode(int color_mode, |
25 std::string* color_setting_name, | 25 std::string* color_setting_name, |
26 std::string* color_value); | 26 std::string* color_value); |
27 #endif | 27 #endif |
28 | 28 |
29 // Inform the printing system that it may embed this user-agent string | 29 // Inform the printing system that it may embed this user-agent string |
30 // in its output's metadata. | 30 // in its output's metadata. |
31 PRINTING_EXPORT void SetAgent(const std::string& user_agent); | 31 PRINTING_EXPORT void SetAgent(const std::string& user_agent); |
32 PRINTING_EXPORT const std::string& GetAgent(); | 32 PRINTING_EXPORT const std::string& GetAgent(); |
33 | 33 |
34 // OS-independent print settings. | |
35 class PRINTING_EXPORT PrintSettings { | 34 class PRINTING_EXPORT PrintSettings { |
36 public: | 35 public: |
37 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
38 enum PrinterType { | 37 enum PrinterType { |
39 TYPE_NONE = 0, | 38 TYPE_NONE = 0, |
40 TYPE_XPS, | 39 TYPE_XPS, |
41 TYPE_POSTSCRIPT_LEVEL2, | 40 TYPE_POSTSCRIPT_LEVEL2, |
42 TYPE_POSTSCRIPT_LEVEL3 | 41 TYPE_POSTSCRIPT_LEVEL3 |
43 }; | 42 }; |
44 #endif | 43 #endif |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 PrinterType printer_type_; | 245 PrinterType printer_type_; |
247 #endif | 246 #endif |
248 | 247 |
249 // If margin type is custom, this is what was requested. | 248 // If margin type is custom, this is what was requested. |
250 PageMargins requested_custom_margins_in_points_; | 249 PageMargins requested_custom_margins_in_points_; |
251 }; | 250 }; |
252 | 251 |
253 } // namespace printing | 252 } // namespace printing |
254 | 253 |
255 #endif // PRINTING_PRINT_SETTINGS_H_ | 254 #endif // PRINTING_PRINT_SETTINGS_H_ |
OLD | NEW |