Chromium Code Reviews| Index: views/controls/menu/menu_delegate.h |
| diff --git a/views/controls/menu/menu_delegate.h b/views/controls/menu/menu_delegate.h |
| index 6a5cc5bd1b02f913339c8e7f216277854bbe869e..40af125d9739445584bae3fbd8735e9bb0daddd6 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,10 @@ class MenuDelegate { |
| // added with an empty label. |
| virtual std::wstring GetLabel(int id) const; |
| + // The font for the menu item label. Returning NULL selects the default |
| + // menu font. |
| + virtual const gfx::Font& GetLabelFont(int id) const; |
|
sky
2011/04/20 16:02:58
Last sentence isn't right. Maybe just remove it en
rhashimoto
2011/04/21 19:31:17
Done.
|
| + |
| // 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); |