summaryrefslogtreecommitdiffstats
path: root/views/controls/menu/menu_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/menu/menu_delegate.h')
-rw-r--r--views/controls/menu/menu_delegate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/views/controls/menu/menu_delegate.h b/views/controls/menu/menu_delegate.h
index 6a5cc5b..578f679 100644
--- a/views/controls/menu/menu_delegate.h
+++ b/views/controls/menu/menu_delegate.h
@@ -17,6 +17,12 @@
using ui::OSExchangeData;
+namespace gfx {
+
+class Font;
+
+} // namespace gfx
+
namespace views {
class DropTargetEvent;
@@ -53,6 +59,9 @@ class MenuDelegate {
// added with an empty label.
virtual std::wstring GetLabel(int id) const;
+ // The font for the menu item label.
+ virtual const gfx::Font& GetLabelFont(int id) const;
+
// The tooltip shown for the menu item. This is invoked when the user
// hovers over the item, and no tooltip text has been set for that item.
virtual std::wstring GetTooltipText(int id, const gfx::Point& screen_loc);