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 #include "chrome/renderer/print_web_view_helper.h" | 5 #include "chrome/renderer/print_web_view_helper.h" |
6 | 6 |
7 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/mac/scoped_nsautorelease_pool.h" | 10 #include "base/mac/scoped_nsautorelease_pool.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 print_preview_context_.total_page_count(), | 199 print_preview_context_.total_page_count(), |
200 scale_factor, page_layout_in_points, | 200 scale_factor, page_layout_in_points, |
201 *header_footer_info_); | 201 *header_footer_info_); |
202 } | 202 } |
203 #endif // defined(USE_SKIA) | 203 #endif // defined(USE_SKIA) |
204 } | 204 } |
205 | 205 |
206 // Done printing. Close the device context to retrieve the compiled metafile. | 206 // Done printing. Close the device context to retrieve the compiled metafile. |
207 metafile->FinishPage(); | 207 metafile->FinishPage(); |
208 } | 208 } |
| 209 |
| 210 #if defined(USE_SKIA) |
| 211 // static |
| 212 bool PrintWebViewHelper::ConvertTextToGlyphs(SkTypeface* typeface, |
| 213 const string16& text, |
| 214 std::vector<uint16_t>* glyphs) { |
| 215 // TODO(arthurhsu): provide fix for Linux. |
| 216 return false; |
| 217 } |
| 218 #endif |
OLD | NEW |