| OLD | NEW |
| 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/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 int right; | 29 int right; |
| 30 int top; | 30 int top; |
| 31 int bottom; | 31 int bottom; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 // Settings that define the size and printable areas of a page. Unit is | 34 // Settings that define the size and printable areas of a page. Unit is |
| 35 // unspecified. | 35 // unspecified. |
| 36 class PRINTING_EXPORT PageSetup { | 36 class PRINTING_EXPORT PageSetup { |
| 37 public: | 37 public: |
| 38 PageSetup(); | 38 PageSetup(); |
| 39 PageSetup(const PageSetup& other); |
| 39 ~PageSetup(); | 40 ~PageSetup(); |
| 40 | 41 |
| 41 void Clear(); | 42 void Clear(); |
| 42 | 43 |
| 43 // Equality operator. | 44 // Equality operator. |
| 44 bool Equals(const PageSetup& rhs) const; | 45 bool Equals(const PageSetup& rhs) const; |
| 45 | 46 |
| 46 void Init(const gfx::Size& physical_size, const gfx::Rect& printable_area, | 47 void Init(const gfx::Size& physical_size, const gfx::Rect& printable_area, |
| 47 int text_height); | 48 int text_height); |
| 48 | 49 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // True when |effective_margins_| respects |printable_area_| else false. | 95 // True when |effective_margins_| respects |printable_area_| else false. |
| 95 bool forced_margins_; | 96 bool forced_margins_; |
| 96 | 97 |
| 97 // Space that must be kept free for the overlays. | 98 // Space that must be kept free for the overlays. |
| 98 int text_height_; | 99 int text_height_; |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace printing | 102 } // namespace printing |
| 102 | 103 |
| 103 #endif // PRINTING_PAGE_SETUP_H_ | 104 #endif // PRINTING_PAGE_SETUP_H_ |
| OLD | NEW |