| Index: ui/views/controls/menu/menu_item_view.h
|
| diff --git a/ui/views/controls/menu/menu_item_view.h b/ui/views/controls/menu/menu_item_view.h
|
| index 4f0ea441caa60e9eabdd3077309e947fc69151c0..97cf2156875793529d3286d5115cd8c02fe02268 100644
|
| --- a/ui/views/controls/menu/menu_item_view.h
|
| +++ b/ui/views/controls/menu/menu_item_view.h
|
| @@ -265,6 +265,11 @@ class VIEWS_EXPORT MenuItemView : public View {
|
| // Returns the preferred size of this item.
|
| virtual gfx::Size GetPreferredSize() const OVERRIDE;
|
|
|
| + // Gets the preferred height for the given |width|. This is only different
|
| + // from GetPreferredSize().width() if the item has a child view with flexible
|
| + // dimensions.
|
| + virtual int GetHeightForWidth(int width) const OVERRIDE;
|
| +
|
| // Return the preferred dimensions of the item in pixel.
|
| const MenuItemDimensions& GetDimensions() const;
|
|
|
|
|