diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-15 02:16:10 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-15 02:16:10 +0000 |
commit | 7322c44018c4e7b8bd58c67f52986660fb365d76 (patch) | |
tree | 4bb67ec23689e83682a5aa228e3b8c402880baa8 /app/resource_bundle.h | |
parent | 0c875075a6c45e9979b8345e5f5f9d4b747e05c3 (diff) | |
download | chromium_src-7322c44018c4e7b8bd58c67f52986660fb365d76.zip chromium_src-7322c44018c4e7b8bd58c67f52986660fb365d76.tar.gz chromium_src-7322c44018c4e7b8bd58c67f52986660fb365d76.tar.bz2 |
ChromeFont->gfx::Font
Does not rename the files yet.
http://crbug.com/11387
Review URL: http://codereview.chromium.org/113441
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16141 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/resource_bundle.h')
-rw-r--r-- | app/resource_bundle.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/app/resource_bundle.h b/app/resource_bundle.h index 1ed44b0..ed17616 100644 --- a/app/resource_bundle.h +++ b/app/resource_bundle.h @@ -23,12 +23,14 @@ #if defined(OS_LINUX) || defined(OS_MACOSX) namespace base { class DataPack; -}; +} #endif #if defined(OS_LINUX) typedef struct _GdkPixbuf GdkPixbuf; #endif -class ChromeFont; +namespace gfx{ +class Font; +} class SkBitmap; typedef uint32 SkColor; class StringPiece; @@ -102,7 +104,7 @@ class ResourceBundle { string16 GetLocalizedString(int message_id); // Returns the font for the specified style. - ChromeFont GetFont(FontStyle style); + gfx::Font GetFont(FontStyle style); #if defined(OS_WIN) // Loads and returns an icon from the theme dll. @@ -154,7 +156,7 @@ class ResourceBundle { // external data module. void LoadResources(const std::wstring& pref_locale); - // Initialize all the ChromeFont members if they haven't yet been initialized. + // Initialize all the gfx::Font members if they haven't yet been initialized. void LoadFontsIfNecessary(); // Returns the full pathname of the locale file to load. May return an empty @@ -192,12 +194,12 @@ class ResourceBundle { #endif // The various fonts used. Cached to avoid repeated GDI creation/destruction. - scoped_ptr<ChromeFont> base_font_; - scoped_ptr<ChromeFont> small_font_; - scoped_ptr<ChromeFont> medium_font_; - scoped_ptr<ChromeFont> medium_bold_font_; - scoped_ptr<ChromeFont> large_font_; - scoped_ptr<ChromeFont> web_font_; + scoped_ptr<gfx::Font> base_font_; + scoped_ptr<gfx::Font> small_font_; + scoped_ptr<gfx::Font> medium_font_; + scoped_ptr<gfx::Font> medium_bold_font_; + scoped_ptr<gfx::Font> large_font_; + scoped_ptr<gfx::Font> web_font_; static ResourceBundle* g_shared_instance_; |