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

Unified Diff: ui/gfx/platform_font_pango.h

Issue 7977025: aura: Make 'ui' buildable without gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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 | « ui/gfx/platform_font_gtk.cc ('k') | ui/gfx/platform_font_pango.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/platform_font_pango.h
diff --git a/ui/gfx/platform_font_gtk.h b/ui/gfx/platform_font_pango.h
similarity index 90%
rename from ui/gfx/platform_font_gtk.h
rename to ui/gfx/platform_font_pango.h
index ad9c745d6dae29745f40cd2f6598d50661f036dc..41301bff14e1558129fc4cb048c00ea90f3e246f 100644
--- a/ui/gfx/platform_font_gtk.h
+++ b/ui/gfx/platform_font_pango.h
@@ -15,12 +15,12 @@ class SkPaint;
namespace gfx {
-class UI_EXPORT PlatformFontGtk : public PlatformFont {
+class UI_EXPORT PlatformFontPango : public PlatformFont {
public:
- PlatformFontGtk();
- explicit PlatformFontGtk(const Font& other);
- explicit PlatformFontGtk(NativeFont native_font);
- PlatformFontGtk(const string16& font_name,
+ PlatformFontPango();
+ explicit PlatformFontPango(const Font& other);
+ explicit PlatformFontPango(NativeFont native_font);
+ PlatformFontPango(const string16& font_name,
int font_size);
// Converts |gfx_font| to a new pango font. Free the returned font with
@@ -54,11 +54,11 @@ class UI_EXPORT PlatformFontGtk : public PlatformFont {
private:
// Create a new instance of this object with the specified properties. Called
// from DeriveFont.
- PlatformFontGtk(SkTypeface* typeface,
+ PlatformFontPango(SkTypeface* typeface,
const string16& name,
int size,
int style);
- virtual ~PlatformFontGtk();
+ virtual ~PlatformFontPango();
// Initialize this object.
void InitWithNameAndSize(const string16& font_name, int font_size);
@@ -66,7 +66,7 @@ class UI_EXPORT PlatformFontGtk : public PlatformFont {
const string16& name,
int size,
int style);
- void InitFromPlatformFont(const PlatformFontGtk* other);
+ void InitFromPlatformFont(const PlatformFontPango* other);
// Potentially slow call to get pango metrics (average width, underline info).
void InitPangoMetrics();
« no previous file with comments | « ui/gfx/platform_font_gtk.cc ('k') | ui/gfx/platform_font_pango.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698