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

Unified Diff: gfx/font.cc

Issue 6121004: Remove wstring from gfx. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « gfx/font.h ('k') | gfx/font_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gfx/font.cc
===================================================================
--- gfx/font.cc (revision 71043)
+++ gfx/font.cc (working copy)
@@ -30,7 +30,7 @@
Font::Font(PlatformFont* platform_font) : platform_font_(platform_font) {
}
-Font::Font(const std::wstring& font_name, int font_size)
+Font::Font(const string16& font_name, int font_size)
: platform_font_(PlatformFont::CreateFromNameAndSize(font_name,
font_size)) {
}
@@ -70,7 +70,7 @@
return platform_font_->GetStyle();
}
-const std::wstring& Font::GetFontName() const {
+const string16& Font::GetFontName() const {
return platform_font_->GetFontName();
}
« no previous file with comments | « gfx/font.h ('k') | gfx/font_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698