OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "printing/printed_document.h" | 5 #include "printing/printed_document.h" |
6 | 6 |
7 #include "app/win_util.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
9 #include "base/string_util.h" | 8 #include "base/string_util.h" |
10 #include "gfx/font.h" | 9 #include "gfx/font.h" |
11 #include "printing/page_number.h" | 10 #include "printing/page_number.h" |
12 #include "printing/page_overlays.h" | 11 #include "printing/page_overlays.h" |
13 #include "printing/printed_pages_source.h" | 12 #include "printing/printed_pages_source.h" |
14 #include "printing/printed_page.h" | 13 #include "printing/printed_page.h" |
15 #include "printing/units.h" | 14 #include "printing/units.h" |
16 #include "skia/ext/platform_device.h" | 15 #include "skia/ext/platform_device.h" |
17 | 16 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 font); | 134 font); |
136 PrintHeaderFooter(context, page, PageOverlays::CENTER, PageOverlays::BOTTOM, | 135 PrintHeaderFooter(context, page, PageOverlays::CENTER, PageOverlays::BOTTOM, |
137 font); | 136 font); |
138 PrintHeaderFooter(context, page, PageOverlays::RIGHT, PageOverlays::BOTTOM, | 137 PrintHeaderFooter(context, page, PageOverlays::RIGHT, PageOverlays::BOTTOM, |
139 font); | 138 font); |
140 int res = RestoreDC(context, saved_state); | 139 int res = RestoreDC(context, saved_state); |
141 DCHECK_NE(res, 0); | 140 DCHECK_NE(res, 0); |
142 } | 141 } |
143 | 142 |
144 } // namespace printing | 143 } // namespace printing |
OLD | NEW |