summaryrefslogtreecommitdiffstats
path: root/chrome/common/gfx/chrome_canvas_win.cc
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-06 16:50:53 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-06 16:50:53 +0000
commit161931972da4ddd4f8928741ac561014585a6df1 (patch)
treefa36f817bcdd96126ceb0ec28303781c1231af6d /chrome/common/gfx/chrome_canvas_win.cc
parentfba17802ccc482b917ee51776a0b54007b6e58f2 (diff)
downloadchromium_src-161931972da4ddd4f8928741ac561014585a6df1.zip
chromium_src-161931972da4ddd4f8928741ac561014585a6df1.tar.gz
chromium_src-161931972da4ddd4f8928741ac561014585a6df1.tar.bz2
Better Linux ChromeCanvas text drawing, using Pango.
Skia doesn't current support any form of text layout (ellipsizing, etc). We use Pango / Cairo to draw our text on the surface. Also moved the non-flags version of DrawStringInt into the share chrome_canvas.cc. Stubbed out the SizeStringInt(), I haven't seen it used on Linux, and it would be wrong. Review URL: http://codereview.chromium.org/62053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gfx/chrome_canvas_win.cc')
-rw-r--r--chrome/common/gfx/chrome_canvas_win.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/chrome/common/gfx/chrome_canvas_win.cc b/chrome/common/gfx/chrome_canvas_win.cc
index f6db09b..38446ca 100644
--- a/chrome/common/gfx/chrome_canvas_win.cc
+++ b/chrome/common/gfx/chrome_canvas_win.cc
@@ -182,15 +182,6 @@ void ChromeCanvas::DrawStringInt(const std::wstring& text, HFONT font,
void ChromeCanvas::DrawStringInt(const std::wstring& text,
const ChromeFont& font,
const SkColor& color,
- int x, int y,
- int w, int h) {
- DrawStringInt(text, font, color, x, y, w, h,
- l10n_util::DefaultCanvasTextAlignment());
-}
-
-void ChromeCanvas::DrawStringInt(const std::wstring& text,
- const ChromeFont& font,
- const SkColor& color,
int x, int y, int w, int h, int flags) {
DrawStringInt(text, font.hfont(), color, x, y, w, h, flags);
}