diff options
Diffstat (limited to 'app/menus/menu_model.h')
-rw-r--r-- | app/menus/menu_model.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/menus/menu_model.h b/app/menus/menu_model.h index 718f3b1..6a522d7 100644 --- a/app/menus/menu_model.h +++ b/app/menus/menu_model.h @@ -11,6 +11,12 @@ class SkBitmap; +namespace gfx { + +class Font; + +} // namespace gfx + namespace menus { class Accelerator; @@ -59,6 +65,10 @@ class MenuModel { // menu item will be updated each time the menu is shown. virtual bool IsLabelDynamicAt(int index) const = 0; + // Returns the font use for the label at the specified index. + // If NULL, then use default font. + virtual const gfx::Font* GetLabelFontAt(int index) const { return NULL; } + // Gets the acclerator information for the specified index, returning true if // there is a shortcut accelerator for the item, false otherwise. virtual bool GetAcceleratorAt(int index, |