Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(653)

Side by Side Diff: printing/print_settings.h

Issue 2713023005: Fix some nits from r447440. (Closed)
Patch Set: rebase, git cl format Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « printing/pdf_render_settings.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « printing/pdf_render_settings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698