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

Unified Diff: ui/base/models/menu_model.h

Issue 117903006: Refactor: Makes menus use gfx::FontList instead of gfx::Font. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: ui/base/models/menu_model.h
diff --git a/ui/base/models/menu_model.h b/ui/base/models/menu_model.h
index af40f6ba8cbd47f2c13af6b38eb75fcc4ce6caf0..d0d31005dcdf876dca9f062ca1ab2cb6150915b6 100644
--- a/ui/base/models/menu_model.h
+++ b/ui/base/models/menu_model.h
@@ -13,7 +13,7 @@
#include "ui/gfx/native_widget_types.h"
namespace gfx {
-class Font;
+class FontList;
class Image;
}
@@ -71,9 +71,9 @@ class UI_BASE_EXPORT MenuModel {
// updated each time the menu is shown.
virtual bool IsItemDynamicAt(int index) const = 0;
- // Returns the font used for the label at the specified index.
- // If NULL, then the default font should be used.
- virtual const gfx::Font* GetLabelFontAt(int index) const;
+ // Returns the font list used for the label at the specified index.
+ // If NULL, then the default font list should be used.
+ virtual const gfx::FontList* GetLabelFontListAt(int index) const;
// Gets the acclerator information for the specified index, returning true if
// there is a shortcut accelerator for the item, false otherwise.

Powered by Google App Engine
This is Rietveld 408576698