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

Unified Diff: gfx/platform_font.h

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
Index: gfx/platform_font.h
===================================================================
--- gfx/platform_font.h (revision 71043)
+++ gfx/platform_font.h (working copy)
@@ -22,7 +22,7 @@
static PlatformFont* CreateDefault();
static PlatformFont* CreateFromFont(const Font& other);
static PlatformFont* CreateFromNativeFont(NativeFont native_font);
- static PlatformFont* CreateFromNameAndSize(const std::wstring& font_name,
+ static PlatformFont* CreateFromNameAndSize(const string16& font_name,
int font_size);
// Returns a new Font derived from the existing font.
@@ -58,7 +58,7 @@
virtual int GetStyle() const = 0;
// Returns the font name.
- virtual const std::wstring& GetFontName() const = 0;
+ virtual const string16& GetFontName() const = 0;
evanm 2011/01/11 21:56:47 Not your problem, but this really shoulda returned
Avi (use Gerrit) 2011/01/11 22:15:28 Done.
// Returns the font size in pixels.
virtual int GetFontSize() const = 0;

Powered by Google App Engine
This is Rietveld 408576698