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

Side by Side Diff: printing/page_setup.h

Issue 8505024: PrintPreview: [LINUX] While flipping the orientation, do not rotate the margins values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « no previous file | printing/page_setup.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) 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_PAGE_SETUP_H_ 5 #ifndef PRINTING_PAGE_SETUP_H_
6 #define PRINTING_PAGE_SETUP_H_ 6 #define PRINTING_PAGE_SETUP_H_
7 7
8 #include "printing/printing_export.h" 8 #include "printing/printing_export.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 10
11 namespace printing { 11 namespace printing {
12 12
13 // Margins for a page setup. 13 // Margins for a page setup.
14 class PRINTING_EXPORT PageMargins { 14 class PRINTING_EXPORT PageMargins {
15 public: 15 public:
16 PageMargins(); 16 PageMargins();
17 17
18 // Rotates the margin values in anti-clockwise direction.
19 void Rotate();
20
21 void Clear(); 18 void Clear();
22 19
23 // Equality operator. 20 // Equality operator.
24 bool Equals(const PageMargins& rhs) const; 21 bool Equals(const PageMargins& rhs) const;
25 22
26 // Vertical space for the overlay from the top of the sheet. 23 // Vertical space for the overlay from the top of the sheet.
27 int header; 24 int header;
28 // Vertical space for the overlay from the bottom of the sheet. 25 // Vertical space for the overlay from the bottom of the sheet.
29 int footer; 26 int footer;
30 // Margin on each side of the sheet. 27 // Margin on each side of the sheet.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // True when |effective_margins_| respects |printable_area_| else false. 94 // True when |effective_margins_| respects |printable_area_| else false.
98 bool forced_margins_; 95 bool forced_margins_;
99 96
100 // Space that must be kept free for the overlays. 97 // Space that must be kept free for the overlays.
101 int text_height_; 98 int text_height_;
102 }; 99 };
103 100
104 } // namespace printing 101 } // namespace printing
105 102
106 #endif // PRINTING_PAGE_SETUP_H_ 103 #endif // PRINTING_PAGE_SETUP_H_
OLDNEW
« no previous file with comments | « no previous file | printing/page_setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698