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 #import <ApplicationServices/ApplicationServices.h> | 7 #import <ApplicationServices/ApplicationServices.h> |
8 #import <CoreFoundation/CoreFoundation.h> | 8 #import <CoreFoundation/CoreFoundation.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/scoped_cftyperef.h" | |
12 #include "printing/page_number.h" | 11 #include "printing/page_number.h" |
13 #include "printing/printed_page.h" | 12 #include "printing/printed_page.h" |
14 | 13 |
15 namespace printing { | 14 namespace printing { |
16 | 15 |
17 void PrintedDocument::RenderPrintedPage( | 16 void PrintedDocument::RenderPrintedPage( |
18 const PrintedPage& page, gfx::NativeDrawingContext context) const { | 17 const PrintedPage& page, gfx::NativeDrawingContext context) const { |
19 #ifndef NDEBUG | 18 #ifndef NDEBUG |
20 { | 19 { |
21 // Make sure the page is from our list. | 20 // Make sure the page is from our list. |
(...skipping 18 matching lines...) Expand all Loading... |
40 // TODO(stuartmorgan): Print the header and footer. | 39 // TODO(stuartmorgan): Print the header and footer. |
41 } | 40 } |
42 | 41 |
43 void PrintedDocument::DrawHeaderFooter(gfx::NativeDrawingContext context, | 42 void PrintedDocument::DrawHeaderFooter(gfx::NativeDrawingContext context, |
44 std::wstring text, | 43 std::wstring text, |
45 gfx::Rect bounds) const { | 44 gfx::Rect bounds) const { |
46 NOTIMPLEMENTED(); | 45 NOTIMPLEMENTED(); |
47 } | 46 } |
48 | 47 |
49 } // namespace printing | 48 } // namespace printing |
OLD | NEW |