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

Side by Side Diff: printing/print_settings.h

Issue 1731423002: printing: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/page_setup.cc ('k') | printing/print_settings.cc » ('j') | 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 30 matching lines...) Expand all
41 gfx::Size size_microns; 41 gfx::Size size_microns;
42 // Platform specific id to map it back to the particular media. 42 // Platform specific id to map it back to the particular media.
43 std::string vendor_id; 43 std::string vendor_id;
44 44
45 bool IsDefault() const { 45 bool IsDefault() const {
46 return size_microns.IsEmpty() && vendor_id.empty(); 46 return size_microns.IsEmpty() && vendor_id.empty();
47 } 47 }
48 }; 48 };
49 49
50 PrintSettings(); 50 PrintSettings();
51 PrintSettings(const PrintSettings& other);
51 ~PrintSettings(); 52 ~PrintSettings();
52 53
53 // Reinitialize the settings to the default values. 54 // Reinitialize the settings to the default values.
54 void Clear(); 55 void Clear();
55 56
56 void SetCustomMargins(const PageMargins& requested_margins_in_points); 57 void SetCustomMargins(const PageMargins& requested_margins_in_points);
57 const PageMargins& requested_custom_margins_in_points() const { 58 const PageMargins& requested_custom_margins_in_points() const {
58 return requested_custom_margins_in_points_; 59 return requested_custom_margins_in_points_;
59 } 60 }
60 void set_margin_type(MarginType margin_type) { margin_type_ = margin_type; } 61 void set_margin_type(MarginType margin_type) { margin_type_ = margin_type; }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // True if this printer supports AlphaBlend. 204 // True if this printer supports AlphaBlend.
204 bool supports_alpha_blend_; 205 bool supports_alpha_blend_;
205 206
206 // If margin type is custom, this is what was requested. 207 // If margin type is custom, this is what was requested.
207 PageMargins requested_custom_margins_in_points_; 208 PageMargins requested_custom_margins_in_points_;
208 }; 209 };
209 210
210 } // namespace printing 211 } // namespace printing
211 212
212 #endif // PRINTING_PRINT_SETTINGS_H_ 213 #endif // PRINTING_PRINT_SETTINGS_H_
OLDNEW
« no previous file with comments | « printing/page_setup.cc ('k') | printing/print_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698