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

Side by Side Diff: printing/print_settings.h

Issue 46623002: Move settings setup for PDF and cloud print into single location in PrintingContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 41
42 // Updates the orientation and flip the page if needed. 42 // Updates the orientation and flip the page if needed.
43 void SetOrientation(bool landscape); 43 void SetOrientation(bool landscape);
44 bool landscape() const { return landscape_; } 44 bool landscape() const { return landscape_; }
45 45
46 // Set printer printable area in in device units. 46 // Set printer printable area in in device units.
47 // Some platforms already provide flipped area. Set |landscape_needs_flip| 47 // Some platforms already provide flipped area. Set |landscape_needs_flip|
48 // to false on those platforms to avoid double flipping. 48 // to false on those platforms to avoid double flipping.
49 void SetPrinterPrintableArea(const gfx::Size& physical_size_device_units, 49 void SetPrinterPrintableArea(const gfx::Size& physical_size_device_units,
50 const gfx::Rect& printable_area_device_units, 50 const gfx::Rect& printable_area_device_units,
51 int units_per_inch,
52 bool landscape_needs_flip); 51 bool landscape_needs_flip);
53 const PageSetup& page_setup_device_units() const { 52 const PageSetup& page_setup_device_units() const {
54 return page_setup_device_units_; 53 return page_setup_device_units_;
55 } 54 }
56 55
57 void set_device_name(const base::string16& device_name) { 56 void set_device_name(const base::string16& device_name) {
58 device_name_ = device_name; 57 device_name_ = device_name;
59 } 58 }
60 const base::string16& device_name() const { return device_name_; } 59 const base::string16& device_name() const { return device_name_; }
61 60
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // True if this printer supports AlphaBlend. 186 // True if this printer supports AlphaBlend.
188 bool supports_alpha_blend_; 187 bool supports_alpha_blend_;
189 188
190 // If margin type is custom, this is what was requested. 189 // If margin type is custom, this is what was requested.
191 PageMargins requested_custom_margins_in_points_; 190 PageMargins requested_custom_margins_in_points_;
192 }; 191 };
193 192
194 } // namespace printing 193 } // namespace printing
195 194
196 #endif // PRINTING_PRINT_SETTINGS_H_ 195 #endif // PRINTING_PRINT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698