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 #include "chrome/browser/printing/page_setup.h" | 5 #include "printing/page_setup.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace printing { | 9 namespace printing { |
10 | 10 |
11 PageMargins::PageMargins() | 11 PageMargins::PageMargins() |
12 : header(0), | 12 : header(0), |
13 footer(0), | 13 footer(0), |
14 left(0), | 14 left(0), |
15 right(0), | 15 right(0), |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 content_area_.y())); | 117 content_area_.y())); |
118 } | 118 } |
119 | 119 |
120 void PageSetup::SetRequestedMargins(const PageMargins& requested_margins) { | 120 void PageSetup::SetRequestedMargins(const PageMargins& requested_margins) { |
121 requested_margins_ = requested_margins; | 121 requested_margins_ = requested_margins; |
122 if (physical_size_.width() && physical_size_.height()) | 122 if (physical_size_.width() && physical_size_.height()) |
123 Init(physical_size_, printable_area_, text_height_); | 123 Init(physical_size_, printable_area_, text_height_); |
124 } | 124 } |
125 | 125 |
126 } // namespace printing | 126 } // namespace printing |
OLD | NEW |