Chromium Code Reviews| Index: chrome/renderer/print_web_view_helper.h |
| diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h |
| index 24de40ef2530380b8025b96decc83c102e603bad..85b18521173215d1e638df303385456116f511ea 100644 |
| --- a/chrome/renderer/print_web_view_helper.h |
| +++ b/chrome/renderer/print_web_view_helper.h |
| @@ -21,6 +21,13 @@ |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" |
| #include "ui/gfx/size.h" |
| +#if defined (USE_SKIA) |
| +#include "third_party/skia/include/core/SkTypeface.h" |
| +#if defined (OS_WIN) |
| +#include <usp10.h> |
| +#endif |
| +#endif |
| + |
| struct PrintMsg_Print_Params; |
| struct PrintMsg_PrintPage_Params; |
| struct PrintMsg_PrintPages_Params; |
| @@ -90,6 +97,12 @@ class PrintWebViewHelper |
| explicit PrintWebViewHelper(content::RenderView* render_view); |
| virtual ~PrintWebViewHelper(); |
| +#if defined(USE_SKIA) |
| + static bool ConvertTextToGlyphs(SkTypeface* typeface, |
| + const string16& text, |
| + std::vector<uint16_t>* glyphs); |
|
jungshik at Google
2012/01/06 22:38:45
As I wrote elsewhere, just getting an array of gly
|
| +#endif |
| + |
| protected: |
| // WebKit::WebViewClient override: |
| virtual void didStopLoading(); |
| @@ -426,6 +439,11 @@ class PrintWebViewHelper |
| PrintPreviewContext print_preview_context_; |
| +#if defined(USE_SKIA) && defined(OS_WIN) |
| + static SCRIPT_CACHE g_script_cache_; |
| + static SCRIPT_ANALYSIS g_script_analysis_; |
| +#endif |
| + |
| DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
| }; |