| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_PRINTING_PAGE_SETUP_H__ | 5 #ifndef CHROME_BROWSER_PRINTING_PAGE_SETUP_H__ |
| 6 #define CHROME_BROWSER_PRINTING_PAGE_SETUP_H__ | 6 #define CHROME_BROWSER_PRINTING_PAGE_SETUP_H__ |
| 7 | 7 |
| 8 #include "base/gfx/rect.h" | 8 #include "base/gfx/rect.h" |
| 9 | 9 |
| 10 namespace printing { | 10 namespace printing { |
| 11 | 11 |
| 12 // Margins for a page setup. | 12 // Margins for a page setup. |
| 13 class PageMargins { | 13 class PageMargins { |
| 14 public: | 14 public: |
| 15 PageMargins(); | 15 PageMargins(); |
| 16 | 16 |
| 17 void Clear(); | 17 void Clear(); |
| 18 | 18 |
| 19 // Equality operator. | 19 // Equality operator. |
| 20 bool Equals(const PageMargins& rhs) const; | 20 bool Equals(const PageMargins& rhs) const; |
| 21 | 21 |
| 22 // Vertical space for the overlay from the top of the sheet. | 22 // Vertical space for the overlay from the top of the sheet. |
| 23 int header; | 23 int header; |
| 24 // Vertical space for the overlay from the bottom of the sheet. | 24 // Vertical space for the overlay from the bottom of the sheet. |
| 25 int footer; | 25 int footer; |
| 26 // Margin on each side of the sheet. | 26 // Margin on each side of the sheet. |
| 27 int left; | 27 int left; |
| 28 int right; |
| 28 int top; | 29 int top; |
| 29 int right; | |
| 30 int bottom; | 30 int bottom; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 // Settings that define the size and printable areas of a page. Unit is | 33 // Settings that define the size and printable areas of a page. Unit is |
| 34 // unspecified. | 34 // unspecified. |
| 35 class PageSetup { | 35 class PageSetup { |
| 36 public: | 36 public: |
| 37 PageSetup(); | 37 PageSetup(); |
| 38 | 38 |
| 39 void Clear(); | 39 void Clear(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 PageMargins requested_margins_; | 74 PageMargins requested_margins_; |
| 75 | 75 |
| 76 // Space that must be kept free for the overlays. | 76 // Space that must be kept free for the overlays. |
| 77 int text_height_; | 77 int text_height_; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace printing | 80 } // namespace printing |
| 81 | 81 |
| 82 #endif // CHROME_BROWSER_PRINTING_PAGE_SETUP_H__ | 82 #endif // CHROME_BROWSER_PRINTING_PAGE_SETUP_H__ |
| 83 | 83 |
| OLD | NEW |