Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 9111042: Fix RTL and complex script title in print preview header/footer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper.cc » ('j') | chrome/renderer/print_web_view_helper.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper.cc » ('j') | chrome/renderer/print_web_view_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698