Index: ui/views/controls/menu/menu_delegate.h |
diff --git a/ui/views/controls/menu/menu_delegate.h b/ui/views/controls/menu/menu_delegate.h |
index d3eee19df5f0c552c9a9e7b77d6130889988de60..19674684b69e6cff4146344f26a6ae66776fd3be 100644 |
--- a/ui/views/controls/menu/menu_delegate.h |
+++ b/ui/views/controls/menu/menu_delegate.h |
@@ -71,6 +71,13 @@ class VIEWS_EXPORT MenuDelegate { |
// The font for the menu item label. |
virtual const gfx::Font* GetLabelFont(int id) const; |
+ // Override the background color of a given menu item dependent on the |
+ // |command_id| and its |is_hovered| state. Returns true if it chooses to |
+ // override the color. |
+ virtual bool GetBackgroundColor(int command_id, |
+ bool is_hovered, |
+ SkColor* override_color) const; |
sky
2013/01/31 21:15:02
This shouldn't take is_hovered, instead it should
Mr4D (OOO till 08-26)
2013/01/31 22:38:52
Actually... The background colors are different fr
sky
2013/02/01 00:17:33
Ugh.
Ok, in that case the names you've gone with a
Mr4D (OOO till 08-26)
2013/02/01 15:48:28
As discussed: The names are correct. The function
|
+ |
// 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 string16 GetTooltipText(int id, const gfx::Point& screen_loc) const; |