Index: ui/base/resource/resource_bundle.h |
diff --git a/ui/base/resource/resource_bundle.h b/ui/base/resource/resource_bundle.h |
index d44c7db69fa9110d0c35b7b7b470efe446d541a6..973a58961f3c31f515ae6a9345ce2ab0ef468dfe 100644 |
--- a/ui/base/resource/resource_bundle.h |
+++ b/ui/base/resource/resource_bundle.h |
@@ -20,7 +20,7 @@ |
#include "base/strings/string_piece.h" |
#include "ui/base/layout.h" |
#include "ui/base/ui_export.h" |
-#include "ui/gfx/font.h" |
+#include "ui/gfx/font_list.h" |
#include "ui/gfx/image/image.h" |
#include "ui/gfx/native_widget_types.h" |
@@ -107,9 +107,9 @@ class UI_EXPORT ResourceBundle { |
// false to attempt retrieval of the default string. |
virtual bool GetLocalizedString(int message_id, string16* value) = 0; |
- // Return a font resource or NULL to attempt retrieval of the default |
+ // Returns a font list or NULL to attempt retrieval of the default |
// resource. |
- virtual scoped_ptr<gfx::Font> GetFont(FontStyle style) = 0; |
+ virtual scoped_ptr<gfx::FontList> GetFontList(FontStyle style) = 0; |
protected: |
virtual ~Delegate() {} |
@@ -234,6 +234,9 @@ class UI_EXPORT ResourceBundle { |
string16 GetLocalizedString(int message_id); |
// Returns the font for the specified style. |
msw
2013/07/30 21:32:27
nit: s/font/font list/
Yuki
2013/07/31 05:38:43
Done.
|
+ const gfx::FontList& GetFontList(FontStyle style); |
+ |
+ // Returns the font for the specified style. |
const gfx::Font& GetFont(FontStyle style); |
// Resets and reloads the cached fonts. This is useful when the fonts of the |
@@ -370,16 +373,17 @@ class UI_EXPORT ResourceBundle { |
gfx::Image empty_image_; |
- // The various fonts used. Cached to avoid repeated GDI creation/destruction. |
- scoped_ptr<gfx::Font> base_font_; |
- scoped_ptr<gfx::Font> bold_font_; |
- scoped_ptr<gfx::Font> small_font_; |
- scoped_ptr<gfx::Font> small_bold_font_; |
- scoped_ptr<gfx::Font> medium_font_; |
- scoped_ptr<gfx::Font> medium_bold_font_; |
- scoped_ptr<gfx::Font> large_font_; |
- scoped_ptr<gfx::Font> large_bold_font_; |
- scoped_ptr<gfx::Font> web_font_; |
+ // The various font lists used. Cached to avoid repeated GDI |
+ // creation/destruction. |
+ scoped_ptr<gfx::FontList> base_font_list_; |
+ scoped_ptr<gfx::FontList> bold_font_list_; |
+ scoped_ptr<gfx::FontList> small_font_list_; |
+ scoped_ptr<gfx::FontList> small_bold_font_list_; |
+ scoped_ptr<gfx::FontList> medium_font_list_; |
+ scoped_ptr<gfx::FontList> medium_bold_font_list_; |
+ scoped_ptr<gfx::FontList> large_font_list_; |
+ scoped_ptr<gfx::FontList> large_bold_font_list_; |
+ scoped_ptr<gfx::FontList> web_font_list_; |
base::FilePath overridden_pak_path_; |