summaryrefslogtreecommitdiffstats
path: root/gfx/platform_font_gtk.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-12 16:24:45 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-12 16:24:45 +0000
commit76fcc3e9dc467366b9d1938834d7faff595ab873 (patch)
treedcfc78d6c356be77a902a3fe5e59a6590fe7521e /gfx/platform_font_gtk.h
parent3a742fcae0c094dd1ea11354fb3dcfe9ccc07a73 (diff)
downloadchromium_src-76fcc3e9dc467366b9d1938834d7faff595ab873.zip
chromium_src-76fcc3e9dc467366b9d1938834d7faff595ab873.tar.gz
chromium_src-76fcc3e9dc467366b9d1938834d7faff595ab873.tar.bz2
Revert 71169 - Revert 71167 - Remove wstring from gfx.
BUG=68882 TEST=no visible changes; all tests pass Review URL: http://codereview.chromium.org/6121004 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/6134010 TBR=joi@chromium.org Review URL: http://codereview.chromium.org/6130008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71176 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/platform_font_gtk.h')
-rw-r--r--gfx/platform_font_gtk.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gfx/platform_font_gtk.h b/gfx/platform_font_gtk.h
index a7f3c21..fedbfc1 100644
--- a/gfx/platform_font_gtk.h
+++ b/gfx/platform_font_gtk.h
@@ -20,7 +20,7 @@ class PlatformFontGtk : public PlatformFont {
PlatformFontGtk();
explicit PlatformFontGtk(const Font& other);
explicit PlatformFontGtk(NativeFont native_font);
- PlatformFontGtk(const std::wstring& font_name,
+ PlatformFontGtk(const string16& font_name,
int font_size);
// Converts |gfx_font| to a new pango font. Free the returned font with
@@ -45,7 +45,7 @@ class PlatformFontGtk : public PlatformFont {
virtual int GetStringWidth(const string16& text) const;
virtual int GetExpectedTextWidth(int length) const;
virtual int GetStyle() const;
- virtual const std::wstring& GetFontName() const;
+ virtual string16 GetFontName() const;
virtual int GetFontSize() const;
virtual NativeFont GetNativeFont() const;
@@ -53,15 +53,15 @@ class PlatformFontGtk : public PlatformFont {
// Create a new instance of this object with the specified properties. Called
// from DeriveFont.
PlatformFontGtk(SkTypeface* typeface,
- const std::wstring& name,
+ const string16& name,
int size,
int style);
virtual ~PlatformFontGtk();
// Initialize this object.
- void InitWithNameAndSize(const std::wstring& font_name, int font_size);
+ void InitWithNameAndSize(const string16& font_name, int font_size);
void InitWithTypefaceNameSizeAndStyle(SkTypeface* typeface,
- const std::wstring& name,
+ const string16& name,
int size,
int style);
void InitFromPlatformFont(const PlatformFontGtk* other);
@@ -86,7 +86,7 @@ class PlatformFontGtk : public PlatformFont {
// Additional information about the face
// Skia actually expects a family name and not a font name.
- std::wstring font_family_;
+ string16 font_family_;
int font_size_;
int style_;