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 /gfx/platform_font_win.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 'gfx/platform_font_win.cc')
-rw-r--r-- | gfx/platform_font_win.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gfx/platform_font_win.cc b/gfx/platform_font_win.cc index 34761c6..8071640 100644 --- a/gfx/platform_font_win.cc +++ b/gfx/platform_font_win.cc @@ -69,7 +69,7 @@ PlatformFontWin::PlatformFontWin(NativeFont native_font) { InitWithCopyOfHFONT(native_font); } -PlatformFontWin::PlatformFontWin(const std::wstring& font_name, +PlatformFontWin::PlatformFontWin(const string16& font_name, int font_size) { InitWithFontNameAndSize(font_name, font_size); } @@ -117,7 +117,7 @@ int PlatformFontWin::GetStyle() const { return font_ref_->style(); } -const std::wstring& PlatformFontWin::GetFontName() const { +string16 PlatformFontWin::GetFontName() const { return font_ref_->font_name(); } @@ -150,7 +150,7 @@ void PlatformFontWin::InitWithCopyOfHFONT(HFONT hfont) { font_ref_ = CreateHFontRef(CreateFontIndirect(&font_info)); } -void PlatformFontWin::InitWithFontNameAndSize(const std::wstring& font_name, +void PlatformFontWin::InitWithFontNameAndSize(const string16& font_name, int font_size) { HDC hdc = GetDC(NULL); long lf_height = -MulDiv(font_size, GetDeviceCaps(hdc, LOGPIXELSY), 72); @@ -235,7 +235,7 @@ PlatformFontWin::HFontRef::HFontRef(HFONT hfont, LOGFONT font_info; GetObject(hfont_, sizeof(LOGFONT), &font_info); - font_name_ = std::wstring(font_info.lfFaceName); + font_name_ = string16(font_info.lfFaceName); } PlatformFontWin::HFontRef::~HFontRef() { @@ -261,7 +261,7 @@ PlatformFont* PlatformFont::CreateFromNativeFont(NativeFont native_font) { } // static -PlatformFont* PlatformFont::CreateFromNameAndSize(const std::wstring& font_name, +PlatformFont* PlatformFont::CreateFromNameAndSize(const string16& font_name, int font_size) { return new PlatformFontWin(font_name, font_size); } |