diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-12 14:37:16 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-12 14:37:16 +0000 |
commit | 3f891cf79f72f4768a15bfae051e08b9211ed8c3 (patch) | |
tree | 3cf8d59e7186889184f575fcbe3284e6400fb505 /chrome/browser/chromeos/drop_shadow_label.cc | |
parent | e0c7405b8f24e6c0096285446f94f729e63107df (diff) | |
download | chromium_src-3f891cf79f72f4768a15bfae051e08b9211ed8c3.zip chromium_src-3f891cf79f72f4768a15bfae051e08b9211ed8c3.tar.gz chromium_src-3f891cf79f72f4768a15bfae051e08b9211ed8c3.tar.bz2 |
Remove wstring from gfx.
BUG=68882
TEST=no visible changes; all tests pass
Review URL: http://codereview.chromium.org/6121004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71167 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/drop_shadow_label.cc')
-rw-r--r-- | chrome/browser/chromeos/drop_shadow_label.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/drop_shadow_label.cc b/chrome/browser/chromeos/drop_shadow_label.cc index 5c5fa30..4876643 100644 --- a/chrome/browser/chromeos/drop_shadow_label.cc +++ b/chrome/browser/chromeos/drop_shadow_label.cc @@ -4,6 +4,7 @@ #include "chrome/browser/chromeos/drop_shadow_label.h" +#include "base/utf_string_conversions.h" #include "gfx/canvas.h" #include "gfx/color_utils.h" @@ -44,19 +45,19 @@ void DropShadowLabel::PaintText(gfx::Canvas* canvas, SkColorGetG(kDefaultColor), SkColorGetB(kDefaultColor)); for (int i = 0; i < drop_shadow_size_; i++) { - canvas->DrawStringInt(text, font(), color, + canvas->DrawStringInt(WideToUTF16Hack(text), font(), color, text_bounds.x() + i, text_bounds.y(), text_bounds.width(), text_bounds.height(), flags); - canvas->DrawStringInt(text, font(), color, + canvas->DrawStringInt(WideToUTF16Hack(text), font(), color, text_bounds.x() + i, text_bounds.y() + i, text_bounds.width(), text_bounds.height(), flags); - canvas->DrawStringInt(text, font(), color, + canvas->DrawStringInt(WideToUTF16Hack(text), font(), color, text_bounds.x(), text_bounds.y() + i, text_bounds.width(), text_bounds.height(), flags); } } - canvas->DrawStringInt(text, font(), GetColor(), + canvas->DrawStringInt(WideToUTF16Hack(text), font(), GetColor(), text_bounds.x(), text_bounds.y(), text_bounds.width(), text_bounds.height(), flags); |