diff options
-rw-r--r-- | views/controls/menu/menu_item_view.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/views/controls/menu/menu_item_view.cc b/views/controls/menu/menu_item_view.cc index f555080..a4b9779 100644 --- a/views/controls/menu/menu_item_view.cc +++ b/views/controls/menu/menu_item_view.cc @@ -41,6 +41,11 @@ class EmptyMenuMenuItem : public MenuItemView { SetEnabled(false); } + virtual bool GetTooltipText(const gfx::Point& p, std::wstring* tooltip) { + // Empty menu items shouldn't have a tooltip. + return false; + } + private: DISALLOW_COPY_AND_ASSIGN(EmptyMenuMenuItem); }; |