| 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" | 7 #include "app/win_util.h" |
| 8 #include "app/gfx/font.h" | |
| 9 #include "base/logging.h" | 8 #include "base/logging.h" |
| 10 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "gfx/font.h" |
| 11 #include "printing/page_number.h" | 11 #include "printing/page_number.h" |
| 12 #include "printing/page_overlays.h" | 12 #include "printing/page_overlays.h" |
| 13 #include "printing/printed_pages_source.h" | 13 #include "printing/printed_pages_source.h" |
| 14 #include "printing/printed_page.h" | 14 #include "printing/printed_page.h" |
| 15 #include "printing/units.h" | 15 #include "printing/units.h" |
| 16 #include "skia/ext/platform_device.h" | 16 #include "skia/ext/platform_device.h" |
| 17 | 17 |
| 18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 font); | 133 font); |
| 134 PrintHeaderFooter(context, page, PageOverlays::CENTER, PageOverlays::BOTTOM, | 134 PrintHeaderFooter(context, page, PageOverlays::CENTER, PageOverlays::BOTTOM, |
| 135 font); | 135 font); |
| 136 PrintHeaderFooter(context, page, PageOverlays::RIGHT, PageOverlays::BOTTOM, | 136 PrintHeaderFooter(context, page, PageOverlays::RIGHT, PageOverlays::BOTTOM, |
| 137 font); | 137 font); |
| 138 int res = RestoreDC(context, saved_state); | 138 int res = RestoreDC(context, saved_state); |
| 139 DCHECK_NE(res, 0); | 139 DCHECK_NE(res, 0); |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace printing | 142 } // namespace printing |
| OLD | NEW |